-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
210 lines (178 loc) · 4.34 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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/*
Theme Name: Learnegy
Author: Mamurjor IT
Author URI: https://mamurjor.com
Description: Learnegy is developed to make beautiful lms website for training institute, school, college, universities and it's standing for any kind of websites. It's perfect to manage a institute. It offers a fully responsive layout to be displayed on every kind of device.
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments
Version: 1.5.2
Requires at least: 5.8
Tested up to: 5.9
Requires PHP: 7.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learnegy
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
/* Primary Menu ---------------------------- */
.primary-menu-wrapper {
display: none;
}
ul.primary-menu {
display: flex;
font-size: 1.8rem;
font-weight: 500;
letter-spacing: -0.0277em;
flex-wrap: wrap;
justify-content: flex-end;
margin: -0.8rem 0 0 -1.6rem;
}
.primary-menu .icon {
display: block;
height: 0.7rem;
position: absolute;
pointer-events: none;
transform: rotate(-45deg);
width: 1.3rem;
}
.primary-menu .icon::before,
.primary-menu .icon::after {
content: "";
display: block;
background-color: currentColor;
position: absolute;
bottom: calc(50% - 0.1rem);
left: 0;
}
.primary-menu .icon::before {
height: 0.9rem;
width: 0.2rem;
}
.primary-menu .icon::after {
height: 0.2rem;
width: 0.9rem;
}
.primary-menu li {
font-size: inherit;
line-height: 1.25;
position: relative;
}
.primary-menu > li {
margin: 0.8rem 0 0 1.6rem;
}
.primary-menu > li.menu-item-has-children > a {
padding-right: 2rem;
}
.primary-menu > li > .icon {
right: -0.5rem;
top: calc(50% - 0.4rem);
}
.primary-menu a {
color: inherit;
display: block;
line-height: 1.2;
text-decoration: none;
word-break: normal;
word-wrap: normal;
}
.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current_page_ancestor {
text-decoration: underline;
}
.primary-menu li.current-menu-item > a,
.primary-menu li.current-menu-item > .link-icon-wrapper > a {
text-decoration: underline;
}
.primary-menu li.current-menu-item > a:hover,
.primary-menu li.current-menu-item > .link-icon-wrapper > a:hover,
.primary-menu li.current-menu-item > a:focus,
.primary-menu li.current-menu-item > .link-icon-wrapper > a:focus {
text-decoration: none;
}
/* SUB MENU */
.primary-menu ul {
background: #000;
border-radius: 0.4rem;
color: #fff;
font-size: 1.7rem;
opacity: 0;
padding: 1rem 0;
position: absolute;
right: 9999rem;
top: calc(100% + 2rem);
transition: opacity 0.15s linear, transform 0.15s linear, right 0s 0.15s;
transform: translateY(0.6rem);
width: 20rem;
z-index: 1;
}
.primary-menu li.menu-item-has-children:hover > ul,
.primary-menu li.menu-item-has-children:focus > ul,
.primary-menu li.menu-item-has-children.focus > ul {
right: 0;
opacity: 1;
transform: translateY(0);
transition: opacity 0.15s linear, transform 0.15s linear;
}
.primary-menu ul::before,
.primary-menu ul::after {
content: "";
display: block;
position: absolute;
bottom: 100%;
}
.primary-menu ul::before {
height: 2rem;
left: 0;
right: 0;
}
.primary-menu ul::after {
border: 0.8rem solid transparent;
border-bottom-color: #000;
right: 1.8rem;
}
.primary-menu ul a {
background: transparent;
border: none;
color: inherit;
display: block;
padding: 1rem 2rem;
transition: background-color 0.15s linear;
width: 100%;
}
.primary-menu ul li.menu-item-has-children > a {
padding-right: 4.5rem;
}
.primary-menu ul li.menu-item-has-children .icon {
position: absolute;
right: 1.5rem;
top: calc(50% - 0.5rem);
}
/* DEEP DOWN */
.primary-menu ul ul {
top: -1rem;
}
.primary-menu ul li.menu-item-has-children:hover > ul,
.primary-menu ul li.menu-item-has-children:focus > ul,
.primary-menu ul li.menu-item-has-children.focus > ul {
right: calc(100% + 2rem);
}
.primary-menu ul ul::before {
bottom: 0;
height: auto;
left: auto;
right: -2rem;
top: 0;
width: 2rem;
}
.primary-menu ul ul::after {
border-bottom-color: transparent;
/*rtl:ignore*/
border-left-color: #000;
bottom: auto;
right: -1.6rem;
top: 2rem;
}
.rtl .primary-menu ul ul::after {
transform: rotate(180deg);
}