mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 07:39:28 +00:00
Generalise currently class page specific components for use on the test page
This commit is contained in:
@@ -12,7 +12,7 @@ a {
|
||||
}
|
||||
}
|
||||
|
||||
span.hl {
|
||||
.hl {
|
||||
color: $primary-colour;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@@ -76,3 +76,86 @@
|
||||
padding: .5rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.adminOverview {
|
||||
@include space-contents;
|
||||
|
||||
&__buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
|
||||
@include respond-to('medium') {
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to('medium') {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.adminStats {
|
||||
@include space-contents;
|
||||
|
||||
&__stats {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: .5rem;
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
background: $admin-bg;
|
||||
padding: .5rem;
|
||||
border-radius: 10px;
|
||||
|
||||
h3 {
|
||||
color: $primary-colour;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
&:nth-child(odd):last-child {
|
||||
grid-column-end: span 2;
|
||||
|
||||
@include respond-to('medium') {
|
||||
grid-column-end: span 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to('medium') {
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&__graphs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
div {
|
||||
box-sizing: border-box;
|
||||
background: $admin-bg;
|
||||
padding: 10rem 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
@include respond-to('medium') {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to('medium') {
|
||||
@include space-contents(1rem);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
&__overview {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
.adminOverview {
|
||||
&__members {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
@@ -16,85 +12,6 @@
|
||||
gap: .5rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
|
||||
@include respond-to('medium') {
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to('medium') {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
&__stats {
|
||||
@include space-contents;
|
||||
|
||||
&__stats {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: .5rem;
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
background: $admin-bg;
|
||||
padding: .5rem;
|
||||
border-radius: 10px;
|
||||
|
||||
h3 {
|
||||
color: $primary-colour;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
&:nth-child(odd):last-child {
|
||||
grid-column-end: span 2;
|
||||
|
||||
@include respond-to('medium') {
|
||||
grid-column-end: span 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to('medium') {
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&__graphs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
div {
|
||||
box-sizing: border-box;
|
||||
background: $admin-bg;
|
||||
padding: 10rem 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
@include respond-to('medium') {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to('medium') {
|
||||
@include space-contents(1rem);
|
||||
}
|
||||
}
|
||||
|
||||
&__tests {
|
||||
|
||||
Reference in New Issue
Block a user