gnome-shell-dark-theme/gnome-shell-sass/widgets/_dialogs.scss

176 lines
3.3 KiB
SCSS
Raw Normal View History

/* Modal Dialogs */
.headline {
@extend %title_4;
}
.modal-dialog {
background-color: $bg_color;
2024-09-19 20:40:52 -04:00
border-radius: $alert_radius;
box-shadow: inset 0 0 0 1px $outer_borders_color;
2024-09-19 20:40:52 -04:00
padding: $base_padding * 4;
.modal-dialog-content-box {
2024-03-25 13:34:36 -04:00
spacing: $base_margin * 8;
2024-09-19 20:40:52 -04:00
margin-top: $base_margin * 2;
margin-bottom: $base_margin * 4;
max-width: 28em;
}
.modal-dialog-linked-button {
2024-09-19 20:40:52 -04:00
@extend %dialog_button;
}
}
/* End Session Dialog */
.end-session-dialog {
2024-09-19 20:40:52 -04:00
width: 24em;
.end-session-dialog-battery-warning,
.dialog-list-title {
color: $warning_color;
}
}
/* Message Dialog */
.message-dialog-content {
2024-03-25 13:34:36 -04:00
spacing: $base_padding * 3;
.message-dialog-title {
text-align: center;
@extend %title_2;
&.lightweight { @extend %title_4;}
}
.message-dialog-description { text-align: center; }
}
/* Dialog List */
.dialog-list {
2024-03-25 13:34:36 -04:00
spacing: $base_padding * 3;
.dialog-list-title {
text-align: center;
@extend %heading;
}
.dialog-list-scrollview { max-height: 200px; }
.dialog-list-box {
spacing: 1em;
.dialog-list-item {
spacing: 1em;
.dialog-list-item-title { font-weight: bold; }
.dialog-list-item-description {
color: darken($fg_color,5%);
@extend %caption;
}
}
}
}
/* Run Dialog */
.run-dialog {
.modal-dialog-content-box {
2024-03-25 13:34:36 -04:00
margin-top: $base_padding * 4;
margin-bottom: $base_padding * 2;
}
.run-dialog-entry { width: 20em; }
.run-dialog-description {
@extend %caption;
text-align: center;
color: darken($fg_color, 20%);
}
}
/* Password or Authentication Dialog */
.prompt-dialog {
width: 28em;
.modal-dialog-content-box {
2024-03-25 13:34:36 -04:00
margin-bottom: $base_margin * 6;
}
}
.prompt-dialog-password-grid {
2024-03-25 13:34:36 -04:00
spacing-rows: $base_margin * 2;
spacing-columns: $base_margin;
.prompt-dialog-password-entry {
width: auto;
// 4px (spacing) + 16px (spinner-width)
2024-03-25 13:34:36 -04:00
&:ltr { margin-left: $base_margin+$base_icon_size; }
&:rtl { margin-right: $base_margin+$base_icon_size; }
}
}
.prompt-dialog-password-layout {
2024-03-25 13:34:36 -04:00
spacing: $base_margin * 2;
}
.prompt-dialog-password-entry {
width: 20em;
}
.prompt-dialog-error-label,
.prompt-dialog-info-label,
.prompt-dialog-null-label {
text-align: center;
@extend %caption;
}
.prompt-dialog-error-label {
color: $warning_color;
}
/* Polkit Dialog */
.polkit-dialog-user-layout {
text-align: center;
2024-03-25 13:34:36 -04:00
spacing: $base_margin * 2;
margin-bottom: $base_padding;
.polkit-dialog-user-root-label { color: $warning_color; }
}
/* Audio selection dialog */
.audio-device-selection-dialog {
2024-03-25 13:34:36 -04:00
.modal-dialog-content-box { margin-bottom: $base_margin * 7; }
.audio-selection-box { spacing: $base_margin * 5; }
}
.audio-selection-device {
2024-03-25 13:34:36 -04:00
border-radius: $base_border_radius * 2;
&:hover,&:focus { background-color: $hover_bg_color; }
2024-03-25 13:34:36 -04:00
&:active {
2024-09-19 20:40:52 -04:00
background-color: -st-accent-color;
color: -st-accent-fg-color;
}
}
.audio-selection-device-box {
2024-03-25 13:34:36 -04:00
padding: $base_margin * 5;
spacing: $base_margin * 5;
}
.audio-selection-device-icon {
icon-size: $base_icon_size * 4;
}
/* Welcome dialog */
.welcome-dialog-image {
background-image: url("resource:///org/gnome/shell/theme/gnome-shell-start.svg");
background-size: contain;
/* Reasonable maximum dimensions */
height: 300px;
width: 300px;
}
/* Access portal dialog */
.access-dialog {
text-align: center;
}