pakua-cambridge/style.css
Peter Molnar 1f456f91c3 updates
q
2022-05-08 23:06:09 +01:00

240 lines
3 KiB
CSS

* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: "Open Sans", sans-serif;
margin: 0;
padding: 0;
line-height: 1.5em;
}
a {
color: #c40000;
text-decoration: none;
}
a:hover {
text-decoration: underline;
color: #000;
}
.limit {
max-width: 60em;
margin: 0 auto;
padding: 0 1em;
}
body {
background-image: url("footer-bg.png");
background-repeat: no-repeat;
background-position: bottom;
background-size: contain;
margin: 0 auto;
}
p {
margin-top: 1em;
margin-bottom: 1em;
}
h1 {
background-image: url("header_background.png");
color: #fff;
padding: 2em 0 4em 0;
background-position: bottom;
text-align: center;
position: relative;
}
h2,
h3 {
margin: 2em 0;
}
h2,
.grid h3 {
text-align: center;
margin: 1em 0;
}
hr {
background-image: url("yellow_line.png");
background-repeat: no-repeat;
background-position: center top;
height: 2px;
width: 100%;
content: " ";
border: none;
margin: 1em 0;
padding: 0;
}
#header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.6em 0;
}
#normal_logo {
width: 16%;
margin: 0 2em;
}
#header ul {
display: inline-block;
list-style-type: none;
margin: 0;
}
#header li {
display: inline-block;
margin: 0.6em 0.8em;
font-weight:600;
}
#small_logo {
display: none;
}
#footer {
margin: 6em auto;
}
.vcard .photo {
width: 8em;
height: auto;
float: left;
}
.vcard>div {
margin-left: 9em;
}
.vcard p {
text-align: left;
}
.vcard .social-school {
padding: 0
}
.vcard .note {
color: #777;
}
.vcard .name {
font-size: 1.3em;
}
summary {
font-weight: bold;
margin: 1em 0;
text-align: center;
color: #c40000;
cursor: pointer;
}
.e-summary {
padding: 2em 0;
font-size: 1.2em;
color: #333;
}
.grid {
display: flex;
flex-grow: 1;
flex-wrap: wrap;
justify-content: space-evenly;
font-size: 0.9em;
align-items: stretch;
}
.grid>div {
border: 1px solid #ccc;
display: block;
overflow: hidden;
text-align: center;
min-width: 31%;
max-width: 31%;
}
.grid img,
.grid video {
width: 100%;
height: auto;
}
.grid video {
margin: 0.6em 0;
}
dt {
font-weight: bold;
margin: 1em 0 0 0;
}
.cols {
display: flex;
justify-content: space-between;
align-items: stretch;
}
.cols > div {
max-width: 45%;
}
table {
border-collapse: collapse;
width: 100%;
}
td, th {
padding: 0.3em;
border: 1px solid #777;
text-align:left;
}
th {
font-weight: bold;
}
th, tr:nth-child(even) {
background-color: rgba(0, 0, 0, .1);
}
td img {
width: 16em;
height: auto;
}
ul {
margin: 0 0 0 1em;
}
@media screen and (max-width: 54em) {
#normal_logo {
display: none;
}
#small_logo {
display: block;
height: 5em;
margin: 1em auto 2em auto;
}
.cols {
display: block;
}
.cols>div,
.grid>div {
max-width: 96%;
border: none;
padding-bottom: 2em;
position: relative;
}
}