-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnavigations.css
105 lines (86 loc) · 1.77 KB
/
navigations.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
/**
* COMPONENTS / NAVIGATION
*
* INDEX:
* - navigation
* - navigation-top-primary
* - navigation-top-secondary
*
*/
.navigation
{
width: var(--box-size);
height: 100vh;
@apply flex flex-col fixed bg-dark border-dark border-r border-solid text-white justify-between z-50;
}
.navigation__item
{
box-sizing: border-box;
min-width: 0;
height: 100%;
padding: 11px;
@apply w-full h-full text-white relative flex text-center items-center justify-center cursor-pointer opacity-80;
}
.navigation__item--active,
.navigation__item:hover
{
@apply bg-dark-muted opacity-100;
}
.navigation__item--logo
{
width: calc(var(--box-size) -1);
height: var(--box-size);
@apply font-bold text-center;
}
.navigation__item--logo-wrapper:hover > .navigation__item--logo:first-of-type
{
@apply hidden;
}
.navigation__item--logo-wrapper:hover > .navigation__item--logo:last-of-type
{
@apply block;
}
.navigation-top-primary
{
@apply bg-dark text-white;
}
.navigation-top-primary:after
{
display: table;
clear: both;
content: '';
}
.navigation-top-primary__item
{
padding: 11.5px 20px;
@apply table-cell text-white opacity-80;
}
.navigation-top-primary__item--active,
.navigation-top-primary__item:hover
{
@apply bg-dark-muted opacity-100;
}
.navigation-top-secondary
{
min-height: var(--box-size);
padding: 11.5px 20px;
@apply flex bg-dark-muted text-white border-black border-b border-solid;
}
.navigation-top-secondary a
{
@apply text-white;
}
.navigation-top-secondary__item
{
@apply ml-2 opacity-90;
}
.navigation-top-secondary__item--active,
.navigation-top-secondary__item:hover
{
@apply opacity-100;
}
.navigation-top-secondary__icon
{
width: 24px;
@apply text-center inline-block;
}