-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.css
More file actions
141 lines (123 loc) · 2.51 KB
/
sample.css
File metadata and controls
141 lines (123 loc) · 2.51 KB
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
@value medium from '../../globalStyles/breakpoints.module.css';
@value small from '../../globalStyles/breakpoints.module.css';
@value smallish from '../../globalStyles/breakpoints.module.css';
:root {
--navBarHeight: 6.5rem;
}
.header {
align-items: center;
background-image: url('../../assets/images/nav-background.svg');
background-color: var(--lightGrey);
display: flex;
justify-content: space-between;
color: var(--navy);
height: var(--navBarHeight, 6.5rem);
line-height: 8rem;
width: 100%;
z-index: 10;
}
.logoContainer {
align-self: stretch;
}
.logo {
position: relative;
top: -3px;
height: 6.5rem;
}
.spacer {
flex-grow: 1;
}
.buttonBar {
align-items: center;
justify-content: center;
display: flex;
flex-grow: 1;
}
.menu {
background-color: var(--lightGrey);
bottom: 0;
right: -2px;
list-style: none;
margin: 0;
padding: 0;
position: absolute;
transform: translateY(100%);
width: 20rem;
}
.menuItem {
box-sizing: border-box;
composes: fontBodyLarge from '../../globalStyles/Typography.module.css';
color: var(--navy);
display: block;
padding: 2rem 1rem;
text-decoration: none;
width: 100%;
}
.menuItem:hover {
background-color: var(--lightGreen);
}
.menuItem:focus {
outline: 1px solid var(--piTopGreen);
}
.iconContainer > div {
margin-left: 1rem;
}
.greeting {
composes: fontBodyLarge from '../../globalStyles/Typography.module.css';
color: inherit;
align-self: center;
}
.notifications,
.defaultDropdown,
.signUpHandler {
margin-right: 15px;
}
.buttonLink {
margin: 0 0.3rem;
text-decoration: none;
outline: none;
}
.mobileDropdown {
display: none;
}
/* breakpoint for when 4 buttons in menu */
@media medium {
.buttonBar > a:nth-last-of-type(4),
.buttonBar > a:nth-last-of-type(4) ~ a {
display: none;
}
.buttonBar > a:nth-last-of-type(4) ~ .mobileDropdown {
display: block;
}
.buttonBar > a:nth-last-of-type(4) ~ .defaultDropdown {
display: none;
}
}
/* breakpoint for when 3 buttons in menu */
@media smallish {
.buttonBar > a:nth-last-of-type(3),
.buttonBar > a:nth-last-of-type(3) ~ a {
display: none;
}
.buttonBar > a:nth-last-of-type(3) ~ .mobileDropdown {
display: block;
}
.buttonBar > a:nth-last-of-type(3) ~ .defaultDropdown {
display: none;
}
}
/* breakpoint for less than 3 buttons in menu */
@media small {
.buttonBar {
justify-content: flex-end;
}
.buttonLink {
display: none;
}
.mobileDropdown {
display: block;
}
.defaultDropdown {
display: none;
}
}