reorganise css files
This commit is contained in:
committed by
Benedikt Rötsch
parent
e955555f1a
commit
090e0e332a
74
assets/stylesheets/global/footer.css
Normal file
74
assets/stylesheets/global/footer.css
Normal file
@@ -0,0 +1,74 @@
|
||||
@block footer {
|
||||
margin-top: var(--grid-gutter) 0;
|
||||
padding-top: var(--grid-gutter);
|
||||
|
||||
@element upper {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
min-height: 80px;
|
||||
|
||||
border-bottom: 1px solid var(--color-bg-separator);
|
||||
|
||||
& > * {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
@element navigation {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
@element apps {
|
||||
flex: 1 0 auto;
|
||||
justify-content: center;
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
& a {
|
||||
display: inline-block;
|
||||
width: 138px;
|
||||
|
||||
& + a {
|
||||
margin-left: var(--grid-gutter);
|
||||
}
|
||||
|
||||
& img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@element lower {
|
||||
display: flex;
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
@element disclaimer {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 0.7em;
|
||||
color: var(--color-text-grey);
|
||||
}
|
||||
|
||||
@element social {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 var(--grid-gutter);
|
||||
|
||||
& a + a {
|
||||
margin-left: var(--grid-gutter);
|
||||
}
|
||||
|
||||
& img {
|
||||
width: 24px;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
125
assets/stylesheets/global/header.css
Normal file
125
assets/stylesheets/global/header.css
Normal file
@@ -0,0 +1,125 @@
|
||||
@block header {
|
||||
margin-bottom: var(--grid-gutter);
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
@element upper-wrapper {
|
||||
background: var(--color-palette-blue-dark);
|
||||
padding: calc(var(--grid-gutter) / 2) 0;
|
||||
color: var(--color-text-dark-bg);
|
||||
}
|
||||
|
||||
@element upper {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
font-size: 0.8em;
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
@element lower-wrapper {
|
||||
}
|
||||
|
||||
@element lower {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: var(--grid-gutter) 0 calc(var(--grid-gutter) / 4);
|
||||
border-bottom: 1px solid var(--color-bg-separator);
|
||||
}
|
||||
|
||||
@element title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-family: var(--font-regular);
|
||||
letter-spacing: 3px;
|
||||
text-transform: uppercase;
|
||||
|
||||
& img {
|
||||
display: inline-block;
|
||||
width: 24px;
|
||||
height: auto;
|
||||
margin-right: calc(var(--grid-gutter) / 2);
|
||||
}
|
||||
}
|
||||
|
||||
@element logo {
|
||||
display: flex;
|
||||
flex: 0 0 100%;
|
||||
justify-content: center;
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
flex: 0 0 200px;
|
||||
}
|
||||
|
||||
& img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-width: 169px;
|
||||
}
|
||||
}
|
||||
|
||||
@element controls {
|
||||
display: flex;
|
||||
flex: 0 0 100%;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
& form {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
& .group {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
padding: 0 calc(var(--grid-gutter) / 2);
|
||||
margin: 0;
|
||||
|
||||
border: none;
|
||||
background: var(--color-palette-blue-medium);
|
||||
border-radius: var(--border-radius);
|
||||
color: inherit;
|
||||
|
||||
& + .group {
|
||||
margin-left: var(--grid-gutter)
|
||||
}
|
||||
|
||||
& select,
|
||||
& label {
|
||||
flex: 0 0 auto;
|
||||
display: inline-block;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
|
||||
color: inherit;
|
||||
font-weight: normal;
|
||||
font-family: var(--font-light);
|
||||
font-size: 0.8em;
|
||||
|
||||
background: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
& select {
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
128
assets/stylesheets/global/index.css
Normal file
128
assets/stylesheets/global/index.css
Normal file
@@ -0,0 +1,128 @@
|
||||
@import './layout';
|
||||
@import './header';
|
||||
@import './footer';
|
||||
|
||||
body {
|
||||
background-color: var(--color-bg-default);
|
||||
color: var(--color-text-default);
|
||||
font-family: var(--font-regular);
|
||||
font-size: 1rem;
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
||||
#main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
#main__header {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
#main__content {
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
#main__footer {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.table-of-contents {
|
||||
& ul {
|
||||
list-style: none;
|
||||
margin: var(--grid-gutter) 0;
|
||||
padding: 0;
|
||||
padding-left: calc(var(--grid-gutter) * 2);
|
||||
|
||||
& li {
|
||||
margin: 0 0 var(--grid-gutter);
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
& a {
|
||||
display: block;
|
||||
|
||||
&.active {
|
||||
position: relative;
|
||||
font-weight: bold;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
&:before {
|
||||
content: '';
|
||||
left: calc(var(--grid-gutter) * 3 * -1);
|
||||
bottom: 0;
|
||||
width: 3px;
|
||||
background: var(--color-course-active);
|
||||
}
|
||||
&:after {
|
||||
content: '👁';
|
||||
left: calc(var(--grid-gutter) * 2 * -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-menu {
|
||||
& ul {
|
||||
list-style: none;
|
||||
margin: var(--grid-gutter) 0;
|
||||
padding: 0;
|
||||
|
||||
& li {
|
||||
margin: 0 0 var(--grid-gutter);
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
& a {
|
||||
display: block;
|
||||
|
||||
&.active {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@block main-navigation {
|
||||
& ul {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
& li {
|
||||
margin: 0;
|
||||
|
||||
& + li {
|
||||
margin-left: calc(var(--grid-gutter) / 4);
|
||||
}
|
||||
|
||||
& a {
|
||||
display: block;
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
padding: 0.7em 1em;
|
||||
color: var(--color-text-grey);
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
&.active,
|
||||
&:hover {
|
||||
background: var(--color-bg-grey);
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: var(--color-text-default);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
65
assets/stylesheets/global/layout.css
Normal file
65
assets/stylesheets/global/layout.css
Normal file
@@ -0,0 +1,65 @@
|
||||
.wrapper {
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
padding: 0 2vw;
|
||||
}
|
||||
|
||||
@block wrapper-with-sidebar {
|
||||
@media (--breakpoint-desktop) {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
@element sidebar {
|
||||
@media (--breakpoint-desktop) {
|
||||
flex: 0 0 220px;
|
||||
padding: var(--grid-gutter);
|
||||
border-radius: 7px;
|
||||
box-shadow: var(--card-box-shadow);
|
||||
|
||||
& > h2 {
|
||||
margin-bottom: calc(var(--grid-gutter) * 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@element content {
|
||||
padding: var(--grid-gutter) 0;
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
flex: 1 1 auto;
|
||||
margin-left: var(--grid-gutter);
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.grid-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
margin: 0 calc(var(--grid-gutter) / 2 * -1);
|
||||
|
||||
& > * {
|
||||
box-sizing: border-box;
|
||||
margin: 0 calc(var(--grid-gutter) / 2) var(--grid-gutter);
|
||||
flex: 0 0 calc(50% - var(--grid-gutter));
|
||||
|
||||
@media (--breakpoint-desktop) {
|
||||
flex: 0 0 calc(33% - var(--grid-gutter));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.grid-list-small {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
margin: 0 calc(var(--grid-gutter) / 2 * -1);
|
||||
|
||||
& > * {
|
||||
box-sizing: border-box;
|
||||
margin: 0 calc(var(--grid-gutter) / 2) var(--grid-gutter);
|
||||
flex: 0 0 calc(50% - var(--grid-gutter));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user