gnu-social/public/assets/css/base.css

209 lines
3.6 KiB
CSS
Raw Normal View History

:root {
/* fonts */
--head-font: 'Montserrat', sans-serif;
--main-font: 'Open Sans', sans-serif;
/* font and margin sizes */
2020-08-15 00:37:25 +01:00
--main-size: 1.2em;
--medium-size: 0.8em;
--small-size: 0.65em;
--unit-size: 1em;
--side-margin: 2em;
2020-08-15 00:37:25 +01:00
--nav-size: 15em;
/* colours and shadows */
--fg: #eceff4;
--accent: #81a1c1;
--bg1: #2e3440;
--bg2: #3b4252;
2020-08-15 00:37:25 +01:00
--bg3: #434c5e;
--bg4: #4c566a;
--shadow: 0px 0px 40px 0px rgba(46,52,64,0.95);
}
/* DEFAULTS */
body,
html {
2020-08-15 00:37:25 +01:00
background: var(--bg4);
background-attachment: fixed;
background-size: cover;
color: var(--fg);
font-family: var(--main-font);
font-size: var(--main-size);
margin: 0;
padding: 0;
}
2020-08-15 00:37:25 +01:00
hr {
margin: 0;
color: var(--accent);
}
ul {
text-decoration: none;
margin: 0;
padding: 0;
list-style: none;
}
li {
margin: 0;
padding: 0;
}
a:link {
text-decoration: none;
outline: 0;
color: var(--fg);
}
a:visited {
outline: 0;
color: var(--fg);
margin: 0;
padding: 0;
}
a:hover {
color: var(--fg);
transition: all 0.8s ease;
}
a:focus {
color: var(--fg);
transition: all 0.8s ease;
}
b {
font-family: var(--head-font);
font-weight: 800;
}
/* HEADER */
#header {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: var(--bg1);
box-shadow: var(--shadow);
padding: var(--main-size);
height: var(--main-size);
}
2020-06-25 19:45:14 +01:00
#top {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
width: 100%;
2020-06-25 19:45:14 +01:00
}
.icon-menu {
margin: 0;
padding: 0;
display: inline-block;
width: var(--unit-size);
height: var(--unit-size);
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
}
#instance {
2020-08-15 00:37:25 +01:00
order: 2;
2020-07-19 11:44:44 +01:00
}
2020-06-25 19:45:14 +01:00
#instance b {
margin: 0;
padding: 0;
vertical-align: middle;
margin-left: calc(0.2 * var(--unit-size));
}
2020-06-25 19:45:14 +01:00
.icon-logo {
margin: 0;
padding: 0;
display: inline-block;
width: var(--unit-size);
height: var(--unit-size);
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
vertical-align: middle;
}
#left-panel {
2020-08-15 00:37:25 +01:00
order: 1;
}
/* left panel z-index fix */
.form {
position: relative;
z-index: 0;
}
#header {
z-index: 1;
2020-08-13 02:54:51 +01:00
}
/* RIGHT PANEL */
#right-panel {
order: 3;
2020-08-13 02:54:51 +01:00
}
.arrow {
border: solid var(--fg);
2020-08-13 02:54:51 +01:00
border-width: 0 3px 3px 0;
2020-08-15 00:37:25 +01:00
display: none;
2020-08-13 02:54:51 +01:00
padding: 0.3em;
}
.right {
transform: rotate(135deg);
-webkit-transform: rotate(135deg);
}
.rss {
display: flex;
flex-direction: column;
width: var(--nav-size);
height: calc(100vh - (3 * var(--unit-size)));
position: fixed;
2020-08-15 00:37:25 +01:00
background-color: var(--bg1);
2020-08-13 02:54:51 +01:00
margin-top: calc(3 * var(--main-size));
z-index: 0;
2020-08-13 02:54:51 +01:00
}
2020-08-14 02:39:54 +01:00
input.larger {
width: var(--main-size);
height: calc( 2 * var(--main-size));
2020-08-13 02:54:51 +01:00
}
/* untoggled */
.rss {
2020-08-15 00:37:25 +01:00
right: 0;
2020-08-13 02:54:51 +01:00
top: 0;
transition: 0.3s ease;
}
.arrow label {
display: block;
cursor: pointer;
2020-08-13 02:54:51 +01:00
}
#toggle-right {
position: absolute;
z-index: 2;
cursor: pointer;
opacity: 0;
}
#toggle-right:not(:checked)+.arrow {
transform: rotate(135deg);
transition: 0.3s ease;
}
/* toggled */
#toggle-right:checked~.rss {
display: flex;
right: 0;
top: 0;
transition: 0.3s ease;
}
#toggle-right:checked+.arrow {
transform: rotate(-45deg);
transition: 0.3s ease;
}