-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path_micro.scss
180 lines (137 loc) · 5.25 KB
/
_micro.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
///==========================================
/// @name guidelines.md
// /!\ still being developed
/*
* all variables will have dash as separation
* in variable lists, light and small will be at the top
*/
///==========================================
/// @name _ol.vars.scss
// /!\ still being developed
// MDL shadows
$shadow-none : inset 0 0 0 rgba(0,0,0,0), inset 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0);
$shadow-border : inset 0 0 0 rgba(10,10,10,.1), 0 0 0 0 rgba(10,10,10,.1), 0 2px 3px rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.1);
$shadow-1 : inset 0 0 0 rgba(0,0,0,0.12), inset 0 0 0 rgba(0,0,0,0.24), 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
$shadow-2 : inset 0 0 0 rgba(0,0,0,0.16), inset 0 0 0 rgba(0,0,0,0.23), 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
$shadow-3 : inset 0 0 0 rgba(0,0,0,0.19), inset 0 0 0 rgba(0,0,0,0.23), 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
$shadow-4 : inset 0 0 0 rgba(0,0,0,0.25), inset 0 0 0 rgba(0,0,0,0.22), 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
$shadow-5 : inset 0 0 0 rgba(0,0,0,0.30), inset 0 0 0 rgba(0,0,0,0.22), 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
$inset-shadow-border: inset 0 2px 3px rgba(10,10,10,.1), inset 0 0 0 1px rgba(10,10,10,.1), 0 0 0 rgba(10,10,10,.1), 0 0 0 0 rgba(10,10,10,.1);
$inset-shadow-1 : inset 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.24), 0 0 0 rgba(0,0,0,0.12), 0 0 0 rgba(0,0,0,0.24);
$inset-shadow-2 : inset 0 3px 6px rgba(0,0,0,0.16), inset 0 3px 6px rgba(0,0,0,0.23), 0 0 0 rgba(0,0,0,0.16), 0 0 0 rgba(0,0,0,0.23);
$inset-shadow-3 : inset 0 10px 20px rgba(0,0,0,0.19), inset 0 6px 6px rgba(0,0,0,0.23), 0 0 0 rgba(0,0,0,0.19), 0 0 0 rgba(0,0,0,0.23);
$inset-shadow-4 : inset 0 14px 28px rgba(0,0,0,0.25), inset 0 10px 10px rgba(0,0,0,0.22), 0 0 0 rgba(0,0,0,0.25), 0 0 0 rgba(0,0,0,0.22);
$inset-shadow-5 : inset 0 19px 38px rgba(0,0,0,0.30), inset 0 15px 12px rgba(0,0,0,0.22), 0 0 0 rgba(0,0,0,0.30), 0 0 0 rgba(0,0,0,0.22);
///==========================================
/// @name _ol.generated.scss
// /!\ still being developed
// setup vars
$primary-lightest : "";
$primary-darkest : "";
$secondary-lightest: "";
$secondary-darkest : "";
$neutral-light : "";
$neutral : "";
$neutral-dark : "";
$success-light : "";
$success : "";
$success-dark : "";
$info-light : "";
$info : "";
$info-dark : "";
$warning-light : "";
$warning : "";
$warning-dark : "";
$error-light : "";
$error : "";
$error-dark : "";
// create helper classes
// ._bg-$color
// ._text-$color
// ._button-color
// ._button-clear /!\
// ._shadow-$num
// ._inset-shadow-$num
///==========================================
/// @name _ol.nerdfont.scss
// /!\ still being developed
@font-face {
font-family: "NF icons";
src: url('@/assets/NF-Mono.ttf') format('truetype');
}
.icon i[class^="nf-"] {
all: unset;
display: inline-flex;
font-family: "NF icons";
font-style: normal;
font-weight: 400;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@include animate;
}
///==========================================
/// @name _ol.mixins.scss
// /!\ still being developed
// animate anything
@mixin animate-slow {
transition: all 0.45s ease-in-out;
}
@mixin animate {
transition: all 0.25s ease-in-out;
}
@mixin animate-fast {
transition: all 0.15s ease-in-out;
}
// breakpoints
$breakpoints: (
'small' : ('min': 1px, 'max': 600px),
'medium' : ('min': 601px, 'max': 999px),
'large' : ('min': 1200px, 'max': 9999px),
'medium-up' : ('min': 601px, 'max': 9999px),
'small-medium': ('min': 1px, 'max': 999px)
) !default;
/// Mixin to manage responsive breakpoints
/// @author Hugo Giraudel
/// @param {String} $breakpoint - Breakpoint name
/// @require $breakpoints
@mixin respond-to($breakpoint) {
// If the key exists in the map
@if map-has-key($breakpoints, $breakpoint) {
// Prints a media query based on the value
@media (min-width: map-get(map-get($breakpoints, $breakpoint), 'min')) and (max-width: map-get(map-get($breakpoints, $breakpoint), 'max')) {
@content;
}
}
// If the key doesn't exist in the map
@else {
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. "
+ "Available breakpoints are: #{map-keys($breakpoints)}.";
}
}
///==========================================
///
/// @name _ol.resets.scss
// /!\ still being developed
///==========================================
///
/// @name _ol.boilerplate.scss
// /!\ still being developed
html,
body {
margin: 0;
padding: 0;
overflow: auto;
font-size: 1rem;
line-height: 1.5rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
"Open Sans", "Helvetica Neue", sans-serif;
@media print {
font-family: serif;
}
* {
box-sizing : border-box;
}
}