32bit.cafe/themes/32bitcafe-base/assets/css/main.css

203 lines
2.6 KiB
CSS

* {
box-sizing: border-box;
}
body {
margin: 0;
}
.header {
padding: 10px;
width: 12%;
white-space: nowrap;
vertical-align: middle;
}
.topnav {
overflow: hidden;
display: flex;
width: 80%;
}
.topnav a {
float: left;
display: block;
}
.topnav a:hover {
background-color: #fff;
color: black;
}
/** added by yequari **/
nav ul {
list-style: none;
margin: 0;
}
nav li {
display: inline-block;
margin: 0;
}
.panel {
height: 0px;
overflow: hidden;
}
.panel.visible {
height: auto;
}
.column {
float: left;
}
.sidebar {
padding: 10px;
}
.sidebar ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.sidebar li {
display: block;
padding: 5px;
}
.main {
padding: 10px;
}
.row {
display: flex;
flex-wrap: wrap;
}
.row:after {
content: "";
display: table;
clear: both;
}
.footer {
background-color: #F1F1F1;
text-align: center;
padding: 10px;
width: 100%;
}
.footer-text {
font-size: 0.8rem;
}
@media screen and (max-width: 699px) {
.column.sidebar, .column.main {
width: 100%;
}
.header, .topnav {
width: 100%;
}
.topnav {
flex-direction: column;
padding: 5px;
}
.topnav a {
display: block;
padding: 5px;
}
.header h1 {
float: left;
}
.header button {
float: right;
}
.footer {
width: 100%;
}
}
@media screen and (min-width: 700px) and (max-width: 950px) {
.container {
padding: 5px;
}
.column.sidebar, .column.main {
width: 100%;
}
.header, .topnav {
width: 100%;
}
.column.main {
width: 75%;
}
.topnav {
flex-direction: column;
padding: 5px;
}
.topnav a {
display: block;
padding: 5px;
}
.header h1 {
float: left;
}
.header button {
float: right;
}
}
@media screen and (min-width: 950px) {
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 75vw;
}
.column.sidebar {
width: 15vw;
}
.column.main {
width: 56.5vw;
overflow-y: auto;
overflow-x: hidden;
max-height: 65vh;
}
.header {
width: 15vw;
height: 10vh;
}
.header h1 {
font-size: 1.5vw;
position: relative;
top: 1.5vh;
max-height: 10vh;
}
.topnav {
overflow-x: auto;
overflow-y: hidden;
}
.topnav a {
position: relative;
top: 3vh;
color: #000;
border: 2px solid #000;
border-radius: 20px;
text-align: center;
padding: 14px 16px;
text-decoration: none;
margin: 5px;
background-color: #F1F1F1;
font-size: 1.1vw;
}
.mobile-only {
display: none;
}
.footer {
width: /*71.5vw;*/100%;
}
}
.rev { unicode-bidi: bidi-override; direction: rtl; }
.obem { position: absolute; display:inline-block; z-index: -1; width: 0px; height: 0px; overflow: hidden; };