@@ -15,162 +15,136 @@ $white: #F1FFF7;
15
15
$warning-yellow : #FFFDF1 ;
16
16
$warning-dark-yellow : #F5F1C7 ;
17
17
$red : #BA2121 ;
18
+ $red-light : #FFBABA ;
18
19
$red-dark : #6A0E0E ;
19
20
$font-path : " ../fonts/fira-mono" ;
20
21
21
22
// @font-face declarations
22
23
23
24
@font-face {
24
- font-family : ' Fira Mono' ;
25
- src : url (' #{$font-path } /FiraMono-Regular.eot' );
26
- src : url (' #{$font-path } /FiraMono-Regular.eot' ) format (' embedded-opentype' ),
27
- url (' #{$font-path } /FiraMono-Regular.woff' ) format (' woff' ),
28
- url (' #{$font-path } /FiraMono-Regular.ttf' ) format (' truetype' );
29
- font-weight : 400 ;
30
- font-style : normal ;
25
+ font-family : ' Fira Mono' ;
26
+ src : url (' #{$font-path } /FiraMono-Regular.eot' );
27
+ src : url (' #{$font-path } /FiraMono-Regular.eot' ) format (' embedded-opentype' ),
28
+ url (' #{$font-path } /FiraMono-Regular.woff' ) format (' woff' ),
29
+ url (' #{$font-path } /FiraMono-Regular.ttf' ) format (' truetype' );
30
+ font-weight : 400 ;
31
+ font-style : normal ;
31
32
}
32
33
33
34
@font-face {
34
- font-family : ' Fira Mono' ;
35
- src : url (' #{$font-path } /FiraMono-Bold.eot' );
36
- src : url (' #{$font-path } /FiraMono-Bold.eot' ) format (' embedded-opentype' ),
37
- url (' #{$font-path } /FiraMono-Bold.woff' ) format (' woff' ),
38
- url (' #{$font-path } /FiraMono-Bold.ttf' ) format (' truetype' );
39
- font-weight : 700 ;
40
- font-style : normal ;
35
+ font-family : ' Fira Mono' ;
36
+ src : url (' #{$font-path } /FiraMono-Bold.eot' );
37
+ src : url (' #{$font-path } /FiraMono-Bold.eot' ) format (' embedded-opentype' ),
38
+ url (' #{$font-path } /FiraMono-Bold.woff' ) format (' woff' ),
39
+ url (' #{$font-path } /FiraMono-Bold.ttf' ) format (' truetype' );
40
+ font-weight : 700 ;
41
+ font-style : normal ;
41
42
}
42
43
43
44
// Media Queries Mixin (http://jakearchibald.github.com/sass-ie/)
44
- $fix-mqs : false !default ;
45
45
@mixin respond-min ($width ) {
46
- @if $fix-mqs {
47
- @if $fix-mqs >= $width {
48
- @content ;
49
- }
50
- }
51
- @else {
52
- @media screen and (min-width : $width ) {
53
- @content ;
54
- }
55
- }
46
+ @media screen and (min-width : $width ) {
47
+ @content ;
48
+ }
56
49
}
57
50
58
51
@mixin device-min ($width ) {
59
- @if $fix-mqs {
60
- @if $fix-mqs >= $width {
61
- @content ;
62
- }
63
- }
64
- @else {
65
- @media screen and (min-device-width : $width ) {
66
- @content ;
67
- }
68
- }
69
- }
70
-
71
- // OLD IE Mixin (http://jakearchibald.github.com/sass-ie/)
72
- $old-ie : false !default ;
73
- @mixin old-ie {
74
- @if $old-ie {
75
- @content ;
76
- }
52
+ @media screen and (min-device-width : $width ) {
53
+ @content ;
54
+ }
77
55
}
78
56
79
57
// Retina media query mixin
80
58
@mixin retina-display {
81
- @media only screen and
82
- (-webkit-min-device-pixel-ratio : 2 ),
83
- (min-resolution : 192dpi ) {
84
- @content ;
85
- }
59
+ @media only screen and
60
+ (-webkit-min-device-pixel-ratio : 2 ),
61
+ (min-resolution : 192dpi ) {
62
+ @content ;
63
+ }
86
64
}
87
65
88
66
// Font Family Mixins
89
67
@mixin serif {
90
- font-family : Palatino, " Palatino Linotype" , " Book Antiqua" , " Hoefler Text" , Georgia , " Lucida Bright" , Cambria, Times , " Times New Roman" , serif ;
68
+ font-family : Palatino, " Palatino Linotype" , " Book Antiqua" , " Hoefler Text" , Georgia , " Lucida Bright" , Cambria, Times , " Times New Roman" , serif ;
91
69
}
92
70
@mixin sans-serif {
93
- font-family : " Roboto" , Corbel, Avenir, " Lucida Grande" , " Lucida Sans" , sans-serif ;
71
+ font-family : " Roboto" , Corbel, Avenir, " Lucida Grande" , " Lucida Sans" , sans-serif ;
94
72
}
95
73
@mixin monospace {
96
- font-family : " Fira Mono" , Consolas, Menlo, Monaco, " Courier New" , Courier , monospace ;
97
- font-variant-ligatures : no-common-ligatures ; // disables the common ligatures only
98
- text-rendering : optimizeSpeed ; // for Safari 7.x
74
+ font-family : " Fira Mono" , Consolas, Menlo, Monaco, " Courier New" , Courier , monospace ;
75
+ font-variant-ligatures : no-common-ligatures ; // disables the common ligatures only
76
+ text-rendering : optimizeSpeed ; // for Safari 7.x
99
77
}
100
78
101
79
// Font Sizing Mixin (http://css-tricks.com/snippets/css/less-mixin-for-rem-font-sizing/)
102
80
html {
103
- font-size : 62.5% ;
81
+ font-size : 62.5% ;
104
82
}
105
83
@mixin font-size ( $size : 16 ) {
106
- font-size : $size + px;
107
- font-size : $size / 10 + rem;
84
+ font-size : $size + px;
85
+ font-size : $size / 10 + rem;
108
86
}
109
87
110
88
// Boilerplate Helper mixins (https://github.com/h5bp/html5-boilerplate/blob/v4.1.0/doc/css.md)
111
89
@mixin visuallyhidden {
112
- border : 0 ;
113
- clip : rect (0 0 0 0 );
114
- height : 1px ;
115
- margin : -1px ;
116
- overflow : hidden ;
117
- padding : 0 ;
118
- position : absolute ;
119
- width : 1px ;
90
+ border : 0 ;
91
+ clip : rect (0 0 0 0 );
92
+ height : 1px ;
93
+ margin : -1px ;
94
+ overflow : hidden ;
95
+ padding : 0 ;
96
+ position : absolute ;
97
+ width : 1px ;
120
98
}
121
99
@mixin clearfix {
122
- & :before ,
123
- & :after {
124
- content : " " ;
125
- display : table ;
126
- }
127
- & :after {
128
- clear : both ;
129
- }
130
- @include old-ie {
131
- zoom : 1 ;
132
- }
100
+ & :before ,
101
+ & :after {
102
+ content : " " ;
103
+ display : table ;
104
+ }
105
+ & :after {
106
+ clear : both ;
107
+ }
133
108
}
134
109
135
110
@mixin svg-image ( $name ) {
136
- background-image : url (' ../img/' + $name + ' .png' );
137
- .mdzr-svg & {
138
- background-image : url (' ../img/' + $name + ' .svg' );
139
- }
111
+ background-image : url (' ../img/' + $name + ' .png' );
112
+ .mdzr-svg & {
113
+ background-image : url (' ../img/' + $name + ' .svg' );
114
+ }
140
115
}
141
116
142
117
// Green Link Mixin
143
118
@mixin link-green {
144
- color : $green ;
145
- text-decoration : none ;
146
- & :visited {
147
- color : $green ;
148
- }
149
- & :hover ,
150
- & :active ,
151
- & :focus {
152
- color : lighten ($green , 6% );
153
- text-decoration : none ;
154
- }
119
+ color : $green ;
120
+ text-decoration : none ;
121
+ & :visited {
122
+ color : $green ;
123
+ }
124
+ & :hover ,
125
+ & :active ,
126
+ & :focus {
127
+ color : lighten ($green , 6% );
128
+ text-decoration : none ;
129
+ }
155
130
156
131
}
157
132
158
133
// Secondary content box-shadow:
159
134
@mixin secondary-shadow-top {
160
- -moz-box-shadow : 0 4px 8px rgba (12 ,60 ,38 ,0.07 );
161
- -webkit-box-shadow : 0 4px 8px rgba (12 ,60 ,38 ,0.07 );
162
- box-shadow : 0 4px 8px rgba (12 ,60 ,38 ,0.07 );
135
+ -moz-box-shadow : 0 4px 8px rgba (12 ,60 ,38 ,0.07 );
136
+ -webkit-box-shadow : 0 4px 8px rgba (12 ,60 ,38 ,0.07 );
137
+ box-shadow : 0 4px 8px rgba (12 ,60 ,38 ,0.07 );
163
138
}
164
139
165
140
@mixin secondary-shadow-bottom {
166
- -moz-box-shadow : 0 -4px 8px rgba (12 ,60 ,38 ,0.07 );
167
- -webkit-box-shadow : 0 -4px 8px rgba (12 ,60 ,38 ,0.07 );
168
- box-shadow : 0 -4px 8px rgba (12 ,60 ,38 ,0.07 );
141
+ -moz-box-shadow : 0 -4px 8px rgba (12 ,60 ,38 ,0.07 );
142
+ -webkit-box-shadow : 0 -4px 8px rgba (12 ,60 ,38 ,0.07 );
143
+ box-shadow : 0 -4px 8px rgba (12 ,60 ,38 ,0.07 );
169
144
}
170
145
171
146
@mixin framed-image {
172
- padding : 20px ;
173
- border : 1px solid $gray-line ;
174
- @include border-radius (4px );
175
-
147
+ padding : 20px ;
148
+ border : 1px solid $gray-line ;
149
+ border-radius : 4px ;
176
150
}
0 commit comments