-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.sass
101 lines (95 loc) · 1.9 KB
/
style.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
95
96
97
98
99
100
$font-pack : 'Bungee', cursive
$color-blue : rgb(0, 176, 255)
$color-green : rgb(118, 255, 3)
$color-red : rgb(183, 28, 28)
$color-yellow : rgb(255, 215, 64)
html,body
height: 100%
width: 100%
body
background: white
margin: 0
padding: 0
*
box-sizing: border-box
.navbar-container
color: white
&>ul
background: black
padding: 0 20px 0 20px
position: relative
z-index: 2
list-style: none
margin: 0
&>li
text-align: center
background: black
margin: 0
padding: 20px
display: inline-block
width: auto
color: white
position: relative
font-family: $font-pack
height: 110%
p
margin: 0
position: relative
z-index: 2
top: 0
transition: top 0.2s ease-in
span
position: absolute
left: 50%
transform: translate(-50%,0)
top: -140%
transition: top 0.2s ease-in
&:before
box-sizing: border-box
padding: 20px
position: absolute
background: $color-yellow
content: ""
top: -130%
left: 0
height: 120%
z-index: 0
width: 100%
transition: top 0.2s ease-in
&:hover:before
top: 0
&:hover p
top: 20px
color: black
&:hover span
top: 10px
color: black
.sub_menu
position: absolute
display: flex
left: 0
margin-top: 20px
background: black
z-index: -2
bottom: 100%
min-width: 100%
transition: bottom 0.3s ease-in
&>ul
padding: 20px
list-style: none
flex: 0 1 auto
width: auto
&>li
white-space: nowrap
// no wrap very important property , to stop line breaks
text-align: center
.divider
width: 2px
position: relative
&>div
width: 100%
height: 80%
position: absolute
top: 50%
transform: translate(0,-50%)
background: $color-yellow