1
0
Fork 0
codeberg-forgejo/web_src/css/homepage.css

529 lines
14 KiB
CSS

:root {
--fonts-override: "Inter";
}
div.full.height {
background-color: #FFF;
}
@media (prefers-color-scheme: dark) {
div.full.height {
background-color: #030C12;
}
}
main {
font-size: 16px;
}
@media screen and (max-width: 991px) {
main {
margin-right: 2em;
margin-left: 2em;
}
}
main a.button {
color: #144B49;
background-color: #FFEA69;
font-weight: 700;
font-size: 1.35em;
border: none;
padding: 1em 1.5em;
text-decoration: none;
-webkit-border-radius: 0.3rem;
-moz-border-radius: 0.3rem;
border-radius: 0.3rem;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
-webkit-transition: background-color .1s ease-in-out, box-shadow .1s ease-in-out, text-shadow .1s ease-in-out;
-moz-transition: background-color .1s ease-in-out, box-shadow .1s ease-in-out, text-shadow .1s ease-in-out;
-ms-transition: background-color .1s ease-in-out, box-shadow .1s ease-in-out, text-shadow .1s ease-in-out;
-o-transition: background-color .1s ease-in-out, box-shadow .1s ease-in-out, text-shadow .1s ease-in-out;
text-align: center;
text-shadow: -1px -2px 0 #FFF198;
}
main a.button svg {
-webkit-transition: filter .1s ease-in-out;
-moz-transition: filter .1s ease-in-out;
-ms-transition: filter .1s ease-in-out;
-o-transition: filter .1s ease-in-out;
-webkit-filter: drop-shadow(-1px -2px 0 #FFF198);
filter: drop-shadow(-1px -2px 0 #FFF198);
}
main a.button:hover,
main a.button:focus {
background-color: #FFF198;
-webkit-box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.4);
-moz-box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.4);
box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.4);
text-shadow: -1px -2px 0 #FFEA69;
}
main a.button:hover svg,
main a.button:focus svg {
-webkit-filter: drop-shadow(-1px -2px 0 #FFEA69);
filter: drop-shadow(-1px -2px 0 #FFEA69);
}
main a.button > *:first-child {
padding-right: 0.5em;
}
main header {
color: #144B49;
position: relative;
z-index: 1;
background-repeat: no-repeat;
background-position: center bottom;
background-color: #FFF;
}
@media (prefers-color-scheme: dark) {
main header {
color: #FFF;
background-color: #030C12;
}
}
@media screen and (max-width: 991px) {
main header {
background-image: none !important;
}
}
main header .header-row {
max-width: 950px;
display: -webkit-flex;
display: flex;
padding-top: 4em;
padding-bottom: 16em;
margin-left: auto;
margin-right: auto;
}
@media screen and (max-width: 991px) {
main header .header-row {
-webkit-flex-direction: column-reverse;
flex-direction: column-reverse;
padding-top: 4em;
padding-bottom: 4em;
}
}
main header .header-title {
font-weight: 500;
flex: 2 1 0;
margin-top: 2em;
margin-bottom: 2em;
position: relative;
z-index: 2;
}
main header .header-title h2 {
font-weight: 800;
font-size: 2em;
}
main header .header-title > div {
margin-left: 2em;
}
@media screen and (max-width: 991px) {
main header .header-title > div {
margin: 0;
}
}
main header .header-title > div > p {
font-size: 1.125em;
}
main header .header-title > div > p a {
text-decoration: underline;
color: inherit;
}
main header .header-title > div > p a:hover,
main header .header-title > div > p a:focus {
color: #73CCC6;
}
main header .header-social-links {
display: -webkit-flex;
display: flex;
font-weight: 800;
}
@media screen and (max-width: 991px) {
main header .header-social-links {
font-size: 1.3em;
}
}
main header .header-social-links a {
color: #4B9590;
align-self: center;
text-decoration: none;
position: relative;
margin-right: 1em;
}
@media (prefers-color-scheme: dark) {
main header .header-social-links a {
color: #235f5c;
}
}
main header .header-social-links a:focus {
outline: none;
}
main header .header-social-links a:hover,
main header .header-social-links a:focus {
color: #144B49;
}
@media (prefers-color-scheme: dark) {
main header .header-social-links a:hover,
main header .header-social-links a:focus {
color: #73CCC6;
}
}
main header .header-social-links a > * {
float: left;
line-height: 1.5em;
height: 1.5em;
}
main header .header-logo {
flex: 1 1 0;
position: relative;
margin-top: 2em;
}
@media screen and (max-width: 991px) {
main header .header-logo {
text-align: center;
height: 200px;
margin-top: 0;
}
}
main header .header-logo img.codeberg-logo {
height: 100%;
}
@media screen and (min-width: 992px) {
main header .header-logo img.codeberg-logo {
position: absolute;
z-index: 1;
}
}
main header .header-logo img.codeberg-logo.light {
display: inline;
}
@media (prefers-color-scheme: dark) {
main header .header-logo img.codeberg-logo.light {
display: none;
}
}
main header .header-logo img.codeberg-logo.dark {
display: none;
}
@media (prefers-color-scheme: dark) {
main header .header-logo img.codeberg-logo.dark {
display: inline;
}
}
main header .header-logo svg {
position: absolute;
z-index: 0;
height: 150%;
left: -13%;
top: -20%;
-webkit-filter: blur(25px);
filter: blur(25px);
color: #FFF;
}
@media (prefers-color-scheme: dark) {
main header .header-logo svg {
color: #030C12;
}
}
@media screen and (max-width: 991px) {
main header .header-logo svg {
display: none;
}
}
main section#home-section-about {
position: relative;
color: #FFF;
}
main section#home-section-about .home-section-about-box-container {
position: relative;
background-repeat: no-repeat;
background-position: center;
background-color: #2185D0;
}
@media (prefers-color-scheme: dark) {
main section#home-section-about .home-section-about-box-container {
background-color: #030C12;
}
}
@media screen and (max-width: 991px) {
main section#home-section-about .home-section-about-box-container {
background-image: none !important;
background-color: unset;
}
}
main section#home-section-about .home-section-about-box-container .home-section-about-box {
top: -7em;
max-width: 950px;
position: relative;
z-index: 2;
display: -webkit-flex;
display: flex;
padding: 2.5em 2em 2em;
margin-left: auto;
margin-right: auto;
background-color: #144B49B2;
background: -webkit-gradient(linear, left top, left bottom, from(#144B49B2), to(#144B49));
background: -webkit-linear-gradient(top, #144B49B2 40%, #144B49);
background: -moz-linear-gradient(top, #144B49B2 40%, #144B49);
background: -ms-linear-gradient(top, #144B49B2 40%, #144B49);
background: -o-linear-gradient(top, #144B49B2 40%, #144B49);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
}
@media screen and (max-width: 991px) {
main section#home-section-about .home-section-about-box-container .home-section-about-box {
top: 0;
}
}
@media screen and (max-width: 739px) {
main section#home-section-about .home-section-about-box-container .home-section-about-box {
-webkit-flex-direction: column;
flex-direction: column;
}
}
main section#home-section-about .home-section-about-box-container .home-section-about-box div {
flex: 1 1 0;
margin-left: 2em;
}
@media screen and (max-width: 739px) {
main section#home-section-about .home-section-about-box-container .home-section-about-box div {
margin-left: 0;
margin-top: 2em;
}
}
main section#home-section-about .home-section-about-box-container .home-section-about-box div:first-child {
margin: 0;
}
main section#home-section-about .home-section-about-box-container .home-section-about-box div h3 {
text-shadow: 1px 2px 0 #144B49;
font-weight: 900;
font-size: 1.75em;
margin-top: 0.25em;
}
@media (prefers-color-scheme: dark) {
main section#home-section-about .home-section-about-box-container .home-section-about-box div h3 {
text-shadow: 1px 2px 0 #0e2f2e;
}
}
main section#home-section-about .home-section-about-box-container .home-section-about-box div p {
font-size: 1.125em;
}
main section#home-section-about .home-section-about-box-container .home-section-about-box div.home-section-about-register-button-container {
position: absolute;
top: -3em;
left: -2em;
right: -2em;
display: -webkit-flex;
display: flex;
justify-content: left;
margin: 0;
}
@media screen and (max-width: 1200px) {
main section#home-section-about .home-section-about-box-container .home-section-about-box div.home-section-about-register-button-container {
justify-content: center;
}
}
main section#home-section-about .home-section-about-box-container .home-section-about-box div.home-section-about-register-button-container a {
-webkit-box-shadow: 0.5em 0.5em 0.5em 0 rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0.5em 0.5em 0.5em 0 rgba(0, 0, 0, 0.4);
box-shadow: 0.5em 0.5em 0.5em 0 rgba(0, 0, 0, 0.4);
padding: 0.9em;
font-size: 1.75em;
}
main section#home-section-about .home-section-about-box-container .home-section-about-box div.home-section-about-register-button-container a:hover,
main section#home-section-about .home-section-about-box-container .home-section-about-box div.home-section-about-register-button-container a:focus {
-webkit-box-shadow: 0.7em 0.7em 0.7em 0 rgba(0, 0, 0, 0.6);
-moz-box-shadow: 0.7em 0.7em 0.7em 0 rgba(0, 0, 0, 0.6);
box-shadow: 0.7em 0.7em 0.7em 0 rgba(0, 0, 0, 0.6);
}
main section#home-section-about .home-section-about-container {
max-width: 950px;
position: relative;
top: -1.75em;
z-index: 2;
display: -webkit-flex;
display: flex;
margin-right: auto;
margin-left: auto;
padding-left: 4em;
padding-right: 4em;
gap: 0.5em;
justify-content: space-between;
}
@media screen and (max-width: 991px) {
main section#home-section-about .home-section-about-container {
top: 0;
}
}
@media screen and (max-width: 739px) {
main section#home-section-about .home-section-about-container {
display: grid;
grid-template: repeat(2, 1fr) / repeat(2, 1fr);
margin-top: 1em;
}
}
@media screen and (max-width: 420px) {
main section#home-section-about .home-section-about-container {
padding-left: 0;
padding-right: 0;
}
}
main section#home-section-about .home-section-about-container div {
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
color: #2185D0;
}
@media (prefers-color-scheme: dark) {
main section#home-section-about .home-section-about-container div {
color: #2B6A67;
}
}
@media screen and (max-width: 991px) {
main section#home-section-about .home-section-about-container div {
margin-top: 1em;
}
}
main section#home-section-about .home-section-about-container div h4 {
flex: 1 1 0;
font-size: 1.2em;
font-weight: 800;
line-height: 1;
margin-bottom: 0;
white-space: nowrap;
}
@media screen and (min-width: 992px) {
main section#home-section-about .home-section-about-container div h4 {
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
color: #FFF;
margin-bottom: 0.5em;
}
}
@media screen and (min-width: 992px) and (prefers-color-scheme: dark) {
main section#home-section-about .home-section-about-container div h4 {
color: inherit;
}
}
main section#home-section-about .home-section-about-container div p {
flex: 1 1 0;
font-size: 3em;
font-weight: 300;
margin: 0.1em 0 0;
line-height: 1;
}
main section#home-section-about .home-section-about-container div p.powered-by-forgejo,
main section#home-section-about .home-section-about-container div p.powered-by-forgejo svg {
height: 1em;
}
main section#home-section-about .home-section-about-container div p.powered-by-forgejo a {
color: inherit;
}
main section#home-section-support {
display: -webkit-flex;
display: flex;
max-width: 950px;
-webkit-flex-direction: column;
flex-direction: column;
background-color: #FFF;
margin-right: auto;
margin-left: auto;
color: #2185D0;
margin-top: 4em;
}
@media (prefers-color-scheme: dark) {
main section#home-section-support {
color: #FFF;
background-color: #030C12;
}
}
@media screen and (min-width: 992px) {
main section#home-section-support {
padding-left: 4em;
padding-right: 4em;
}
}
main section#home-section-support h3 {
font-size: 2em;
font-weight: 800;
margin-top: 0;
margin-bottom: 1.5em;
}
@media screen and (min-width: 740px) {
main section#home-section-support h3 {
text-align: center;
}
}
main section#home-section-support h3 img {
margin-left: 0.1em;
}
main section#home-section-support div {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2em;
}
@media screen and (min-width: 740px) and (max-width: 991px) {
main section#home-section-support div {
grid-template-columns: 2fr 3fr;
}
}
@media screen and (max-width: 739px) {
main section#home-section-support div {
grid-template-columns: 1fr;
grid-template-rows: repeat(2, auto);
gap: 1em;
}
}
main section#home-section-support div a {
place-self: center right;
}
@media screen and (max-width: 739px) {
main section#home-section-support div a {
justify-self: left;
}
}
@media screen and (min-width: 740px) {
main section#home-section-support div a {
white-space: nowrap;
}
}
main section#home-section-support div a svg {
height: 1em;
float: left;
}
main section#home-section-support div p {
text-align: left;
font-size: 1.125em;
}
main section#home-section-support hr {
color: #B5DDFF;
margin-left: 2em;
margin-bottom: 2em;
border-style: solid;
width: 40%;
}
@media (prefers-color-scheme: dark) {
main section#home-section-support hr {
color: #144B49;
}
}
@media screen and (min-width: 740px) and (max-width: 991px) {
main section#home-section-support hr {
width: 60%;
}
}
@media screen and (max-width: 739px) {
main section#home-section-support hr {
width: 80%;
margin-left: 0;
}
}