This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/app/www/src/css/main.css
2018-02-18 23:04:11 +01:00

360 lines
6.2 KiB
CSS

.grid {
display: grid;
height: 100%;
grid-template-columns: [grid-col-start] repeat(12, 1fr) [grid-col-end];
grid-template-rows: var(--header-height) auto var(--footer-height);
grid-gap: 20px;
}
.grid > header {
grid-column: span 12;
}
.grid > .sidebar {
grid-column: 2 / span 2;
grid-row-start: 2;
}
.grid > .sidebar-right {
display: none;
grid-column: span 2;
grid-row-start: 2;
}
.grid > section {
grid-column: 4/span 8;
grid-row-start: 2;
}
.grid > footer {
grid-column: span 12;
grid-row-start: 3;
}
@media (max-width: 1000px) {
.grid {
grid-template-columns: [grid-col-start] repeat(8, 1fr) [grid-col-end];
grid-gap: 10px;
}
.grid > header {
grid-column: span 8;
}
.grid > .sidebar {
grid-column: grid-col-start / span 2;
grid-row-start: 2;
}
.grid > section {
grid-column: 3 / span 6;
grid-row-start: 2;
}
.grid > footer {
grid-column: span 8;
grid-row-start: 3;
}
}
@media (max-width: 800px) {
.grid {
grid-template-columns: [grid-col-start] repeat(4, 1fr) [grid-col-end];
}
.grid > header, .grid > .sidebar, .grid > section, .grid > footer {
grid-column: span 4;
}
.grid > section {
grid-row-start: 2;
}
.grid > .sidebar {
grid-row-start: 3;
}
.grid > footer {
grid-row-start: 4;
}
}
@media (max-width: 600px) {
.grid {
grid-template-columns: [grid-col-start] repeat(2, 1fr) [grid-col-end];
}
.grid > header, .grid > .sidebar, .grid > section, .grid > footer {
grid-column: span 2;
}
}
.box {
position: relative;
padding: 13px 24px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
margin-bottom: 20px;
font-size: 16px;
}
.box ul {
margin-left: 10px;
margin-bottom: 5px;
}
.box p {
margin-bottom: 13px;
}
.course-box {
border-left: 1px solid #ccb3e6;
padding: 0 20px;
position: relative;
}
.course-box li {
padding-left: 7px;
padding-bottom: 13px;
}
.course-box li h4::before {
content: '>';
position: absolute;
margin-left: -13px;
font-weight: 800;
}
.course-box li h4:hover {
cursor: pointer;
}
.course-box li h4:hover::before {
content: 'v';
}
.course-box li.collapsed {
padding-bottom: 0;
}
.course-box li.collapsed > * {
display: none;
}
.course-box li.collapsed h4 {
display: block;
}
.course-box li.collapsed h4::before {
content: '>';
}
.course-box li.collapsed h4:hover::before {
content: 'v';
}
.course-box .course {
margin-bottom: 7px;
}
table.sortable th {
cursor: pointer;
position: relative;
padding-right: 20px;
}
table.sortable th.sorted-asc, table.sortable th.sorted-desc {
color: rebeccapurple;
}
table.sortable th.sorted-asc::after, table.sortable th.sorted-desc::after {
content: '';
position: absolute;
right: 0;
width: 0;
height: 0;
top: 7px;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
}
table.sortable th.sorted-asc::after {
border-top: 8px solid rebeccapurple;
}
table.sortable th.sorted-desc::after {
border-bottom: 8px solid rebeccapurple;
}
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
background-color: #ffffff;
color: #353535;
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-weight: 400;
font-size: 18px;
overflow-y: scroll;
}
a,
a:visited,
a:link {
color: inherit;
text-decoration: none;
font-weight: 600;
-webkit-transition: color .2s ease, background-color .2s ease;
transition: color .2s ease, background-color .2s ease;
}
a:hover {
color: rebeccapurple;
}
ul {
list-style-type: none;
}
ul.flat > li {
display: inline-block;
}
h1, h2, h3, h4, h5 {
font-weight: 600;
}
h1 {
font-size: 32px;
margin: 20px 0 10px;
}
h2 {
font-size: 24px;
margin: 10px 0 5px;
}
h3 {
font-size: 20px;
margin: 5px 0 0;
}
h4 {
font-size: 16px;
margin: 0;
}
th, td {
text-align: left;
padding: 0 2px 0 4px;
border-left: 1px solid rebeccapurple;
}
th:first-of-type, td:first-of-type {
border: none;
}
.header {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 0 24px;
height: 60px;
line-height: 60px;
background-color: rebeccapurple;
width: 100%;
text-align: right;
overflow: hidden;
z-index: 100;
}
.header > nav {
width: 100%;
}
.has-sticky-nav {
padding-top: 60px;
}
.has-sticky-nav .header {
height: 40px;
line-height: 40px;
position: fixed;
top: 0;
left: 0;
-webkit-transition: height .2s ease, line-height .2s ease;
transition: height .2s ease, line-height .2s ease;
}
.main-content {
font-size: 16px;
}
ul.flat > li > a {
padding: 0 13px;
position: relative;
height: 100%;
display: inline-block;
color: #eaf2ff;
}
ul.flat > li > a:hover {
background-color: #542a7e;
}
.footer {
text-align: right;
height: 50px;
line-height: 50px;
padding: 7px 24px;
overflow: hidden;
background-color: rebeccapurple;
color: #eaf2ff;
}
.event-desc {
padding: 0 13px;
}
.button, .event-registration {
background-color: rebeccapurple;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
padding: 3px 13px;
cursor: pointer;
font-weight: 600;
-webkit-transition: background-color .2s ease, -webkit-transform .1s;
transition: background-color .2s ease, -webkit-transform .1s;
transition: transform .1s, background-color .2s ease;
transition: transform .1s, background-color .2s ease, -webkit-transform .1s;
}
.button:hover, .event-registration:hover {
background-color: #4d2673;
-webkit-transform: scale(1.01);
transform: scale(1.01);
}
.hidden {
display: none;
visibility: hidden;
}
/*# sourceMappingURL=main.css.map */