-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
103 lines (84 loc) · 1.82 KB
/
style.css
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
*{
padding: 0;
margin: 0;
list-style-type: none;
font-family: 'Source Sans Pro', sans-serif;
text-decoration: none;
}
/*------Centering the content------*/
.middle{
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
}
/*------Styling the Container------*/
.wrapper{
width: 260px;
overflow: hidden;
border-radius: 5px;
}
/*------Styling the main Links------*/
.main_link_container{
display: flex;
background-color:#2ecc71; /*Main Menu Background Color*/
padding: 15px 30px;
border-bottom: 1px dotted #228B22;
cursor:pointer;
}
.icon_container{
margin-left: auto;
}
.icon_container .fas{
color:white;
font-size:14px;
}
.main_link_container p{
color:white;
font-size:18px;
}
/* ------Styling the Sub Menu------*/
.sub_menu{
background-color: #333333; /*Sub Menu Background Color*/
overflow: hidden;
transition: max-height 0.3s;
}
.sub_item_link{
display: block;
color: white;
padding: 14px 30px;
cursor: pointer;
border-bottom: 1px dotted #222222;
position: relative;
}
/* Line which appears on hover over the sub menu links*/
.sub_item_link:before{
content: "";
position: absolute;
background-color: #2ecc71;
top: 50%;
left: 3px;
transform: translateY(-50%);
height: 85%;
width: 5px;
color:white;
display: block;
opacity: 0;
}
.sub_item_link:hover:before{
opacity: 1;
}
/*------Removing the border from the last Items------*/
.last{
border-bottom: 0px !important;
}
/*------Styling the Font Awesome Icons------*/
.fas{
margin-right: 10px;
font-size: 20px;
}
/*------Class for displaying Icons to none------*/
/*This class is added and removed from the font Awesome icons using js*/
.hide_icon{
display: none !important;
}