This commit is contained in:
Marc Beninca 2023-06-30 22:53:22 +02:00
parent 26b50778f4
commit 67c16722e3

View file

@ -259,7 +259,42 @@ text-align: center;
.card img {{
border: none;
height: 4em;
}}'''
}}
/**/
.tabs {{
display: flex;
flex-wrap: wrap;
}}
.tabs > input {{
display: none;
}}
.tabs > input:checked + label + div {{
display: block;
}}
.tabs > label {{
order: 1;
}}
.tabs > div {{
display: none;
flex-basis: 100%;
order: 2;
}}
.tabs {{
border: 1px solid;
}}
.tabs > input:checked + label {{
background-color: gray;
}}
.tabs > label {{
padding: 10px;
}}
.tabs > div {{
padding: 10px;
}}
'''
js_file = os.path.join(js, 'index.js')
js_text = f'''\
function check(tab) {{