frontend-1

ref: master

css/header.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
header {
  background-color: #4CAF50;
  color: white;
  padding: 20px 10px;
  text-align: center;
}

header h1 {
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
  text-decoration-thickness: max(3px, .1875rem, .12em);
  text-underline-offset: .1578em;
}

#menuToggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: none !important;
}

nav ul.hidden {
  display: none;
}

nav ul.visible {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  #menuToggle {
    display: none;
  }

  nav ul {
    display: flex !important;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
  }

  nav ul.visible {
    display: flex;
    flex-direction: row;
  }
}