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>
|
||||
<body>
|
||||
<header class="header">
|
||||
<input id="header-toggle" type="checkbox" checked/>
|
||||
<div class="header-top container-fluid">
|
||||
<div>
|
||||
<img src="favicon.ico"/> {{title|safe}}
|
||||
|
|
|
@ -18,6 +18,18 @@ small {
|
|||
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 {
|
||||
background-color: #aa1e55;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue