4
0
mirror of https://git.coop/cotech/website.git synced 2025-06-26 08:30:47 +00:00
Files
cotech-website/assets/css/app.css
2025-06-25 21:34:58 +01:00

352 lines
5.8 KiB
CSS

@font-face {
font-family: 'open_sansregular';
src: url("/assets/fonts/OpenSans-Regular-webfont.woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'open_sansbold';
src: url("/assets/fonts/OpenSans-Bold-webfont.woff");
font-weight: normal;
font-style: normal;
}
:root {
--space-unit: 1em;
--space-xxs: calc(0.25 * var(--space-unit));
--space-xs: calc(0.5 * var(--space-unit));
--space-sm: calc(0.75 * var(--space-unit));
--space-md: calc(1.25 * var(--space-unit));
--space-lg: calc(2 * var(--space-unit));
--space-xl: calc(3.25 * var(--space-unit));
--space-xxl: calc(5.25 * var(--space-unit));
--cotech-white: white;
--cotech-light-grey: #f7f7f5;
--cotech-grey: #7b8290;
--cotech-dark-grey: #1e2637;
--cotech-light-blue: #7b8290;
--cotech-blue: #38aad5;
--cotech-dark-blue: #212a3d;
--cotech-darker-blue: #1e2637;
}
p, li, a {
font-family: "open_sansregular", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
color: var(--cotech-dark-grey);
}
h1, h2, h3, h4, h5, h6 {
font-family: "open_sansbold", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}
.default-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-lg);
margin-bottom: var(--space-lg);
}
.page-heading {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
padding: var(--space-md);
text-align: center;
}
.page-heading h1 {
font-size: 2.5rem;
}
.page-heading p {
max-width: 60ch;
}
section.content {
padding: var(--space-sm);
max-width: 900px;
}
section.content p {
font-size: 1rem;
line-height: 1.6rem;
margin-bottom: 1rem;
}
section.content ul {
font-size: 1rem;
line-height: 1.6rem;
margin-bottom: 1rem;
}
section.content h2 {
font-size: 1.5rem;
line-height: 1.6rem;
margin-bottom: 1rem;
}
@media screen and (width >= 480px) {
section.content {
padding: var(--space-xl);
}
}
.header {
display: flex;
padding: var(--space-md);
align-items: center;
justify-content: space-between;
}
.header a {
text-decoration: none;
}
.header a:hover {
text-decoration: underline;
color: var(--cotech-blue);
}
.header_logo-link {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.header_menu-list {
list-style-type: none;
display: flex;
gap: var(--space-sm);
font-size: 1rem;
letter-spacing: 0.05em;
}
.hero {
width: 100%;
padding: var(--space-lg) var(--space-sm);
background-image: url(/assets/img/banner-collage.jpg);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
display: flex;
flex-direction: column;
gap: var(--space-md);
align-items: center;
text-align: center;
}
@media screen and (width >= 480px) {
.hero {
padding: var(--space-xxl);
}
}
.hero_body {
font-size: 1.5em;
font-weight: bold;
line-height: 1.6;
color: var(--cotech-white);
max-width: 50ch;
}
.hero_title {
display: none;
}
.hero_button {
cursor: pointer;
padding: var(--space-sm);
border: 1px solid var(--cotech-white);
border-radius: 4px;
}
.hero_button a {
color: var(--cotech-white);
}
.slice {
width: 100%;
padding: var(--space-sm);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
text-align: center;
}
@media screen and (width >= 480px) {
.slice {
padding: var(--space-lg);
}
}
.slice--light-grey {
background-color: var(--cotech-light-grey);
}
.slice--dark {
background-color: var(--cotech-dark-blue);
}
.slice--darker {
background-color: var(--cotech-darker-blue);
}
.slice--blue {
background-color: var(--cotech-blue);
}
.slice_title {
font-family: "open_sansbold", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
font-size: 2.5rem;
}
.slice--blue .slice_title {
color: var(--cotech-white);
}
.slice p {
max-width: 70ch;
}
.slice--blue p {
color: var(--cotech-white);
}
.slice--dark p {
color: var(--cotech-white);
}
.slice--dark a {
color: var(--cotech-white);
}
.slice--darker p {
color: var(--cotech-light-blue);
}
.slice--darker a {
color: var(--cotech-light-blue);
}
.slice_logo {
max-width: 200px;
}
.metadata {
display: none;
}
@media screen and (width >= 480px) {
.metadata {
display: flex;
gap: var(--space-xl);
}
}
.metadata_item {
display: flex;
flex-direction: column;
align-items: center;
}
.metadata_heading {
font-family: "open_sansregular", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
text-transform: uppercase;
color: var(--cotech-grey);
font-size: 0.95rem;
letter-spacing: 0.02em;
}
.metadata_value {
font-size: 2.2rem;
letter-spacing: 0.02em;
}
.logo-grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
}
@media screen and (width >= 480px) {
.logo-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (width >= 720px) {
.logo-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media screen and (width >= 960px) {
.logo-grid {
grid-template-columns: repeat(4, 1fr);
}
}
.logo-grid_item {
width: 240px;
height: 120px;
border: 1px solid var(--cotech-light-grey);
padding: var(--space-sm);
}
.logo-grid_link {
width: 100%;
}
.logo-grid_img {
width: 100%;
height: 100%;
object-fit: contain;
transition: transform .2s;
}
.logo-grid_img:hover {
transform: scale(1.1);
}
.footer-links {
list-style-type: none;
display: flex;
gap: var(--space-lg);
}
.two-column {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
gap: var(--space-xl);
padding: var(--space-lg)
}
@media screen and (width >= 480px) {
.two-column {
display: flex;
flex-direction: row;
}
}
.two-column p {
max-width: 70ch;
}
.two-column_left {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.two-column_right {
display: flex;
flex-direction: column;
gap: var(--space-lg);
}