nettsiden/www/css/events.css

137 lines
2.2 KiB
CSS
Raw Permalink Normal View History

h2 a, h4 a {
color: black;
text-decoration: none;
}
h2 a:hover, h4 a:hover {
text-decoration: underline;
}
2016-08-15 17:43:41 +02:00
h2 em {
display: inline-block;
color: gray;
font-size: .5em;
line-height: 2em;
float: left;
margin-right: 1em;
border: .1em solid gray;
padding: 0 1em;
border-radius: .25em;
font-style: normal;
}
h2 strong em {
background: #084;
border-color: #084;
color: white;
}
h2 img {
float: right;
max-width: 10em;
2018-08-10 22:19:25 +02:00
border: .1em solid white;
2018-08-10 23:24:08 +02:00
border-radius: 0.1em;
box-shadow: 0 2px 2px gray;
2016-08-15 17:43:41 +02:00
margin-left: 1em;
2018-08-12 03:54:39 +02:00
clear: right;
margin-bottom: 0.8em;
clear: left;
2016-08-15 17:43:41 +02:00
}
h4 {
margin-top: 0;
margin-bottom: -0.6em;
}
2016-08-15 17:43:41 +02:00
h2 + .subtext {
2016-08-15 17:43:41 +02:00
margin: -1.5em 0 1em 0;
}
p + .subtext {
margin: -0.5em 0 1em 0;
}
.subtext {
2016-08-15 17:43:41 +02:00
padding: 0;
list-style: none;
2016-08-26 23:17:59 +02:00
clear: left;
2016-08-15 17:43:41 +02:00
}
.subtext li {
display: inline;
margin-right: 3em;
font-size: .7em;
color: gray;
}
2016-08-26 22:16:50 +02:00
.subtext li a, .subtext li strong {
2016-08-15 17:43:41 +02:00
color: black;
font-size: 1.2em;
2016-08-26 23:17:59 +02:00
font-weight: normal;
2016-08-15 17:43:41 +02:00
}
.events:before {
height: 1px;
width: 100%;
display: block;
content: " ";
background-image: -webkit-linear-gradient(left, transparent, rgba(0,0,0,.1), transparent);
background-image: -moz-linear-gradient(left, transparent, rgba(0,0,0,.1), transparent);
background-image: -o-linear-gradient(left, transparent, rgba(0,0,0,.1), transparent);
margin: 0;
padding: 0;
border: 0;
}
.events {
margin-top: -1.5em;
margin-left: 0.3em;
2018-02-20 20:45:03 +01:00
margin-bottom: 2em;
list-style: none;
padding: 0;
}
.events >li {
padding-left: 0.5em;
border-left: 4px solid #35a;
margin-top: 0.9em;
}
.events li p {
text-align: left;
line-height: 1.5em;
word-wrap: break-word;
}
.events .subtext {
margin-bottom: 0;
}
.events li h4 +.subtext {
margin-top: 1em;
}
@media screen and (min-width: 50rem) {
article:first-child h2 img {
max-width: 12em;
}
}
2016-08-15 17:43:41 +02:00
@media screen and (max-width: 50rem) {
h2 {
2018-08-12 03:54:39 +02:00
text-align: center;
position: relative;
border-bottom-left-radius: 0.3em;
border-bottom-right-radius: 0.3em;
max-height: 30vh;
overflow-y: hidden;
2016-08-15 17:43:41 +02:00
}
h2 em {
2016-08-15 17:43:41 +02:00
display: block;
2018-08-12 03:54:39 +02:00
top:0;
left: 0;
position: absolute;
}
h2 img {
2018-08-12 03:54:39 +02:00
border: none;
box-shadow: none;
border-radius: 0.3em;
float: none;
margin: 0;
max-width: none;
2018-08-12 03:54:39 +02:00
width: 100%;
}
article >.subtext {
2018-08-12 03:54:39 +02:00
margin-top: -1em !important;
2016-08-15 17:43:41 +02:00
}
2016-08-26 22:16:50 +02:00
}