Merge branch 'wip/jimmac/adwaita-3-32' into 'gtk-3-24'
Wip/jimmac/adwaita 3 32 See merge request GNOME/gtk!551
@ -2,16 +2,16 @@
|
||||
// it gets @if ed depending on $variant
|
||||
|
||||
|
||||
$base_color: if($variant == 'light', #ffffff, #232729);
|
||||
$base_color: if($variant == 'light', #ffffff, lighten(desaturate(#241f31, 100%), 2%));
|
||||
$text_color: if($variant == 'light', black, white);
|
||||
$bg_color: if($variant == 'light', #e8e8e7, #33393b);
|
||||
$bg_color: if($variant == 'light', #f6f5f4, darken(desaturate(#3d3846, 100%), 4%));
|
||||
$fg_color: if($variant == 'light', #2e3436, #eeeeec);
|
||||
|
||||
$selected_fg_color: #ffffff;
|
||||
$selected_bg_color: if($variant == 'light', #4a90d9, darken(#4a90d9, 20%));
|
||||
$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 30%), darken($selected_bg_color, 20%));
|
||||
$borders_color: if($variant == 'light', darken($bg_color, 20%), darken($bg_color, 10%));
|
||||
$alt_borders_color: if($variant == 'light', darken($bg_color, 35%), darken($bg_color, 17%));
|
||||
$selected_bg_color: if($variant == 'light', #3584e4, darken(#3584e4, 20%));
|
||||
$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 15%), darken($selected_bg_color, 30%));
|
||||
$borders_color: if($variant == 'light', darken($bg_color, 18%), darken($bg_color, 10%));
|
||||
$alt_borders_color: if($variant == 'light', darken($bg_color, 24%), darken($bg_color, 18%));
|
||||
$borders_edge: if($variant == 'light', transparentize(white, 0.2), transparentize($fg_color, 0.93));
|
||||
$link_color: if($variant == 'light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 20%));
|
||||
$link_visited_color: if($variant == 'light', darken($selected_bg_color, 20%), lighten($selected_bg_color, 10%));
|
||||
@ -29,12 +29,12 @@ $scrollbar_slider_active_color: if($variant=='light', darken($selected_bg_color,
|
||||
|
||||
$warning_color: #f57900;
|
||||
$error_color: #cc0000;
|
||||
$success_color: if($variant == 'light', #73d216, darken(#73d216, 10%));
|
||||
$destructive_color: if($variant == 'light', #ef2929, darken(#ef2929, 10%));
|
||||
$success_color: if($variant == 'light', #33d17a, darken(#33d17a, 10%));
|
||||
$destructive_color: if($variant == 'light', #e01b24, darken(#e01b24, 10%));
|
||||
|
||||
$osd_fg_color: #eeeeec;
|
||||
$osd_text_color: white;
|
||||
$osd_bg_color: transparentize(#1c1f20, 0.3);
|
||||
$osd_bg_color: transparentize(darken(#3d3846,10%), 0.3);
|
||||
$osd_insensitive_bg_color: transparentize(mix($osd_fg_color, opacify($osd_bg_color, 1), 10%), 0.5);
|
||||
$osd_insensitive_fg_color: mix($osd_fg_color, opacify($osd_bg_color, 1), 50%);
|
||||
$osd_borders_color: transparentize(black, 0.3);
|
||||
|
@ -6,6 +6,9 @@ $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
$asset_suffix: if($variant=='dark', '-dark', '');
|
||||
$backdrop_transition: 200ms ease-out;
|
||||
$button_transition: all 200ms $ease-out-quad;
|
||||
$button_radius: 5px;
|
||||
$menu_radius: 5px;
|
||||
$window_radius: $button_radius + 3;
|
||||
|
||||
* {
|
||||
padding: 0;
|
||||
@ -274,10 +277,6 @@ entry {
|
||||
&.right { margin-left: 6px; }
|
||||
}
|
||||
|
||||
undershoot {
|
||||
&.left { @include undershoot(left); }
|
||||
&.right { @include undershoot(right); }
|
||||
}
|
||||
|
||||
&.flat {
|
||||
&:focus, &:backdrop, &:disabled, &:backdrop:disabled, & {
|
||||
@ -524,9 +523,9 @@ button {
|
||||
|
||||
min-height: 24px;
|
||||
min-width: 16px;
|
||||
padding: 4px 8px;
|
||||
padding: 4px 9px;
|
||||
border: 1px solid;
|
||||
border-radius: 3px;
|
||||
border-radius: $button_radius;
|
||||
transition: $button_transition;
|
||||
|
||||
@include button(normal);
|
||||
@ -589,8 +588,8 @@ button {
|
||||
|
||||
&.image-button {
|
||||
min-width: 24px;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
&.text-button {
|
||||
@ -631,10 +630,10 @@ button {
|
||||
|
||||
// big standalone buttons like in Documents pager
|
||||
&.osd {
|
||||
min-width: 24px;
|
||||
min-width: 26px;
|
||||
min-height: 32px;
|
||||
|
||||
&.image-button { min-width: 32px; }
|
||||
&.image-button { min-width: 34px; }
|
||||
|
||||
color: $osd_fg_color;
|
||||
border-radius: 5px;
|
||||
@ -862,12 +861,14 @@ button {
|
||||
|
||||
&:not(.flat):not(:checked):not(:active):not(:disabled):not(:backdrop) {
|
||||
@include button(normal);
|
||||
|
||||
background-image: $button_fill, $_border_bg;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
&:hover:not(:checked):not(:active):not(:disabled):not(:backdrop) {
|
||||
@include button(hover);
|
||||
|
||||
background-image: $button_fill, $_border_bg;
|
||||
border-color: transparent;
|
||||
}
|
||||
@ -959,8 +960,8 @@ toolbar.inline-toolbar toolbutton:backdrop {
|
||||
}
|
||||
|
||||
%linked_left {
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
border-top-left-radius: $button_radius;
|
||||
border-bottom-left-radius: $button_radius;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-right-style: none;
|
||||
@ -969,8 +970,8 @@ toolbar.inline-toolbar toolbutton:backdrop {
|
||||
%linked_right {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
border-top-right-radius: $button_radius;
|
||||
border-bottom-right-radius: $button_radius;
|
||||
border-right-style: solid;
|
||||
}
|
||||
|
||||
@ -982,7 +983,7 @@ toolbar.inline-toolbar toolbutton:backdrop {
|
||||
&:last-child { @extend %linked_right; }
|
||||
|
||||
&:only-child {
|
||||
border-radius: 3px;
|
||||
border-radius: $button_radius;
|
||||
border-style: solid;
|
||||
}
|
||||
}
|
||||
@ -1048,7 +1049,7 @@ modelbutton.flat,
|
||||
min-height: 26px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
border-radius: 3px;
|
||||
border-radius: $button_radius;
|
||||
outline-offset: -2px;
|
||||
|
||||
@extend %undecorated_button;
|
||||
@ -1094,6 +1095,12 @@ button.color {
|
||||
}
|
||||
}
|
||||
|
||||
/* list buttons */
|
||||
/* tone down as per new designs, see issue #1473 */
|
||||
list row button {
|
||||
@extend %undecorated_button;
|
||||
border: 1px solid transparentize($borders_color, .5);
|
||||
}
|
||||
|
||||
/*********
|
||||
* Links *
|
||||
@ -1498,7 +1505,7 @@ headerbar {
|
||||
border-color: $alt_borders_color;
|
||||
border-radius: 0;
|
||||
|
||||
@include headerbar_fill;
|
||||
@include headerbar_fill(darken($bg_color, 10%));
|
||||
|
||||
&:backdrop {
|
||||
border-color: $backdrop_borders_color;
|
||||
@ -1537,6 +1544,11 @@ headerbar {
|
||||
background-color: $selected_bg_color;
|
||||
background-image: none;
|
||||
box-shadow: inset 0 1px mix($top_hilight, $selected_bg_color, 60%);
|
||||
|
||||
label {
|
||||
text-shadow: none;
|
||||
color: $selected_fg_color;
|
||||
}
|
||||
}
|
||||
|
||||
.subtitle:link { @extend *:link:selected; }
|
||||
@ -1631,8 +1643,8 @@ headerbar {
|
||||
background-color: transparentize($selected_bg_color, 1);
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
min-height: 20px;
|
||||
padding: 6px 10px;
|
||||
|
||||
arrow { -GtkArrow-arrow-scaling: 1; }
|
||||
|
||||
@ -1669,6 +1681,19 @@ headerbar {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
stackswitcher button:checked,
|
||||
button.toggle:checked {
|
||||
/* darken switchbuttons for headerbars. issue #1588 */
|
||||
background: if($variant == 'light', image(darken($bg_color, 17%)), image(darken($bg_color, 9%)));
|
||||
border-color: darken($borders_color, 3%);
|
||||
border-top-color: darken($borders_color, 8%);
|
||||
&:backdrop {
|
||||
@include button(backdrop-active);
|
||||
}
|
||||
}
|
||||
|
||||
separator.titlebutton { opacity: 0; } /* hide the close button separator */
|
||||
|
||||
.solid-csd & {
|
||||
&:backdrop, & {
|
||||
@ -1710,8 +1735,8 @@ headerbar {
|
||||
|
||||
.background .titlebar {
|
||||
&:backdrop, & {
|
||||
border-top-left-radius: 7px;
|
||||
border-top-right-radius: 7px;
|
||||
border-top-left-radius: $window_radius;
|
||||
border-top-right-radius: $window_radius;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1783,11 +1808,26 @@ headerbar { // headerbar border rounding
|
||||
|
||||
window.devel {
|
||||
headerbar.titlebar:not(.selection-mode) {
|
||||
background: transparent -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat,
|
||||
linear-gradient(to left, mix($selected_bg_color, $bg_color, 10%) 8%, $bg_color 25%);
|
||||
$c: darken($bg_color, 10%);
|
||||
$gradient: -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat,
|
||||
linear-gradient(to right, transparent 65%, transparentize($selected_bg_color, 0.8)),
|
||||
linear-gradient(to top, darken($c, 3%), $c 3px, lighten($c, 6%));
|
||||
@if $variant == 'dark' {
|
||||
$gradient: -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat,
|
||||
linear-gradient(to right, transparent 65%, transparentize($selected_bg_color, 0.9)),
|
||||
linear-gradient(to top, lighten($c, 3%) 3px, lighten($c, 5%));
|
||||
}
|
||||
|
||||
background: $bg_color $gradient;
|
||||
color: transparentize($fg_color,.9);
|
||||
|
||||
label { color: $fg_color; }
|
||||
|
||||
&:backdrop {
|
||||
background: $bg_color -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat,
|
||||
image($bg_color); /* background-color would flash */
|
||||
color: transparentize($fg_color,.95);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2060,6 +2100,7 @@ treeview.view {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*********
|
||||
* Menus *
|
||||
*********/
|
||||
@ -2075,6 +2116,16 @@ menubar,
|
||||
min-height: 16px;
|
||||
padding: 4px 8px;
|
||||
|
||||
// remove padding and rounding from menubar submenus
|
||||
menu {
|
||||
border-radius: 0;
|
||||
padding:0;
|
||||
menu {
|
||||
border-radius: 0;
|
||||
padding:0;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover { //Seems like it :hover even with keyboard focus
|
||||
box-shadow: inset 0 -3px $selected_bg_color;
|
||||
color: $link_color;
|
||||
@ -2085,15 +2136,23 @@ menubar,
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
// remove padding and rounding from menubar submenu decoration
|
||||
.csd.popup decoration {border-radius:0;}
|
||||
}
|
||||
|
||||
// Needed to make the border-radius of menus work
|
||||
// otherwise the background bleeds out of the menu edges
|
||||
.background.popup { background-color: transparent; }
|
||||
|
||||
menu,
|
||||
.menu,
|
||||
.context-menu {
|
||||
margin: 4px; // see https://bugzilla.gnome.org/show_bug.cgi?id=591258
|
||||
padding: 2px 0px;
|
||||
padding: 4px 0px;
|
||||
background-color: $menu_color;
|
||||
border: 1px solid $borders_color; // adds borders in a non composited env
|
||||
border-radius: $menu_radius;
|
||||
|
||||
.csd & { border: none; } // axes borders in a composited env
|
||||
|
||||
@ -2153,14 +2212,19 @@ menu,
|
||||
border-radius: 0;
|
||||
|
||||
&.top {
|
||||
margin-top: -6px;
|
||||
margin-top: -2px;
|
||||
border-bottom: 1px solid mix($fg_color, $base_color, 10%);
|
||||
border-top-right-radius: $menu_radius;
|
||||
border-top-left-radius: $menu_radius;
|
||||
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
margin-top: 4px;
|
||||
margin-bottom: -6px;
|
||||
border-top: 1px solid mix($fg_color, $base_color, 10%);
|
||||
border-bottom-right-radius: $menu_radius;
|
||||
border-bottom-left-radius: $menu_radius;
|
||||
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
||||
}
|
||||
|
||||
@ -2195,7 +2259,7 @@ menuitem {
|
||||
|
||||
popover.background {
|
||||
padding: 2px;
|
||||
border-radius: 5px;
|
||||
border-radius: $menu_radius + 4;
|
||||
background-color: $popover_bg_color;
|
||||
|
||||
.csd &, & { border: 1px solid $borders_color; }
|
||||
@ -2685,13 +2749,11 @@ treeview ~ scrollbar.vertical {
|
||||
* Switch *
|
||||
**********/
|
||||
switch {
|
||||
font-weight: bold;
|
||||
font-size: smaller;
|
||||
outline-offset: -4px;
|
||||
|
||||
// similar to the .scale
|
||||
border: 1px solid $borders_color;
|
||||
border-radius: 3px;
|
||||
border-radius: 14px;
|
||||
color: $fg_color;
|
||||
background-color: $dark_fill;
|
||||
text-shadow: 0 1px transparentize(black, 0.9);
|
||||
@ -2734,15 +2796,18 @@ switch {
|
||||
|
||||
slider {
|
||||
margin: -1px;
|
||||
min-width: 44px;
|
||||
min-height: 26px;
|
||||
min-width: 24px;
|
||||
min-height: 24px;
|
||||
border: 1px solid;
|
||||
border-radius: 3px;
|
||||
border-radius: 50%;
|
||||
transition: $button_transition;
|
||||
-gtk-outline-radius: 20px;
|
||||
|
||||
@include button(normal-alt, $edge: $shadow_color);
|
||||
}
|
||||
|
||||
image { color: transparent; } /* only show i / o for the accessible theme */
|
||||
|
||||
&:hover slider { @include button(hover-alt, $edge: $shadow_color); }
|
||||
|
||||
&:checked slider { border: 1px solid $selected_borders_color; }
|
||||
@ -2774,6 +2839,7 @@ switch {
|
||||
slider { &:checked, & { border-color: $selected_borders_color; } }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -3635,16 +3701,6 @@ scrolledwindow {
|
||||
}
|
||||
}
|
||||
|
||||
// Overflow indication, works similarly to the overshoot, the size if fixed tho.
|
||||
undershoot {
|
||||
&.top { @include undershoot(top); }
|
||||
|
||||
&.bottom { @include undershoot(bottom); }
|
||||
|
||||
&.left { @include undershoot(left); }
|
||||
|
||||
&.right { @include undershoot(right); }
|
||||
}
|
||||
|
||||
junction { // the small square between two scrollbars
|
||||
border-color: transparent;
|
||||
@ -3822,8 +3878,8 @@ messagedialog { // Message Dialog styling
|
||||
&.csd { // rounded bottom border styling for csd version
|
||||
&.background {
|
||||
// bigger radius for better antialiasing
|
||||
border-bottom-left-radius: 9px;
|
||||
border-bottom-right-radius: 9px;
|
||||
border-bottom-left-radius: $window_radius+1;
|
||||
border-bottom-right-radius: $window_radius+1;
|
||||
}
|
||||
|
||||
.dialog-action-area button {
|
||||
@ -4381,7 +4437,7 @@ colorchooser .popover.osd { border-radius: 5px; }
|
||||
* Window Decorations *
|
||||
*********************/
|
||||
decoration {
|
||||
border-radius: 7px 7px 0 0;
|
||||
border-radius: $window_radius $window_radius 0 0;
|
||||
// lamefun trick to get rounded borders regardless of CSD use
|
||||
border-width: 0px;
|
||||
|
||||
@ -4423,7 +4479,7 @@ decoration {
|
||||
.ssd & { box-shadow: 0 0 0 1px $_wm_border; } //just doing borders, wm draws actual shadows
|
||||
|
||||
.csd.popup & {
|
||||
border-radius: 0;
|
||||
border-radius: $menu_radius;
|
||||
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
||||
0 0 0 1px transparentize($_wm_border, 0.1);
|
||||
}
|
||||
@ -4434,7 +4490,7 @@ decoration {
|
||||
}
|
||||
|
||||
messagedialog.csd & {
|
||||
border-radius: 7px;
|
||||
border-radius: $window_radius;
|
||||
box-shadow: 0 1px 2px transparentize(black, 0.8),
|
||||
0 0 0 1px transparentize($_wm_border, 0.1);
|
||||
}
|
||||
@ -4576,6 +4632,23 @@ stackswitcher button.text-button.circular { // FIXME aggregate with buttons
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*************
|
||||
* App Icons *
|
||||
*************/
|
||||
/* Outline for low res icons */
|
||||
.lowres-icon {
|
||||
-gtk-icon-shadow: 1px 1px rgba(0,0,0,0.3),
|
||||
-1px -1px rgba(0,0,0,0.3),
|
||||
-1px 1px rgba(0,0,0,0.3),
|
||||
1px -1px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
/* Drapshadow for large icons */
|
||||
.icon-dropshadow {
|
||||
-gtk-icon-shadow: 0 2px 12px rgba(0,0,0,0.2),
|
||||
0 1px 2px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
/*********
|
||||
* Emoji *
|
||||
********/
|
||||
|
@ -115,8 +115,8 @@
|
||||
// buttons
|
||||
|
||||
@function _border_color($c, $darker: false) {
|
||||
@if $darker == true { @return darken($c, 30%); }
|
||||
@else { @return darken($c, 20%); }
|
||||
@if $darker == true { @return darken($c, 20%); }
|
||||
@else { @return darken($c, 10%); }
|
||||
}
|
||||
|
||||
@function _text_shadow_color ($tc: $fg_color, $bg: $bg_color) {
|
||||
@ -139,10 +139,10 @@
|
||||
//
|
||||
@if lightness($c)>95% { @return white; }
|
||||
@else if lightness($c)>90% { @return transparentize(white, 0.2); }
|
||||
@else if lightness($c)>80% { @return transparentize(white, 0.4); }
|
||||
@else if lightness($c)>50% { @return transparentize(white, 0.6); }
|
||||
@else if lightness($c)>40% { @return transparentize(white, 0.8); }
|
||||
@else { @return transparentize(white, 0.95); }
|
||||
@else if lightness($c)>80% { @return transparentize(white, 0.5); }
|
||||
@else if lightness($c)>50% { @return transparentize(white, 0.8); }
|
||||
@else if lightness($c)>40% { @return transparentize(white, 0.9); }
|
||||
@else { @return transparentize(white, 0.98); }
|
||||
}
|
||||
|
||||
@mixin _button_text_shadow ($tc:$fg_color, $bg:$bg_color) {
|
||||
@ -186,6 +186,7 @@
|
||||
$_hilight_color: _button_hilight_color($c);
|
||||
$_button_edge: if($edge == none, none, _widget_edge($edge));
|
||||
$_blank_edge: if($edge == none, none, _widget_edge(transparentize($edge,1)));
|
||||
$_button_shadow: 0 1px 2px transparentize($shadow_color, 0.03);
|
||||
|
||||
@if $t==normal {
|
||||
//
|
||||
@ -195,11 +196,11 @@
|
||||
outline-color: transparentize($tc, 0.7);
|
||||
border-color: if($c != $bg_color, _border_color($c), $borders_color);
|
||||
border-bottom-color: if($c != $bg_color, _border_color($c, true), $alt_borders_color);
|
||||
$button_fill: if($variant == 'light', linear-gradient(to bottom, $c, darken($c, 4%) 60%, darken($c, 10%)),
|
||||
linear-gradient(to bottom, darken($c, 2%), darken($c, 4%) 60%, darken($c, 6%))) !global;
|
||||
$button_fill: if($variant == 'light', linear-gradient(to top, darken($c, 4%) 2px, $c),
|
||||
linear-gradient(to top, darken($c,1%) 2px, $c)) !global;
|
||||
background-image: $button_fill;
|
||||
@include _button_text_shadow($tc, $c);
|
||||
@include _shadows(inset 0 1px $_hilight_color, $_button_edge);
|
||||
@include _shadows(inset 0 1px $_hilight_color, $_button_edge, $_button_shadow);
|
||||
}
|
||||
|
||||
@else if $t==hover {
|
||||
@ -211,14 +212,14 @@
|
||||
border-color: if($c != $bg_color, _border_color($c), $borders_color);
|
||||
border-bottom-color: if($c != $bg_color, _border_color($c, true), $alt_borders_color);
|
||||
@if $variant == 'light' {
|
||||
$button_fill: linear-gradient(to bottom, lighten($c, 6%), $c 60%, darken($c, 4%)) !global;
|
||||
$button_fill: linear-gradient(to top, $c, lighten($c, 1%) 1px) !global;
|
||||
@include _button_text_shadow($tc, lighten($c, 6%));
|
||||
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)), $_button_edge);
|
||||
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)), $_button_edge, $_button_shadow);
|
||||
}
|
||||
@else {
|
||||
$button_fill: linear-gradient(to bottom, lighten($c, 1%), darken($c, 2%) 60%, darken($c, 4%)) !global;
|
||||
$button_fill: linear-gradient(to top, darken($c,1%), lighten($c, 1%) 1px) !global;
|
||||
@include _button_text_shadow($tc,lighten($c, 6%));
|
||||
@include _shadows(inset 0 1px _button_hilight_color(darken($c, 2%)), $_button_edge);
|
||||
@include _shadows(inset 0 1px _button_hilight_color(darken($c, 2%)), $_button_edge, $_button_shadow);
|
||||
}
|
||||
background-image: $button_fill;
|
||||
}
|
||||
@ -233,17 +234,13 @@
|
||||
@include _button_text_shadow($tc, $c);
|
||||
@if $variant == 'light' {
|
||||
background-image: linear-gradient(to bottom, lighten($c, 5%) 20%, $c 90%);
|
||||
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)),
|
||||
inset 0 -2px lighten($c, 2%),
|
||||
inset 0 -1px darken($c, 12%),
|
||||
$_button_edge);
|
||||
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)),
|
||||
$_button_edge, $_button_shadow);
|
||||
}
|
||||
@else {
|
||||
background-image: linear-gradient(to bottom, darken($c, 3%) 20%, darken($c, 6%) 90%);
|
||||
@include _shadows(inset 0 1px $_hilight_color,
|
||||
inset 0 -2px darken($c, 4%),
|
||||
inset 0 -1px darken($c, 9%),
|
||||
$_button_edge);
|
||||
$_button_edge, $_button_shadow);
|
||||
}
|
||||
}
|
||||
|
||||
@ -257,16 +254,12 @@
|
||||
@if $variant == 'light' {
|
||||
$button_fill: linear-gradient(to bottom, lighten($c, 9%) 10%, lighten($c, 4%) 90%) !global;
|
||||
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)),
|
||||
inset 0 -2px lighten($c, 5%),
|
||||
inset 0 -1px darken($c, 10%),
|
||||
$_button_edge);
|
||||
$_button_edge, $_button_shadow);
|
||||
}
|
||||
@else {
|
||||
$button_fill: linear-gradient(to bottom, $c 20%, darken($c, 4%) 90%) !global;
|
||||
@include _shadows(inset 0 1px $_hilight_color,
|
||||
inset 0 -2px darken($c, 3%),
|
||||
inset 0 -1px darken($c, 6%),
|
||||
$_button_edge);
|
||||
$_button_edge, $_button_shadow);
|
||||
}
|
||||
background-image: $button_fill;
|
||||
}
|
||||
@ -278,7 +271,7 @@
|
||||
color: $tc;
|
||||
outline-color: transparentize($tc, 0.7);
|
||||
border-color: if($c != $bg_color, _border_color($c), $borders_color);
|
||||
$button_fill: image(darken($c, 6%)) !global;
|
||||
$button_fill: if($variant == 'light', image(darken($c, 14%)), image(darken($c, 9%))) !global;
|
||||
background-image: $button_fill;
|
||||
@include _shadows(inset 0 1px transparentize($_hilight_color, 1), $_button_edge);
|
||||
|
||||
@ -499,9 +492,9 @@
|
||||
// $hc: top highlight color
|
||||
// $ov: a background layer for background shorthand (hence no commas!)
|
||||
//
|
||||
$gradient: linear-gradient(to top, darken($c, 13%), darken($c, 2%) 2px, $c 3px);
|
||||
$gradient: linear-gradient(to top, darken($c, 2%), lighten($c, 1%));
|
||||
|
||||
@if $variant == 'dark' { $gradient: linear-gradient(to top, darken($c, 3%), darken($c, 1%) 2px, $c 3px); }
|
||||
@if $variant == 'dark' { $gradient: linear-gradient(to top, lighten($c, 4%), lighten($c, 6%)); }
|
||||
|
||||
@if $ov != none { background: $c $ov, $gradient; }
|
||||
@else { background: $c $gradient; }
|
||||
@ -588,42 +581,4 @@
|
||||
box-shadow: none; //
|
||||
}
|
||||
|
||||
@mixin undershoot($p) {
|
||||
//
|
||||
// undershoot
|
||||
//
|
||||
// $p: position
|
||||
//
|
||||
// possible $p values:
|
||||
// top, bottom, right, left
|
||||
//
|
||||
|
||||
$_undershoot_color_dark: transparentize(black, 0.8);
|
||||
$_undershoot_color_light: transparentize(white, 0.8);
|
||||
|
||||
$_gradient_dir: left;
|
||||
$_dash_bg_size: 10px 1px;
|
||||
$_gradient_repeat: repeat-x;
|
||||
$_bg_pos: center $p;
|
||||
|
||||
background-color: transparent; // shouldn't be needed, but better to be sure;
|
||||
|
||||
@if ($p == left) or ($p == right) {
|
||||
$_gradient_dir: top;
|
||||
$_dash_bg_size: 1px 10px;
|
||||
$_gradient_repeat: repeat-y;
|
||||
$_bg_pos: $p center;
|
||||
}
|
||||
|
||||
background-image: linear-gradient(to $_gradient_dir, // this is the dashed line
|
||||
$_undershoot_color_light 50%,
|
||||
$_undershoot_color_dark 50%);
|
||||
|
||||
padding-#{$p}: 1px;
|
||||
background-size: $_dash_bg_size;
|
||||
background-repeat: $_gradient_repeat;
|
||||
background-origin: content-box;
|
||||
background-position: $_bg_pos;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 209 KiB |
Before Width: | Height: | Size: 870 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 801 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 929 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 879 B After Width: | Height: | Size: 891 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 990 B After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 773 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 760 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 780 B After Width: | Height: | Size: 782 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 763 B After Width: | Height: | Size: 788 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 889 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 834 B After Width: | Height: | Size: 841 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 968 B After Width: | Height: | Size: 831 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 767 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 807 B After Width: | Height: | Size: 793 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 977 B After Width: | Height: | Size: 961 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 885 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 943 B After Width: | Height: | Size: 965 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 763 B After Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 784 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 801 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 851 B After Width: | Height: | Size: 862 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 867 B After Width: | Height: | Size: 879 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 962 B After Width: | Height: | Size: 719 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 802 B After Width: | Height: | Size: 801 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1003 B After Width: | Height: | Size: 861 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 916 B After Width: | Height: | Size: 915 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 982 B After Width: | Height: | Size: 994 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 759 B After Width: | Height: | Size: 736 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 748 B After Width: | Height: | Size: 736 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 791 B After Width: | Height: | Size: 792 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 769 B After Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 887 B After Width: | Height: | Size: 904 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 889 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 997 B After Width: | Height: | Size: 852 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 736 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 799 B After Width: | Height: | Size: 787 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1008 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 933 B After Width: | Height: | Size: 952 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1008 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 757 B After Width: | Height: | Size: 713 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 734 B After Width: | Height: | Size: 713 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |