split styles

This commit is contained in:
YK 2025-09-12 08:07:54 +03:00
parent 2de2bb9c42
commit 51eab50cf5
2 changed files with 101 additions and 98 deletions

100
style/_header.scss Normal file
View File

@ -0,0 +1,100 @@
@use 'mixins';
header {
grid-row: 1/2;
grid-column: 1/3;
display: flex;
.campaign-image {
width: 100px;
img {
width: 100%;
height: 100%;
object-fit: cover; /* or contain, or fill */
}
overflow: hidden;
}
section {
width: 100%;
display: grid;
grid-template-columns: 3fr 1fr;
grid-template-rows: 2fr 1fr 1fr;
padding-left: 20px;
}
.campaign-name {
font-size: 2em;
grid-row: 1/2;
grid-column: 1/2;
align-self: last baseline;
padding-bottom: 3px;
}
.version {
font-size: 0.6em;
text-transform: lowercase;
grid-row: 1/2;
grid-column: 2/3;
align-self: start;
justify-self: end;
padding: 3px;
color: #888;
}
.controls {
grid-row: 2/4;
grid-column: 2/3;
padding: 3px;
display: flex;
justify-content: flex-end;
align-items: flex-end;
button {
background: #ccc;
padding: 3px 5px;
text-transform: lowercase;
font-size: 0.66em;
line-height: 1em;
margin: 2px 5px;
@include mixins.heading;
}
}
.game-date, .session-number {
display: flex;
align-items: center;
:first-child {
width: 120px;
}
.adjust {
color: white;
font-family: "Proxima Nova";
font-weight: 900;
margin: 0 1px;
width: 20px;
text-align: center;
&:hover {
transform: scale(1.4);
transition: transform .2s;
cursor: pointer;
}
}
}
.session-number {
grid-row: 2/3;
grid-column: 1/2;
font-weight: 300;
}
.game-date {
grid-row: 3/4;
grid-column: 1/2;
}
}

View File

@ -1,5 +1,6 @@
@use 'mixins';
@use 'reset';
@use 'header';
html {
background: black;
@ -38,104 +39,6 @@ header, aside, main {
}
header {
grid-row: 1/2;
grid-column: 1/3;
display: flex;
.campaign-image {
width: 100px;
img {
width: 100%;
height: 100%;
object-fit: cover; /* or contain, or fill */
}
overflow: hidden;
}
section {
width: 100%;
display: grid;
grid-template-columns: 3fr 1fr;
grid-template-rows: 2fr 1fr 1fr;
padding-left: 20px;
}
.campaign-name {
font-size: 2em;
grid-row: 1/2;
grid-column: 1/2;
align-self: last baseline;
padding-bottom: 3px;
}
.version {
font-size: 0.6em;
text-transform: lowercase;
grid-row: 1/2;
grid-column: 2/3;
align-self: start;
justify-self: end;
padding: 3px;
color: #888;
}
.controls {
grid-row: 2/4;
grid-column: 2/3;
padding: 3px;
display: flex;
justify-content: flex-end;
align-items: flex-end;
button {
background: #ccc;
padding: 3px 5px;
text-transform: lowercase;
font-size: 0.66em;
line-height: 1em;
margin: 2px 5px;
@include mixins.heading;
}
}
.game-date, .session-number {
display: flex;
align-items: center;
:first-child {
width: 120px;
}
.adjust {
color: white;
font-family: "Proxima Nova";
font-weight: 900;
margin: 0 1px;
width: 20px;
text-align: center;
&:hover {
transform: scale(1.4);
transition: transform .2s;
cursor: pointer;
}
}
}
.session-number {
grid-row: 2/3;
grid-column: 1/2;
font-weight: 300;
}
.game-date {
grid-row: 3/4;
grid-column: 1/2;
}
}
aside {
grid-row: 2/3;