You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
390 lines
6.5 KiB
CSS
390 lines
6.5 KiB
CSS
@import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/sans.css');
|
|
@import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/serif.css');
|
|
@import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/bright.css');
|
|
|
|
@import url('./styles/chevron-left.css');
|
|
@import url('./styles/chevron-right.css');
|
|
@import url('./styles/calendar.css');
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
font-family: inherit;
|
|
color: inherit;
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
min-height: 100%;
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
}
|
|
|
|
button,
|
|
.button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #a00;
|
|
|
|
padding: 0.125rem 2px;
|
|
border-radius: 4px;
|
|
|
|
&:hover {
|
|
background-color: #a00;
|
|
color: #fff;
|
|
}
|
|
|
|
@media screen and (max-width: 50rem) {
|
|
padding: 0.125rem 1px;
|
|
}
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
font-weight: 400;
|
|
font-family: 'Computer Modern Bright', sans-serif;
|
|
}
|
|
|
|
h1 {
|
|
font-weight: bold;
|
|
color: #581111;
|
|
}
|
|
|
|
table {
|
|
margin: 0 auto;
|
|
|
|
width: 30rem;
|
|
max-width: 100%;
|
|
border-collapse: collapse;
|
|
|
|
th,
|
|
td {
|
|
border: 1px solid #333;
|
|
padding: 0.25rem;
|
|
min-width: 6rem;
|
|
}
|
|
|
|
th {
|
|
font-weight: bold;
|
|
}
|
|
|
|
@media screen and (max-width: 50rem) {
|
|
width: 100%;
|
|
max-width: auto;
|
|
|
|
font-size: 14px;
|
|
line-height: 1.25;
|
|
|
|
th,
|
|
td {
|
|
min-width: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
code {
|
|
font-family: monospace;
|
|
font-size: 0.9em;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Components */
|
|
|
|
.tutor-entries {
|
|
display: grid;
|
|
|
|
gap: 1rem;
|
|
}
|
|
|
|
.tutor {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
grid-template-rows: auto 1fr;
|
|
grid-template-areas:
|
|
'avatar name'
|
|
'avatar contacts';
|
|
|
|
column-gap: 2rem;
|
|
|
|
hyphens: none;
|
|
word-break: break-all;
|
|
|
|
> .name {
|
|
grid-area: name;
|
|
font-size: 1.5rem;
|
|
padding-top: 0.5rem;
|
|
}
|
|
|
|
> .image {
|
|
grid-area: avatar;
|
|
width: 8rem;
|
|
height: 8rem;
|
|
|
|
border: 2px solid #a00;
|
|
border-radius: 50%;
|
|
|
|
object-fit: cover;
|
|
}
|
|
|
|
> .contacts {
|
|
grid-area: contacts;
|
|
|
|
padding-left: 1rem;
|
|
|
|
> li {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 50rem) {
|
|
column-gap: 1rem;
|
|
|
|
> .name {
|
|
font-size: 1.25rem;
|
|
padding-top: 0;
|
|
}
|
|
|
|
> .image {
|
|
width: 5rem;
|
|
height: 5rem;
|
|
}
|
|
|
|
> .contacts {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Layout */
|
|
|
|
body {
|
|
font-family: 'Computer Modern Serif', sans-serif;
|
|
text-rendering: optimizeLegibility;
|
|
|
|
font-size: 20px;
|
|
|
|
line-height: 1;
|
|
color: #333;
|
|
background-color: #f3f0f0;
|
|
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto 1fr auto;
|
|
|
|
gap: 6rem;
|
|
padding-bottom: 6rem;
|
|
|
|
header {
|
|
user-select: none;
|
|
|
|
width: 100%;
|
|
|
|
background-color: #a00;
|
|
color: #fff;
|
|
|
|
display: grid;
|
|
grid-template-rows: auto auto;
|
|
|
|
place-items: center;
|
|
|
|
gap: 2rem;
|
|
|
|
padding: 6rem 1rem 1.25rem;
|
|
|
|
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.125);
|
|
|
|
> h1 {
|
|
line-height: 1.125;
|
|
font-family: 'Computer Modern Serif', sans-serif;
|
|
text-align: center;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
width: 100%;
|
|
max-width: 64rem;
|
|
|
|
.row {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
> .course-navigation {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
|
|
> .last {
|
|
order: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
a {
|
|
display: grid;
|
|
place-content: center;
|
|
|
|
color: #fff;
|
|
|
|
padding: 0.5rem;
|
|
|
|
&:hover {
|
|
background-color: #fff;
|
|
color: #a00;
|
|
}
|
|
|
|
font-weight: bold;
|
|
font-size: 22px;
|
|
|
|
border-radius: 2px;
|
|
|
|
&.disabled {
|
|
pointer-events: none;
|
|
color: #420000;
|
|
}
|
|
}
|
|
|
|
h1 > a {
|
|
font-size: 42px;
|
|
}
|
|
|
|
@media screen and (max-width: 64rem) {
|
|
gap: 0;
|
|
padding: 1rem;
|
|
|
|
nav {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
|
|
> .course-navigation {
|
|
justify-content: center;
|
|
}
|
|
|
|
a {
|
|
font-size: 20px;
|
|
padding: 0.25rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
main {
|
|
width: 50rem;
|
|
max-width: 100%;
|
|
|
|
background-color: #fff;
|
|
border: 4px solid #a00;
|
|
border-radius: 2px;
|
|
|
|
padding: 2rem;
|
|
|
|
place-self: center;
|
|
|
|
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
|
|
|
|
/* text-align: justify; */
|
|
hyphens: auto;
|
|
|
|
line-height: 1.65;
|
|
|
|
> * + * {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
hr {
|
|
border: none;
|
|
border-top: 2px solid #a00;
|
|
margin: 2rem auto;
|
|
}
|
|
|
|
ul,
|
|
ol {
|
|
padding-left: 2rem;
|
|
|
|
li {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
li + li {
|
|
margin-top: 1rem;
|
|
}
|
|
}
|
|
|
|
ul {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.katex {
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
|
|
footer {
|
|
place-self: center;
|
|
|
|
a:has(img) {
|
|
display: inline-block;
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
&:hover {
|
|
background: none;
|
|
border: 2px solid #a00;
|
|
}
|
|
}
|
|
|
|
img {
|
|
display: inline-block;
|
|
max-height: 3rem;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.logo {
|
|
transform: translate(0, -0.25rem);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Mobile */
|
|
|
|
@media screen and (max-width: 50rem) {
|
|
body {
|
|
gap: 0;
|
|
padding-bottom: 3rem;
|
|
|
|
font-size: 18px;
|
|
|
|
> main {
|
|
width: 100%;
|
|
padding: 2rem 1rem 1rem 1rem;
|
|
|
|
border: none;
|
|
border-bottom: 4px solid #a00;
|
|
border-radius: 0;
|
|
}
|
|
|
|
> footer {
|
|
margin-top: 3rem;
|
|
}
|
|
}
|
|
}
|