218 lines
3.6 KiB
CSS
Executable File
218 lines
3.6 KiB
CSS
Executable File
/*
|
|
* Define a default theme, that is the one for RadioCampus
|
|
*
|
|
* Colors:
|
|
* - light:
|
|
* - background: #F2F2F2
|
|
* - color: #000
|
|
*
|
|
* - dark:
|
|
* - background: #212121
|
|
* - color: #007EDF
|
|
*
|
|
* - info:
|
|
* - generic (time,url,...): #616161
|
|
* - additional: #007EDF
|
|
* - active: #007EDF
|
|
*/
|
|
|
|
/** main **/
|
|
body {
|
|
background-color: #F2F2F2;
|
|
font-family: "Myriad Pro",Calibri,Helvetica,Arial,sans-serif;
|
|
padding: 0em;
|
|
}
|
|
|
|
|
|
h1, h2, h3 {
|
|
font-family: "Myriad Pro",Calibri,Helvetica,Arial,sans-serif;
|
|
}
|
|
|
|
h1:first-letter, h2:first-letter, h3:first-letter {
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
h1 { font-size: 1.4em; }
|
|
h2 { font-size: 1.2em; }
|
|
h3 { font-size: 0.9em; }
|
|
|
|
|
|
h2 * { vertical-align: middle; }
|
|
|
|
|
|
|
|
/** info **/
|
|
time, .tags {
|
|
font-size: 0.9em;
|
|
color: #616161;
|
|
}
|
|
|
|
.info {
|
|
font-size: 0.9em;
|
|
padding: 0.1em;
|
|
color: #007EDF;
|
|
}
|
|
|
|
|
|
a {
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
color: #616161;
|
|
}
|
|
|
|
a:hover {
|
|
color: #007EDF;
|
|
}
|
|
|
|
a:hover > .small_icon {
|
|
box-shadow: 0em 0em 0.1em #007EDF;
|
|
}
|
|
|
|
|
|
.error { color: red; }
|
|
.warning { color: orange; }
|
|
.success { color: green; }
|
|
|
|
|
|
/** page **/
|
|
.page > nav {
|
|
width: 16em;
|
|
overflow: hidden;
|
|
}
|
|
|
|
main {
|
|
background-color: rgba(255,255,255,0.9);
|
|
padding: 1em;
|
|
margin: 0em 2em;
|
|
box-shadow: 0em 0em 0.2em black;
|
|
width: 60%;
|
|
}
|
|
|
|
|
|
main:not(.detail) h1 {
|
|
margin: 0em 0em 0.4em 0em;
|
|
}
|
|
|
|
main .post_content {
|
|
display: block;
|
|
}
|
|
|
|
main .post_content section {
|
|
display: inline-block;
|
|
width: calc(50% - 1em);
|
|
vertical-align: top;
|
|
}
|
|
|
|
|
|
/** detail view **/
|
|
main.detail {
|
|
padding: 0em;
|
|
}
|
|
|
|
main.detail > .content {
|
|
padding: 1em;
|
|
}
|
|
|
|
main.detail > header {
|
|
padding: 0em;
|
|
margin: 0em;
|
|
}
|
|
|
|
main.detail > header h1.title,
|
|
main.detail > header .summary {
|
|
display: block;
|
|
padding: 0.4em;
|
|
vertical-align: middle;
|
|
transition: opacity 1.5s;
|
|
}
|
|
|
|
main.detail > header:hover h1.title,
|
|
main.detail > header:hover .summary {
|
|
opacity: 0.0;
|
|
transition: opacity 1.5s 1s;
|
|
}
|
|
|
|
main.detail > header h1.title {
|
|
position: relative;
|
|
z-index: 1000;
|
|
height: 1.2em;
|
|
margin: 0em;
|
|
background-color: rgba(255,255,255,0.8);
|
|
/*! padding-top: 0em; */
|
|
}
|
|
|
|
main.detail > header h1.title + section {
|
|
margin-top: 2em;
|
|
}
|
|
|
|
main.detail header .summary {
|
|
display: inline-block;
|
|
width: calc(100% - 0.8em);
|
|
min-height: 1.2em;
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
background-color: rgba(255,255,255,0.8);
|
|
}
|
|
|
|
main.detail > header .cover_container,
|
|
main.detail > header img.cover {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
main.detail > header .cover_container {
|
|
max-height: 450px;
|
|
overflow: hidden;
|
|
margin-top: -2.8em;
|
|
margin-bottom: -2.4em;
|
|
}
|
|
|
|
main.detail > header img.cover {
|
|
height: auto;
|
|
margin: auto;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
|
|
/** player **/
|
|
.player[state='playing'] .item[selected] .button > img {
|
|
animation-duration: 4s;
|
|
animation-iteration-count: infinite;
|
|
animation-name: blink;
|
|
}
|
|
|
|
|
|
@keyframes blink {
|
|
from {
|
|
opacity: 1.0;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
to {
|
|
opacity: 1.0;
|
|
}
|
|
}
|
|
|
|
|
|
.player[state="loading"] .item[selected] .button > img.loading {
|
|
animation-duration: 2s;
|
|
animation-iteration-count: infinite;
|
|
animation-name: rotate;
|
|
animation-timing-function: linear;
|
|
}
|
|
|
|
@keyframes rotate {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
|