[GTK 3.20] Unity-greeter rewrite sass format.

pull/536/head
Csaba Jakosa 2016-08-28 18:36:10 +02:00 committed by Khurshid Alam
parent 5e9ab2ed8e
commit 27b4ce7f52
1 changed files with 93 additions and 104 deletions

View File

@ -3,114 +3,103 @@
***********************/ ***********************/
@include exports("unity-greeter") { @include exports("unity-greeter") {
@keyframes dashentry_spinner {
to { -gtk-icon-transform: rotate(1turn); }
.lightdm.menu {
background-image: none;
background-color: fade-out($black, .4);
border-color: fade-out($white, .8);
border-radius: 4px;
padding: 1px;
color: $white;
} }
.lightdm-combo .menu { %lightdm-button {
background-color: shade($dark_bg_color, 1.08);
border-radius: 0;
padding: 0;
color: $white;
}
.lightdm.menu .menuitem *,
.lightdm.menu .menuitem.check:active,
.lightdm.menu .menuitem.radio:active {
color: $white;
}
.lightdm.menubar *,
.lightdm.menubar .menuitem {
padding: 2px;
}
.lightdm-combo.combobox-entry .button,
.lightdm-combo .cell,
.lightdm-combo .button,
.lightdm-combo .entry,
.lightdm.button{
background-image: none; background-image: none;
background-color: fade-out($black, .7); background-color: fade-out($black, .7);
border-color: fade-out($white, .1); border-color: fade-out($white, .1);
border-radius: 5px; border-radius: ($roundness * 2) + 1px;
padding: 5px; padding: $spacing;
color: $white; color: $white;
} }
.lightdm.button:hover {
.lightdm {
&.menu {
background-image: none; background-image: none;
background-color: fade-out($black, .4);
border-color: fade-out($white, .8);
border-radius: $roundness * 2;
padding: 1px;
color: $white;
.menuitem { *, &.check:active, &.radio:active { color: $white; } }
}
&.menubar { *, &.menuitem { padding: $spacing - 3px; } }
&.option-button {
padding: $spacing;
background: none;
border: 0;
}
&.toggle-button {
background: none;
border-width: 0;
&.selected {
background-color: fade-out($black, .7);
border-color: fade-out($white, .7);
border-width: 1px;
&:hover { background-color: fade-out($white, .7); }
}
}
&.button {
@extend %lightdm-button;
&:hover {
background-color: fade-out($white, .7); background-color: fade-out($white, .7);
border-color: fade-out($white, .4); border-color: fade-out($white, .4);
border-radius: 5px;
padding: 5px;
color: $white;
text-shadow: none; text-shadow: none;
} }
.lightdm.button:active, }
.lightdm.button:active:focus,
.lightdm.button:focus,
.lightdm.entry { &.entry, &.button:active, &.button:active:focus, &.button:focus {
background-image: none; background-image: none;
background-color: fade-out($black, .7); background-color: fade-out($black, .7);
border-color: fade-out($white, .4); border-color: fade-out($white, .4);
border-radius: 5px; border-radius: ($roundness * 2) + 1px;
padding: 7px; padding: $spacing + 2px;
color: $white; color: $white;
text-shadow: none; text-shadow: none;
} }
.lightdm.entry:hover,
.lightdm.entry:active, &.entry {
.lightdm.entry:active:focus { &:hover, &:active, &:active:focus {
background-image: none; background-image: none;
border-image: none; border-image: none;
} }
.lightdm.entry:focus {
&:active {
-gtk-icon-source: -gtk-icontheme("process-working-symbolic");
animation: dashentry_spinner 1s infinite linear;
}
&:focus {
border-color: fade-out($white, .4); border-color: fade-out($white, .4);
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
color: $white; color: $white;
} }
.lightdm.entry:selected {
background-color: fade-out($white, .8); &:selected { background-color: fade-out($white, .8); }
}
} }
@keyframes dashentry_spinner { .lightdm-combo {
to { -gtk-icon-transform: rotate(1turn); } &.combobox-entry .button, .cell, .button, .entry { @extend %lightdm-button; }
}
.lightdm.entry:active { &.menu {
-gtk-icon-source: -gtk-icontheme("process-working-symbolic"); background-color: shade($dark_bg_color, 1.08);
animation: dashentry_spinner 1s infinite linear; border-radius: 0;
padding: 0;
color: $white;
} }
.lightdm.option-button {
padding: 5px;
background: none;
border: 0;
}
.lightdm.toggle-button {
background: none;
border-width: 0;
}
.lightdm.toggle-button.selected:hover {
background-color: fade-out($white, .7);
border-color: fade-out($white, .7);
border-width: 1px;
}
.lightdm.toggle-button.selected {
background-color: fade-out($black, .7);
border-color: fade-out($white, .7);
border-width: 1px;
} }
} }