This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_bulma-dashboard.sass
94 lines (72 loc) · 1.57 KB
/
_bulma-dashboard.sass
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
$dashboard-panel-width: 25rem !default
$dashboard-panel-padding: 2rem 1.5rem !default
$dashboard-panel-height: 100% !default
$dashboard-panel-header-bottom-margin: 2rem !default
$dashboard-panel-footer-top-margin: 2rem !default
$dashboard-panel-width-left: $dashboard-panel-width !default
$dashboard-panel-width-right: $dashboard-panel-width !default
=flex
display: flex
=row
+flex
flex-direction: row
=column
+flex
flex-direction: column
=fill
flex: 1
=panel($width)
flex: 0 0 $width
=x-centered
+flex
justify-content: center
.is-scrollable
overflow-y: auto
.dashboard
+row
&.is-full-height
height: 100vh
&-panel
+column
padding: $dashboard-panel-padding
flex: 0 0 $dashboard-panel-width
height: $dashboard-panel-height
&.left
+panel($dashboard-panel-width-left)
&.right
+panel($dashboard-panel-width-right)
&.has-thick-padding
padding: 3rem 2rem
&.is-one-quarter
+panel(25%)
&.is-half
+panel(50%)
&.is-one-third
+panel(percentage(1 / 3))
&.is-small
+panel(15rem)
&.is-medium
+panel(20rem)
&.is-large
+panel(30rem)
&-header, &-content, &-footer
&.is-centered
+x-centered
&-header
margin-bottom: $dashboard-panel-header-bottom-margin
&-main
+fill
&-footer
margin-top: $dashboard-panel-footer-top-margin
&-main
+flex
+fill
+column
min-height: 100vh
.navbar
&.is-fixed-top
position: -webkit-sticky
position: sticky
top: 0
.footer
+fill