_dialog.scss
ASCII text
1/* Modal Dialogs */ 2 3@use "../../../../theme"; 4@use "../../../../theme-color"; 5@use "../../../../shadow"; 6@use "../../gnome-shell"; 7@use "../../typography"; 8@use "../base/button"; 9@use "../base/entry"; 10 11.headline { 12@include typography.headline6; 13} 14 15.modal-dialog { 16border: 0; 17border-radius: theme.$corner-radius; 18box-shadow: shadow.$z8; 19background-color: theme-color.$surface-z8; 20color: theme-color.$on-surface; 21 22@if gnome-shell.$version >= 3.36 { 23.modal-dialog-content-box { 24max-width: 28em; 25margin: 32px 40px; 26spacing: 32px; 27} 28} @else { 29.modal-dialog-content-box { 30padding: 24px; 31} 32} 33 34.modal-dialog-linked-button { 35@extend %bubble_button; 36} 37 38@if gnome-shell.$version == 3.34 { 39StEntry { 40@extend %entry; 41} 42 43.button { 44@extend %button; 45} 46} 47} 48 49/* End Session Dialog */ 50@if gnome-shell.$version >= 3.36 { 51.end-session-dialog { 52width: 30em; 53 54.end-session-dialog-battery-warning, 55.dialog-list-title { 56color: theme-color.$error; 57} 58} 59} @else { 60.end-session-dialog { 61spacing: 42px; 62border: 0; 63} 64 65.end-session-dialog-subject { 66@include typography.headline6; 67} 68 69.end-session-dialog-list { 70padding-top: 20px; 71} 72 73.end-session-dialog-layout { 74padding-left: 17px; 75 76&:rtl { 77padding-right: 17px; 78} 79} 80 81.end-session-dialog-description { 82width: 28em; 83padding-bottom: 10px; 84 85&:rtl { 86text-align: right; 87} 88} 89 90.end-session-dialog-warning { 91width: 28em; 92padding-top: 6px; 93color: theme-color.$error; 94 95&:rtl { 96text-align: right; 97} 98} 99 100.end-session-dialog-logout-icon { 101width: 48px; 102height: 48px; 103border-radius: theme.$circular-radius; 104background-size: contain; 105} 106 107.end-session-dialog-shutdown-icon { 108width: 48px; 109height: 48px; 110color: theme-color.hint(theme-color.$on-surface); 111} 112 113.end-session-dialog-inhibitor-layout { 114max-height: 200px; 115padding-right: 64px; 116padding-left: 64px; 117spacing: 16px; 118} 119 120.end-session-dialog-session-list, 121.end-session-dialog-app-list { 122spacing: 1em; 123} 124 125.end-session-dialog-list-header { 126font-weight: bold; 127 128&:rtl { 129text-align: right; 130} 131} 132 133.end-session-dialog-app-list-item, 134.end-session-dialog-session-list-item { 135spacing: 1em; 136} 137 138.end-session-dialog-app-list-item-name, 139.end-session-dialog-session-list-item-name { 140font-weight: bold; 141} 142 143.end-session-dialog-app-list-item-description { 144color: theme-color.hint(theme-color.$on-surface); 145font-size: 1em; 146} 147} 148 149/* Message Dialog */ 150@if gnome-shell.$version >= 3.36 { 151.message-dialog-content { 152spacing: 18px; 153 154.message-dialog-title { 155@include typography.headline6; 156text-align: inherit; 157 158$lightweight: if(gnome-shell.$version >= 3.38, ".lightweight", ".leightweight"); 159 160&#{$lightweight} { 161@include typography.headline6; 162} 163} 164 165.message-dialog-description { 166color: theme-color.hint(theme-color.$on-surface); 167text-align: inherit; 168} 169} 170} @else { 171.message-dialog-main-layout { 172padding: 12px 20px 0; 173spacing: 12px; 174} 175 176.message-dialog-content { 177max-width: 28em; 178spacing: 20px; 179} 180 181.message-dialog-icon { 182min-width: 48px; 183icon-size: 48px; 184} 185 186.message-dialog-title { 187font-weight: bold; 188} 189 190.message-dialog-subtitle { 191color: theme-color.hint(theme-color.$on-surface); 192font-weight: normal; 193} 194} 195 196/* Dialog List */ 197.dialog-list { 198spacing: 18px; 199 200.dialog-list-title { 201text-align: inherit; 202font-weight: bold; 203} 204 205.dialog-list-scrollview { 206max-height: 200px; 207} 208 209.dialog-list-box { 210spacing: 1em; 211 212.dialog-list-item { 213spacing: 1em; 214 215.dialog-list-item-title { 216font-weight: bold; 217} 218 219.dialog-list-item-description { 220color: theme-color.hint(theme-color.$on-surface); 221font-size: 1em; 222} 223} 224} 225} 226 227/* Run Dialog */ 228.run-dialog { 229@if gnome-shell.$version >= 3.36 { 230.modal-dialog-content-box { 231margin-top: 24px; 232margin-bottom: 16px; 233} 234 235.run-dialog-entry { 236width: 20em; 237} 238 239.run-dialog-description { 240text-align: inherit; 241color: theme-color.hint(theme-color.$on-surface); 242font-size: 1em; 243} 244} @else { 245.run-dialog-label { 246padding-bottom: .4em; 247color: theme-color.hint(theme-color.$on-surface); 248font-weight: normal; 249font-size: 1em; 250} 251 252.run-dialog-entry { 253width: 20em; 254margin-bottom: 0; 255} 256 257.run-dialog-error-box { 258padding-top: 16px; 259spacing: 6px; 260color: theme-color.$error; 261} 262 263.run-dialog-button-box { 264padding-top: 1em; 265} 266} 267} 268 269/* Password or Authentication Dialog */ 270 271@if gnome-shell.$version >= 3.36 { 272.prompt-dialog { 273width: 28em; 274 275.modal-dialog-content-box { 276margin-bottom: 24px; 277} 278} 279 280.prompt-dialog-password-grid { 281spacing-rows: 8px; 282spacing-columns: 4px; 283 284.prompt-dialog-password-entry { 285width: auto; 286 287// 4px (spacing) + 16px (spinner-width) 288&:ltr { 289margin-left: 20px; 290} 291 292&:rtl { 293margin-right: 20px; 294} 295} 296} 297 298.prompt-dialog-password-layout { 299spacing: 8px; 300} 301 302.prompt-dialog-password-entry { 303width: 18em; 304} 305} @else { 306.prompt-dialog { 307// this is the width of the entire modal popup 308width: 34em; 309 310.message-dialog-main-layout { 311spacing: 24px; 312padding: 10px; 313} 314 315.message-dialog-content { 316spacing: 16px; 317} 318 319.message-dialog-title { 320color: inherit; 321@include typography.headline6; 322} 323} 324 325.prompt-dialog-description:rtl { 326text-align: right; 327} 328 329.prompt-dialog-password-box { 330spacing: 1em; 331padding-bottom: 1em; 332} 333} 334 335.prompt-dialog-error-label, 336.prompt-dialog-info-label, 337.prompt-dialog-null-label { 338font-size: 1em; 339 340@if gnome-shell.$version >= 3.36 { 341text-align: inherit; 342} @else { 343padding-bottom: 8px; 344} 345} 346 347.prompt-dialog-error-label { 348color: theme-color.$error; 349} 350 351@if gnome-shell.$version == 3.34 { 352.prompt-dialog-pim-box { 353spacing: 1em; 354} 355 356.prompt-dialog-grid { 357spacing-rows: 15px; 358spacing-columns: 1em; 359} 360 361.prompt-dialog-keyfiles-box { 362spacing: 1em; 363} 364 365.prompt-dialog-button.button { 366padding: 0 8px; 367} 368} 369 370 371/* Polkit Dialog */ 372 373.polkit-dialog-user-layout { 374@if gnome-shell.$version >= 3.36 { 375text-align: center; 376spacing: 8px; 377margin-bottom: 6px; 378} @else { 379spacing: 10px; 380padding-left: 10px; 381 382&:rtl { 383padding-left: 0; 384padding-right: 10px; 385} 386} 387 388@if gnome-shell.$version < 40 { 389.polkit-dialog-user-icon { 390border-radius: theme.$circular-radius; 391background-size: contain; 392 393@if gnome-shell.$version < 3.36 { 394width: 48px; 395height: 48px; 396} 397} 398} 399 400.polkit-dialog-user-root-label { 401color: theme-color.$error; 402} 403} 404 405/* Audio selection dialog */ 406.audio-device-selection-dialog { 407@if gnome-shell.$version >= 3.36 { 408.modal-dialog-content-box { 409margin-bottom: 28px; 410} 411} @else { 412spacing: 30px; 413 414.audio-selection-content { 415spacing: 20px; 416padding: 24px; 417} 418 419.audio-selection-title { 420font-weight: bold; 421text-align: inherit; 422} 423} 424 425.audio-selection-box { 426spacing: 20px; 427} 428} 429 430.audio-selection-device { 431transition-duration: theme.$state-duration; 432border: 0; 433border-radius: theme.$corner-radius; 434 435&:focus { 436background-color: theme-color.focus-overlay(theme-color.$on-surface); 437} 438 439&:hover { 440background-color: theme-color.hover-overlay(theme-color.$on-surface); 441} 442 443&:active { 444transition-duration: theme.$ripple-duration; 445background-color: theme-color.pressed-overlay(theme-color.$on-surface); 446color: inherit; 447} 448} 449 450.audio-selection-device-box { 451padding: 20px; 452spacing: 20px; 453} 454 455.audio-selection-device-icon { 456icon-size: 64px; 457} 458 459@if gnome-shell.$version >= 40 { 460/* Welcome dialog */ 461.welcome-dialog-image { 462// Reasonable maximum dimensions 463height: 300px; 464width: 300px; 465background-image: url("gnome-shell-start.svg"); 466background-size: contain; 467} 468} 469 470@if gnome-shell.$version < 3.36 { 471/* ShellMountOperation Dialogs */ 472.shell-mount-operation-icon { 473icon-size: 48px; 474} 475 476.mount-dialog-subject { 477@include typography.headline6; 478} 479 480.mount-dialog { 481spacing: 24px; 482 483.message-dialog-title { 484max-width: 34em; 485padding-top: 10px; 486padding-bottom: 6px; 487padding-left: 17px; 488 489&:rtl { 490padding-left: 0; 491padding-right: 17px; 492} 493} 494 495.message-dialog-body { 496width: 28em; 497padding-left: 17px; 498 499&:rtl { 500padding-left: 0; 501padding-right: 17px; 502} 503} 504} 505 506.mount-dialog-app-list { 507max-height: 200px; 508padding-top: 24px; 509padding-left: 48px; 510padding-right: 32px; 511 512&:rtl { 513padding-right: 48px; 514padding-left: 32px; 515} 516} 517 518.mount-dialog-app-list-item { 519&, 520&:hover { 521color: inherit; 522} 523 524&:ltr { 525padding-right: 1em; 526} 527 528&:rtl { 529padding-left: 1em; 530} 531} 532 533.mount-dialog-app-list-item-icon { 534&:ltr { 535padding-right: 16px; 536} 537 538&:rtl { 539padding-left: 16px; 540} 541} 542 543.mount-dialog-app-list-item-name { 544font-size: 1em; 545} 546 547/* Access Dialog */ 548.access-dialog { 549spacing: 30px; 550} 551 552/* Geolocation Dialog */ 553.geolocation-dialog { 554spacing: 30px; 555} 556 557/* Extension Dialog */ 558.extension-dialog { 559.message-dialog-main-layout { 560spacing: 24px; 561padding: 10px; 562} 563 564.message-dialog-title { 565color: theme-color.hint(theme-color.$on-surface); 566font-weight: normal; 567} 568} 569 570/* Inhibit-Shortcuts Dialog */ 571.inhibit-shortcuts-dialog { 572spacing: 30px; 573} 574 575/* Network Agent Dialog */ 576 577.network-dialog-secret-table { 578spacing-rows: 15px; 579spacing-columns: 1em; 580} 581 582.keyring-dialog-control-table { 583spacing-rows: 15px; 584spacing-columns: 1em; 585} 586} 587