aboutsummaryrefslogtreecommitdiffstats
path: root/english/download/toggle.css
blob: fc0657c61c72f41ba78dcff6860891b6ecdaca7b (plain) (blame)
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
input[type='checkbox'] {
  display: none;
}

.lbl-toggle {
  %display: block;
  %font-weight: bold;
  %font-family: monospace;
  %font-size: 1.2rem;
  %text-transform: uppercase;
  %text-align: center;
  padding: .5rem;
  %color: #A77B0E;
  background: #b2b5bf;
  cursor: pointer;
  border-radius: 7px;
}

.lbl-toggle:hover {
  color: #7C5A0B;
  color: #ffffff;
}

.collapsible-content {
  max-height: 0px;
  overflow: hidden;
  transition: max-height .65s ease-in;
}

.toggle:checked + .lbl-toggle + .collapsible-content {
  /* Increase the size of max-height to something more pixels than the section
     will need, the real height of the section will get used anyway. */
  max-height: 1250px;
  transition-timing-function: ease-out;
  transition: 1.25s;
  transform: translateY(0);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy