Files
infomate.club/static/css/base.css
2020-01-05 17:12:11 +01:00

133 lines
2.5 KiB
CSS

/* Buttons, switches and other reusable elements */
.avatar {
background-position: 50% 50%;
background-size: cover;
border-radius: 50%;
min-height: 20px;
min-width: 20px;
box-sizing: border-box;
background-color: #bdc3c7;
}
.icon {
width: 14px;
height: 14px;
vertical-align: middle;
opacity: 0.8;
}
.button {
display: inline-block;
padding: 10px 20px;
max-width: 90%;
box-sizing: border-box;
text-decoration: none;
border-radius: 20px;
background-color: var(--opposite-bg-color);
border: solid 2px var(--opposite-bg-color);
color: var(--opposite-text-color);
text-align: center;
cursor: pointer;
}
.button:hover {
color: var(--text-color);
background-color: var(--bg-color);
}
.button-big {
padding: 15px 30px;
font-size: 160%;
font-weight: bold;
margin: 50px auto 0;
}
.theme-switcher {
display: inline-block;
height: 34px;
position: relative;
width: 60px;
}
.theme-switcher input {
display: none;
}
.theme-switcher .slider {
display: block;
background-color: #000;
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
transition: .4s;
}
.theme-switcher .slider:before {
background-color: #fff;
bottom: 4px;
content: "";
height: 26px;
left: 4px;
position: absolute;
transition: .4s;
width: 26px;
}
.theme-switcher .slider:after {
content: "🌙";
display: block;
position: absolute;
top: 12px;
right: 5px;
font-size: 13px;
line-height: 13px;
}
.theme-switcher input:checked + .slider:after {
content: "☀️";
right: auto;
left: 7px;
font-size: 16px;
}
.theme-switcher input:checked + .slider {
}
.theme-switcher input:checked + .slider:before {
transform: translateX(26px);
}
.theme-switcher .slider.round {
border-radius: 34px;
}
.theme-switcher .slider.round:before {
border-radius: 50%;
}
.blocker {
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99999;
}
@media only screen and (max-width : 570px) {
.hide-on-iphone {
display: none;
}
}
@media only screen and (max-width : 1024px) {
.hide-on-ipad {
display: none;
}
}