459 lines
7.6 KiB
CSS
Executable File
459 lines
7.6 KiB
CSS
Executable File
/**
|
|
* Define rules for the default layouts, and some useful classes
|
|
*/
|
|
body {
|
|
max-width: 92em;
|
|
margin: 0em auto;
|
|
padding: 0em;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5 {
|
|
margin: 0.4em 0em;
|
|
}
|
|
|
|
ul {
|
|
margin: 0em;
|
|
}
|
|
|
|
|
|
/** classes **/
|
|
.float_right {
|
|
float: right;
|
|
}
|
|
|
|
.float_left {
|
|
float: left;
|
|
}
|
|
|
|
.small {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.icon {
|
|
max-width: 2em;
|
|
max-height: 2em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.small_icon {
|
|
max-height: 1.5em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
|
|
.flex_row {
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-flex-direction: row;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.flex_column {
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-flex-direction: column;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.flex_row > .flex_item,
|
|
.flex_column > .flex_item {
|
|
-webkit-flex: auto;
|
|
flex: auto;
|
|
}
|
|
|
|
|
|
/** content: menus **/
|
|
.menu {
|
|
padding: 0.4em;
|
|
}
|
|
|
|
body > .top *,
|
|
body > .header * {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
body > .top section,
|
|
body > .header section {
|
|
display: inline-block;
|
|
}
|
|
|
|
body > .top a,
|
|
body > .header a {
|
|
display: inline-block;
|
|
margin: 0.2em 1em;
|
|
}
|
|
|
|
body > .top {
|
|
position: fixed;
|
|
z-index: 10000000;
|
|
top: 0;
|
|
width: calc(100% - 0.8em);
|
|
max-width: calc(92em - 0.8em);
|
|
height: 2.5em;
|
|
margin: 0em auto;
|
|
background-color: white;
|
|
box-shadow: 0em 0em 0.2em black;
|
|
transition: opacity 1.5s;
|
|
}
|
|
|
|
body[scrollY] > .top {
|
|
opacity: 0.1;
|
|
transition: opacity 1.5s 1s;
|
|
}
|
|
|
|
body > .top:hover {
|
|
opacity: 1.0;
|
|
transition: opacity 1.5s;
|
|
}
|
|
|
|
|
|
body > .header {
|
|
overflow: hidden;
|
|
margin-top: 3.3em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
body > .header > div {
|
|
width: 15000%;
|
|
}
|
|
|
|
body > .header > div > section {
|
|
margin: 0;
|
|
margin-right: -0.4em;
|
|
}
|
|
|
|
|
|
.page_left, .page_right {
|
|
max-width: 16em;
|
|
}
|
|
|
|
.page_left > section,
|
|
.page_right > section {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.page_left .section_link_list a,
|
|
.page_right .section_link_list a {
|
|
display: block;
|
|
}
|
|
|
|
|
|
body section ul {
|
|
padding: 0em;
|
|
padding-left: 1em;
|
|
}
|
|
|
|
/** content: list & items **/
|
|
.list {
|
|
width: 100%;
|
|
}
|
|
|
|
ul.list {
|
|
padding: 0.4em;
|
|
}
|
|
|
|
.list_item {
|
|
margin: 0.4em 0;
|
|
}
|
|
|
|
.list_item > *:not(:last-child) {
|
|
margin-right: 0.4em;
|
|
}
|
|
|
|
.list_item img.cover.big {
|
|
display: block;
|
|
max-width: 100%;
|
|
min-height: 15em;
|
|
margin: auto;
|
|
}
|
|
|
|
.list_item img.cover.small {
|
|
margin-right: 0.4em;
|
|
border-radius: 0.4em;
|
|
float: left;
|
|
min-height: 64px;
|
|
}
|
|
|
|
.list_item > * {
|
|
margin: 0em 0.2em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
|
|
.list nav {
|
|
text-align: center;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
|
|
/** content: date list **/
|
|
.date_list nav {
|
|
text-align:center;
|
|
}
|
|
|
|
.date_list nav a {
|
|
display: inline-block;
|
|
width: 2em;
|
|
}
|
|
|
|
.date_list nav a.date {
|
|
width: 4em;
|
|
}
|
|
|
|
.date_list nav a[selected] {
|
|
color: #007EDF;
|
|
border-bottom: 0.2em #007EDF dotted;
|
|
}
|
|
|
|
.date_list ul:not([selected]) {
|
|
display: none;
|
|
}
|
|
|
|
.date_list ul:target {
|
|
display: block;
|
|
}
|
|
|
|
.date_list h2 {
|
|
display: none;
|
|
}
|
|
|
|
.date_list_item .cover.small {
|
|
width: 64px;
|
|
margin: 0.4em;
|
|
}
|
|
|
|
.date_list_item h3 {
|
|
margin-top: 0em;
|
|
}
|
|
|
|
|
|
/** content: comments **/
|
|
.comments form input:not([type=checkbox]),
|
|
.comments form textarea {
|
|
display: inline-block;
|
|
width: 100%;
|
|
max-height: 6em;
|
|
margin: 0.2em 0em;
|
|
padding: 0.2em;
|
|
}
|
|
|
|
.comments form input[type=checkbox],
|
|
.comments form button[type=submit] {
|
|
vertical-align:bottom;
|
|
margin: 0.2em 0em;
|
|
text-align: center;
|
|
}
|
|
|
|
.comments form button[type=submit] {
|
|
float: right;
|
|
}
|
|
|
|
.comments form #show_more:not(:checked) ~ .extra {
|
|
display: none;
|
|
}
|
|
|
|
.comments label[for="show_more"] {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.comments ul {
|
|
margin-top: 2.5em;
|
|
}
|
|
|
|
.comment {
|
|
list-style: none;
|
|
border: 1px #818181 dotted;
|
|
margin: 0.4em 0em;
|
|
}
|
|
|
|
.comment .metadata {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.comment time {
|
|
float: right;
|
|
}
|
|
|
|
|
|
/** content: player **/
|
|
.player {
|
|
}
|
|
|
|
.player:not([seekable]) > .controls > .progress {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.player .controls {
|
|
margin-top: 1em;
|
|
text-align: right;
|
|
}
|
|
.player .controls > * {
|
|
margin: 0em 0.2em;
|
|
}
|
|
|
|
.player .controls .single {
|
|
display: none;
|
|
}
|
|
|
|
.player .controls .single + label {
|
|
display: inline-block;
|
|
font-size: 1em;
|
|
padding: 0.1em;
|
|
width: 1.5em;
|
|
height: 1.0em;
|
|
text-align: center;
|
|
box-shadow: inset 0em 0em 0.1em #818181;
|
|
}
|
|
|
|
.player .controls .single:not(:checked) + label {
|
|
border-left: 2px #818181 solid;
|
|
color: black;
|
|
}
|
|
|
|
.player .controls .single:checked + label {
|
|
border-right: 2px #818181 solid;
|
|
}
|
|
|
|
.player .playlist .item {
|
|
position: relative;
|
|
margin: 0em;
|
|
padding: 0.2em 0.4em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.player .playlist .item:hover {
|
|
color: #007EDF;
|
|
}
|
|
|
|
.player .item > * {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.player .playlist .item .actions {
|
|
display: none;
|
|
height: 100%;
|
|
max-width: 2.9em;
|
|
position: absolute;
|
|
right: 0px;
|
|
font-size: 1.2em;
|
|
text-align: right;
|
|
}
|
|
|
|
.player .playlist .item:hover .actions {
|
|
display: inline;
|
|
}
|
|
|
|
.player .playlist .item .action {
|
|
display: inline-block;
|
|
width: 1.2em;
|
|
height: 1.2em;
|
|
border-radius: 0.2em;
|
|
text-align: center;
|
|
line-height: 1.2em;
|
|
background-color: #F2F2F2;
|
|
}
|
|
|
|
.player .playlist .item .action:hover {
|
|
background-color: rgba(0, 126, 223, 0.1);
|
|
}
|
|
|
|
.player .playlist .duration {
|
|
text-align: right;
|
|
}
|
|
|
|
.player .playlist progress {
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.player .item[selected] {
|
|
border-left: 1px #007EDF solid;
|
|
font-size: 1.0em;
|
|
}
|
|
|
|
.player .item:not([selected]) {
|
|
}
|
|
|
|
.player .button {
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
height: 2.0em;
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.4em;
|
|
}
|
|
|
|
.player .button > img {
|
|
max-height: 2.0em;
|
|
}
|
|
|
|
.player:not([state]) .item[selected] .button > img:not(.play),
|
|
.player[state="paused"] .item[selected] .button > img:not(.play),
|
|
.player[state="playing"] .item[selected] .button > img:not(.pause),
|
|
.player[state="loading"] .item[selected] .button > img:not(.loading)
|
|
{
|
|
display: none;
|
|
}
|
|
|
|
.player .item:not([selected]) .button > img.play {
|
|
display: block;
|
|
}
|
|
|
|
.player .item:not([selected]) .button > img:not(.play):not(.cover) {
|
|
display: none;
|
|
}
|
|
|
|
.player .item .button > img.cover {
|
|
display: block;
|
|
position: absolute;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.player .item:hover .button > img.cover {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
|
|
|
|
main .player .actions .action:not(.add),
|
|
.section_player .actions .action.add,
|
|
.player .list_item.live:hover .actions {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/** content: page **/
|
|
main .body ~ section:not(.comments) {
|
|
width: calc(50% - 1em);
|
|
vertical-align: top;
|
|
display: inline-block;
|
|
}
|
|
|
|
.meta .author .summary {
|
|
display: none;
|
|
}
|
|
|
|
.meta .link_list > a {
|
|
font-size: 0.9em;
|
|
margin: 0em 0.1em;
|
|
padding: 0.2em;
|
|
line-height: 1.4em;
|
|
}
|
|
|
|
.meta .link_list > a:hover {
|
|
border-radius: 0.2em;
|
|
background-color: rgba(0, 126, 223, 0.1);
|
|
}
|
|
|
|
|
|
/** content: others **/
|
|
.list_item.track .title {
|
|
display: inline;
|
|
font-style: italic;
|
|
font-weight: normal;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
|