gnusocial.rocks/assets/css/style.css

347 lines
5.7 KiB
CSS
Raw Normal View History

2021-08-18 13:46:08 +01:00
/*
* -- RESET --
*/
* {
-webkit-box-sizing: border-box !important;
-moz-box-sizing: border-box !important;
box-sizing: border-box !important;
scroll-margin: 5rem;
}
2021-08-18 13:46:08 +01:00
a img, :link img, :visited img {
border: none;
}
:focus {
outline: none;
}
::-moz-focus-inner {
border: 0;
}
form {
all: unset;
}
/*
* -- BASE STYLES --
* Most of these are inherited from Base, but I want to change a few.
*/
2021-08-18 13:46:08 +01:00
body, html {
scroll-behavior: smooth;
2021-08-18 13:46:08 +01:00
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: grayscale;
height: 100vh;
2021-08-18 13:46:08 +01:00
font-size: 1rem;
font-family: 'open_sansregular';
2021-08-18 13:46:08 +01:00
color: #221E22;
background-color: #F6F4F6;
}
body * {
position: relative;
}
/*
2021-08-18 13:46:08 +01:00
* -- HEADER --
*/
header {
2021-08-18 13:46:08 +01:00
/* maximum z-index found */
z-index: 3;
2021-08-18 13:46:08 +01:00
position: fixed;
2021-08-18 13:46:08 +01:00
font-size: 1.25rem;
font-weight: bold;
2021-08-18 13:46:08 +01:00
background: #a22430;
max-height: 4rem;
width: 100%;
2021-08-18 13:46:08 +01:00
top: 0;
left: 0;
padding: 0.5rem 1rem 0.5rem 1rem;
2021-08-18 13:46:08 +01:00
-webkit-box-shadow: 2px 5px 16px 0px rgba(162, 36, 48, 0.4), 17px 26px 15px 0px rgba(0,0,0,0);
box-shadow: 2px 5px 16px 0px rgba(162, 36, 48, 0.4), 17px 26px 15px 0px rgba(0,0,0,0);
}
header ul {
2021-08-18 13:46:08 +01:00
list-style: none;
}
header * {
2021-08-18 13:46:08 +01:00
font-size: inherit;
color: #F6F4F6;
2021-08-18 13:46:08 +01:00
height: 100vh;
max-height: 3rem;
display: flex;
align-items: center;
}
2021-08-18 13:46:08 +01:00
.home-menu {
display: flex;
justify-content: space-between;
}
2021-08-18 13:46:08 +01:00
.menu-heading {
display: flex;
color: #F6F4F6;
}
2021-08-18 13:46:08 +01:00
.menu-heading b {
2021-03-31 14:01:44 +01:00
}
2021-08-18 13:46:08 +01:00
.menu-heading img {
height: 1.25rem;
}
2021-08-18 13:46:08 +01:00
.menu-link {
line-height: 1.4em;
2021-08-18 13:46:08 +01:00
margin-left: 1rem;
color: #F6F4F6;
}
.button {
background-color: #221E22EE;
border-radius: 0.5rem;
padding: 4px 8px;
color: #F6F4F6;
align-self: flex-end;
width: max-content;
}
hr {
margin-bottom: 1rem;
width: 100%;
color: #221E2266;
}
#log-of-past-successes {
display: flex;
flex-direction: column;
2021-08-18 13:46:08 +01:00
}
@media screen and (min-width: 2000px) and (min-height: 1000px) {
.content,
.content-team {
padding-left: 20% !important;
padding-right: 20% !important;
}
}
@media screen and (min-width: 800px) {
.l-box {
margin-right: 4rem;
}
}
@media screen and (max-width: 800px) {
2021-08-18 19:42:57 +01:00
.menu-list {
font-size: 1rem !important;
}
.content,
.content ~ * {
top: unset !important;
padding-top: 0 !important;
position: relative !important;
}
.soc {
top: 3rem !important;
height: calc(100vh - 4rem);
}
2021-08-18 19:42:57 +01:00
.splash-head {
2021-09-11 18:24:40 +01:00
font-size: 2rem !important;
2021-08-18 19:42:57 +01:00
}
.splash-head img {
height: 3rem !important;
width: 3rem !important;
}
.content,
.ribbon-wrapper,
.content-team {
2021-09-11 18:24:40 +01:00
padding: 1.5rem !important;
}
.content-team .g .l-box-lrg:last-child {
flex: 1 !important;
word-break: keep-all;
white-space: nowrap;
}
.l-box {
margin-right: 1rem;
}
footer {
position: relative !important;
}
2021-08-18 19:42:57 +01:00
}
/*
2021-08-18 13:46:08 +01:00
* -- BODY --
*/
2021-08-18 13:46:08 +01:00
.body-wrapper {
margin-top: 4rem;
2021-08-18 13:46:08 +01:00
}
.body-wrapper a {
font-family: 'open_sansbold';
2021-08-18 13:46:08 +01:00
font-weight: bold;
}
2021-08-18 13:46:08 +01:00
/*
* -- SPLASH --
*/
.splash {
text-align: center;
2021-08-18 13:46:08 +01:00
padding: 3rem;
background-color: #F6F4F6;
}
2021-08-18 13:46:08 +01:00
.splash-head {
display: inline-flex;
flex-wrap: wrap;
width: border-box;
2021-08-18 13:46:08 +01:00
justify-content: center;
align-items: center;
font-size: 6rem;
color: #a22430;
cursor: default;
margin-bottom: 1rem;
}
2021-08-18 13:46:08 +01:00
.splash-head img {
height: 6rem;
width: 6rem;
margin-right: 5px;
}
/*
2021-08-18 13:46:08 +01:00
* -- CONTENT --
*/
.content-head {
font-family: 'open_sansbold', sans-serif;
}
2021-08-18 13:46:08 +01:00
.content {
z-index: 2;
2021-08-18 13:46:08 +01:00
position: sticky;
padding: 4rem;
2021-08-18 13:46:08 +01:00
background-color: #e9eaed;
}
2021-08-18 13:46:08 +01:00
.is-center {
text-align: center;
}
2021-08-18 13:46:08 +01:00
.content .g {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
2021-08-18 13:46:08 +01:00
.content .g .l-box {
flex: 1;
min-width: 10rem;
2021-08-18 13:46:08 +01:00
}
.content ~ * {
2021-08-18 13:46:08 +01:00
z-index: 3;
position: sticky;
top: 4rem;
}
2021-08-18 13:46:08 +01:00
.ribbon-wrapper {
background-color: #F6F4F6;
padding: 4rem;
2021-08-18 13:46:08 +01:00
}
.ribbon {
2021-08-18 13:46:08 +01:00
display: flex;
flex-wrap: wrap;
2021-08-18 13:46:08 +01:00
justify-content: center;
align-items: center;
}
2021-08-18 13:46:08 +01:00
.ribbon img {
min-width: 15rem;
2021-08-18 13:46:08 +01:00
max-height: 200px;
margin: 0 2rem 2rem 2rem;
2021-08-18 13:46:08 +01:00
}
.ribbon-content h2 {
margin-top: unset;
}
.ribbon-content a {
background-color: #a22430;
color: #F6F4F6;
padding: 4px 12px;
border-radius: 0.5rem;
}
2021-08-18 13:46:08 +01:00
.content-team {
z-index: 3;
position: sticky;
top: 4rem;
padding: 4rem;
2021-08-18 13:46:08 +01:00
background-color: #e9eaed;
}
.content-team .g {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
2021-08-18 13:46:08 +01:00
.content-team .g .l-box-lrg {
text-align: justify-all;
padding-inline-end: 2rem;
}
.content-team .g .l-box-lrg:first-child {
flex: 1;
min-width: 20rem;
}
.content-team .g .l-box-lrg:nth-child(2) {
flex: 1;
}
.content-team .g .l-box-lrg:last-child {
flex: 0.5;
}
#nodes {
display: flex;
flex-direction: column;
border-collapse: collapse;
2021-09-11 17:29:39 +01:00
padding-bottom: 1rem;
margin-left: auto;
margin-right: auto;
max-width: max-content;
width: 100%;
}
#nodes td, #nodes th {
width: 100%;
border: 1px solid #ddd;
padding: 6px 12px;
}
#nodes tr:nth-child(even){background-color: #F6F4F6;}
#nodes tr:nth-child(odd){background-color: #EEEEEE;}
#nodes tr:hover {background-color: #e9eaed;}
#nodes th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #A22430;
2021-09-11 17:29:39 +01:00
color: #F6F4F6;
}
.footer {
width: 100%;
2021-08-18 13:46:08 +01:00
padding: 1rem;
background-color: #333333;
color: #e9eaed;
}
2021-08-18 13:46:08 +01:00
.footer a {
font-family: 'open_sansbold';
2021-08-18 13:46:08 +01:00
font-weight: bold;
color: #e9eaed;
2021-08-19 02:44:23 +01:00
}