mirror of
https://git.coop/cotech/website.git
synced 2025-12-22 10:47:31 +00:00
Strip out unwanted CSS
I think it's probably easier to start from a cleaner slate for this redesign, rather than try to incrementally refactor towards the new design. Some of the base styles are fine and I've retained some of the CSS variables. I've also kept the header as it probably will be useful to refactor rather than completely re-do this.
This commit is contained in:
@ -39,13 +39,6 @@
|
||||
--cotech-white: white;
|
||||
--cotech-black: #000000;
|
||||
--cotech-light-grey: #646464;
|
||||
--cotech-grey: #7b8290;
|
||||
--cotech-dark-grey: #1e2637;
|
||||
--cotech-light-blue: #7b8290;
|
||||
--cotech-blue: #2da9d7;
|
||||
--cotech-blue-10-percent-tint: #42b2db;
|
||||
--cotech-dark-blue: #212a3d;
|
||||
--cotech-darker-blue: #1e2637;
|
||||
}
|
||||
|
||||
p, li, a {
|
||||
@ -62,59 +55,8 @@ body {
|
||||
background-color: var(--cotech-black);
|
||||
}
|
||||
|
||||
.default-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
.page-heading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-md);
|
||||
padding: var(--space-sm);
|
||||
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;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media screen and (width >= 480px) {
|
||||
section.content {
|
||||
padding: var(--space-md);
|
||||
}
|
||||
}
|
||||
|
||||
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: 2rem 0;
|
||||
img.greyscale {
|
||||
filter: grayscale(100);
|
||||
}
|
||||
|
||||
.header {
|
||||
@ -206,207 +148,3 @@ section.content h2 {
|
||||
z-index: 1001;
|
||||
}
|
||||
}
|
||||
|
||||
.hero {
|
||||
width: 100%;
|
||||
background-image: url(/assets/img/pixel-background.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.hero_container {
|
||||
padding: var(--space-lg) var(--space-sm);
|
||||
background: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media screen and (width >= 480px) {
|
||||
.hero_container {
|
||||
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-radius: 4px;
|
||||
background-color: var(--cotech-blue);
|
||||
}
|
||||
|
||||
.hero_button:hover {
|
||||
background-color: var(--cotech-blue-10-percent-tint);
|
||||
}
|
||||
|
||||
.hero_button a {
|
||||
color: var(--cotech-white);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.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-black);
|
||||
}
|
||||
|
||||
.slice--darker {
|
||||
background-color: var(--cotech-black);
|
||||
}
|
||||
|
||||
.slice--blue {
|
||||
background-color: var(--cotech-black);
|
||||
}
|
||||
|
||||
.slice_title {
|
||||
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-grey);
|
||||
}
|
||||
|
||||
.slice--darker a {
|
||||
color: var(--cotech-light-grey);
|
||||
}
|
||||
|
||||
.slice_logo {
|
||||
width: 200px;
|
||||
max-width: 200px;
|
||||
filter: grayscale(100);
|
||||
}
|
||||
|
||||
.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 {
|
||||
text-transform: uppercase;
|
||||
color: var(--cotech-white);
|
||||
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 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
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;
|
||||
filter: grayscale(100);
|
||||
}
|
||||
|
||||
.logo-grid_img:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
list-style-type: none;
|
||||
display: flex;
|
||||
gap: var(--space-lg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user