aboutsummaryrefslogtreecommitdiffstats
path: root/web/css/_src/_mixins.scss
diff options
context:
space:
mode:
authorShevAbam <shevabam@gmail.com>2015-07-07 15:57:41 +0200
committerShevAbam <shevabam@gmail.com>2015-07-07 15:57:41 +0200
commit9970343fe5c8226f25234addc6b80836c092fe1f (patch)
treece8f029f3ce9251bd4c207a6427c356ad9042525 /web/css/_src/_mixins.scss
parentdd982cee0716e38e68bc42ffb24952b5675a5b19 (diff)
General : cleaning and optimizing CSS
General : responsive design General : reload button now spins when you reload block General : update jQuery plugin Knob to 1.2.11 General : optimizing security (config file esm.config.json is now in the conf/ folder with an htaccess) CPU : retrieves correctly CPU frequency for Raspberry Pi CPU : add CPU temperature (+ option to enable/disable) System : little correction for getting distro name Swap : fix if swap is disabled Services status : adds protocol TCP or UDP for checking service status Services status : new option to hide port number (see show_port in services section)
Diffstat (limited to 'web/css/_src/_mixins.scss')
-rw-r--r--web/css/_src/_mixins.scss39
1 files changed, 23 insertions, 16 deletions
diff --git a/web/css/_src/_mixins.scss b/web/css/_src/_mixins.scss
index d547306..450bf76 100644
--- a/web/css/_src/_mixins.scss
+++ b/web/css/_src/_mixins.scss
@@ -15,22 +15,29 @@
}
}
-@mixin letterpress($opacity) {
- text-shadow: rgba(255, 255, 255, $opacity) 0 1px 0;
-}
+@function map-get-deep($map, $keys...) {
+ @if length($keys) == 1 {
+ $keys: nth($keys, 1);
+ }
+ $warn: "#{nth($keys, 1)}";
+ $length: length($keys);
+ $get: map-get($map, nth($keys, 1));
-@mixin hide-text {
- font: 0/0 a;
- text-shadow: none;
- color: transparent;
-}
+ @if $length > 1 {
+ @for $i from 2 through $length {
+ @if $get != null and type-of($get) == 'map' {
+ $warn: $warn + "->#{nth($keys, $i)}";
+ $get: map-get($get, nth($keys, $i));
-@mixin link-colors($normal, $hover: $normal, $visited: $normal) {
- color: $normal;
- &:hover, &:focus {
- color: $hover;
+ @if $get == null {
+ @return map-get-deep-warning($warn, $get);
+ }
+ }
+ @else {
+ @return map-get-deep-warning($warn, $get);
+ }
+ }
}
- &:visited {
- color: $visited;
- }
-}
+
+ @return $get;
+} \ No newline at end of file