-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathStats.scss
More file actions
executable file
·93 lines (89 loc) · 2.83 KB
/
Stats.scss
File metadata and controls
executable file
·93 lines (89 loc) · 2.83 KB
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
///
/// Punica CSS Framework
/// Module : Stats
///
@use "../../Core/Global/Getters" as *;
@use "../../Core/Global/Options" as *;
@use "../../Core/Global/Sass" as *;
@use "../../Core/Global/Mixins" as *;
@use "../../Core/Global/Colors" as color;
@use "../../Core/Theme/Getters" as *;
@use "../../Core/Theme/Setters" as *;
@if enabled('stats') {
.#{class('stats', 'name')},
a.#{class('stats', 'name')} {
display : inline-flex;
flex-direction : column;
background-color: transparent;
text-decoration : none;
margin : module('stats', 'margin');
border-width : module('stats', 'border-width');
border-color : module('stats', 'border-color');
border-style : module('stats', 'border-style');
border-radius : module('stats', 'border-radius');
padding : module('stats', 'padding');
line-height : module('stats', 'line-height');
transition : module('stats', 'transition');
>.#{class('stats', 'title')},
>.#{class('stats', 'subtitle')},
>.#{class('stats', 'value')} {
display: flex;
flex-direction: column;
}
>.#{class('stats', 'title')} {
font-size : module('stats', 'title', 'font-size');
font-family: module('stats', 'title', 'font-family');
}
>.#{class('stats', 'subtitle')} {
font-size : module('stats', 'subtitle', 'font-size');
font-family: module('stats', 'subtitle', 'font-family');
margin-top : module('stats', 'subtitle', 'margin-top');
@if theme('type') == 'light' {
color: darken(color.$grey, 20%);
} @else if theme('type') == 'dark' {
color: lighten(color.$grey, 20%);
}
}
>.#{class('stats', 'value')} {
flex-direction: row;
align-items : center;
font-weight : module('stats', 'value', 'font-weight');
font-size : module('stats', 'value', 'font-size');
font-family : module('stats', 'value', 'font-family');
line-height : module('stats', 'value', 'line-height');
>img,
>i {
font-weight : normal;
display : inline-block;
vertical-align: baseline;
font-size : module('stats', 'media', 'font-size');
margin-right : module('stats', 'media', 'margin-right');
}
}
///
/// STYLES
///
@if features('stats', 'styles') {
@each $style-name, $bg-color in module('stats', 'styles') {
@include set-style($bg-color, white, $style-name) {
border-color: $bg-color;
background : transparent;
color : inherit;
>.#{class('stats', 'value')} {
color: inherit;
>i {
color: $bg-color;
}
}
};
}
}
}
a.#{class('stats', 'name')}:hover {
@if theme('type') == 'light' {
background-color: darken(theme('color', 'background'), 4.75%);
} @else {
background-color: lighten(theme('color', 'background'), 3.25%);
}
}
}