open #95 Mostly about the overlay and forms; Buttons, menus, selects tweaks continued; Initial check and tweaks in mobile;
48 lines
1.3 KiB
SCSS
48 lines
1.3 KiB
SCSS
@mixin containerSubtle($bg: $colorBodyBg, $fg: $colorBodyFg, $hover: false) {
|
|
$ltnRatio: 7%;
|
|
$gradRatio: 5%;
|
|
$hovRatio: 7%;
|
|
$bgBase: $bg; //pullForward($bg, $ltnRatio);
|
|
$fgBase: $fg; // pullForward($fg, $ltnRatio);
|
|
$gradC1: lighten($bgBase, $gradRatio); // Container should be lighter higher up
|
|
$gradC2: $bgBase;
|
|
$cInvokeBase: #fff;
|
|
|
|
@include background-image(linear-gradient($gradC1, $gradC2));
|
|
@include border-radius($controlCr);
|
|
@include box-sizing(border-box);
|
|
@include boxShdwSubtle();
|
|
border: none;
|
|
//border-top: 1px solid lighten($gradC1, 2%);
|
|
color: $fg;
|
|
display: inline-block;//
|
|
}
|
|
|
|
@mixin btnSubtle($bg: $colorBodyBg, $bgHov: none, $fg: $colorBodyFg, $ic: $colorBtnIcon) {
|
|
@include user-select(none);
|
|
@include border-radius($controlCr);
|
|
@include containerSubtle($bg, $fg);
|
|
@include text-shadow(rgba(black, 0.3) 0 1px 1px);
|
|
color: $fg;
|
|
.icon {
|
|
color: $ic;
|
|
}
|
|
@if $bgHov != none {
|
|
&:not(.disabled):hover {
|
|
background-color: $bgHov;
|
|
.icon {
|
|
color: lighten($ic, $ltGamma);
|
|
}
|
|
}
|
|
}
|
|
}//
|
|
|
|
@function pullForward($c: $colorBodyBg, $p: 20%) {
|
|
// For dark interfaces, lighter things come forward - opposite for light interfaces
|
|
@return lighten($c, $p);
|
|
}
|
|
|
|
@function pushBack($c: $colorBodyBg, $p: 20%) {
|
|
// For dark interfaces, darker things move back - opposite for light interfaces
|
|
@return darken($c, $p);
|
|
} |