Toggle header with checkbox
This commit is contained in:
parent
b4a1f5a0a4
commit
e7bb984f45
2 changed files with 13 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="header">
|
<header class="header">
|
||||||
|
<input id="header-toggle" type="checkbox" checked/>
|
||||||
<div class="header-top container-fluid">
|
<div class="header-top container-fluid">
|
||||||
<div>
|
<div>
|
||||||
<img src="favicon.ico"/> {{title|safe}}
|
<img src="favicon.ico"/> {{title|safe}}
|
||||||
|
|
|
@ -18,6 +18,18 @@ small {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#header-toggle {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
right: 8px;
|
||||||
|
}
|
||||||
|
#header-toggle:checked ~ .header-bottom {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#header-toggle:not(:checked) ~ .header-bottom {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
background-color: #aa1e55;
|
background-color: #aa1e55;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue