_lightdm.scss
ASCII text
1/** 2* LightDM GTK+ Greeter 3*/ 4 5// Based on: 6// https://bazaar.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk/view/head:/data/sample-lightdm-gtk-greeter.css 7 8@use "../../../theme"; 9@use "../../../theme-color"; 10@use "../../../shadow"; 11@use "../common"; 12@use "../drawing"; 13 14// the panel widget at the top 15#panel_window { 16background-color: theme-color.$scrim-alt; 17color: theme-color.$on-scrim-alt; 18// font-weight: bold; 19 20// the menubars/menus of the panel, i.e. indicators 21menubar, 22separator { 23background-color: transparent; 24} 25 26separator { 27padding: 0 4px; 28 29&:first-child { 30padding: 0 8px; 31} 32} 33 34menubar > menuitem { 35color: theme-color.hint(theme-color.$on-scrim-alt); 36 37&:hover { 38background-color: theme-color.activated-overlay(theme-color.$on-scrim-alt); 39color: theme-color.$on-scrim-alt; 40} 41 42&:disabled { 43color: theme-color.disabled-hint(theme-color.$on-scrim-alt); 44} 45} 46} 47 48// the login window 49#login_window, 50#shutdown_dialog, 51#restart_dialog { 52margin: 8px; 53border-radius: theme.$corner-radius; 54box-shadow: shadow.$z6, inset 0 1px theme-color.highlight(theme-color.$surface-z8); 55background-color: theme-color.$surface-z8; 56color: theme-color.$on-surface; 57} 58 59// the top half of the login-window, in GtkDialog terms, the content 60#content_frame { 61padding-bottom: 28px - 12px; // take into account the hard-coded 12px margin_bottom 62} 63 64#login_window { 65// the user-combobox 66#user_combobox button { 67} 68 69// the entries, one for the username, one for the password 70entry { 71} 72} 73 74// the buttons, alternatively this could also be done with a simple ".lightdm-gtk-greeter button" 75#login_window button, 76#shutdown_dialog button, 77#restart_dialog button { 78} 79 80.lightdm-gtk-greeter button { 81} 82 83// the user's avatar box 84#user_image { 85} 86 87// the border around the user's avatar box 88#user_image_border { 89} 90 91// the lower half of the login-window, in GtkDialog terms the buttonbox or action area 92#buttonbox_frame { 93padding-top: 24px; 94 95> box, 96> buttonbox { 97margin: -16px; 98} 99 100button { 101@extend %button-flat; 102 103&:not(:disabled) { 104color: theme-color.$primary; 105@include drawing.ink-color(theme-color.$primary, $button-style: "flat"); 106} 107} 108} 109 110// the shutdown button 111#shutdown_button { 112} 113 114// the restart button 115#restart_button { 116} 117 118// the warning, in case a wrong password is entered or something else goes wrong according to PAM 119#greeter_infobar { 120// font-weight: bold; 121} 122