Annotation-System/hmml_to_html/style.css

278 lines
5.2 KiB
CSS
Raw Normal View History

2017-04-13 00:21:04 +00:00
/* Structure */
.title {
display: flex;
flex-direction: row;
border-bottom: 1px solid;
}
.title > * {
padding: 10px;
}
.title .episode_name {
flex: 1 1;
}
.title > .menu {
position: relative;
}
.title > .menu .mouse_catcher {
position: absolute;
height: 100%;
2017-04-13 00:21:04 +00:00
width: 100%;
top: 0;
right: 0;
}
.title > .menu .refs,
.title > .menu .filter {
border: 1px solid;
border-top: none;
display: none;
/* TODO(matt): Set the height to the player's height */
max-height: 512px;
overflow-y: auto;
position: absolute;
right: 0;
top: 100%;
width: 350px;
z-index: 1;
}
.title > .menu:hover .refs,
.title > .menu:hover .filter {
display: block;
}
.title > .menu > .refs .ref,
.title > .menu > .refs .filter { /* TODO(matt): See what this is! */
border-bottom: 1px solid;
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
}
.title > .menu > .refs .ref:last-child,
.title > .menu > .refs .filter:last-child { /* TODO(matt): See what this is! */
border: none;
}
.title > .menu > .refs .ref .timecode {
cursor: pointer;
display: inline-block;
font-size: 12px;
padding: 0;
}
.title > .menu > .refs .ref .timecode:hover {
/* TODO(matt): background-image "play" symbol, right aligned */
}
.title > .menu > .refs .ref .ref_content,
.title > .menu > .refs .ref .filter_content {
margin-bottom: 8px;
width: 100%;
}
.title > .menu > .refs .ref .source,
.title > .menu > .refs .ref .quote_byline {
font-size: 10px;
line-height: 8px;
}
.title > .menu > .refs .ref .ref_title {
font-style: oblique;
}
.title > .menu > .refs .ref .quote_byline {
text-align: right;
width: 100%;
}
.title > .menu > .refs .ref .ref_indices {
text-align: center;
width: 100%;
}
.title > .menu > .refs .ref .ref_indices .timecode:first-child::before {
content: "";
}
.title > .menu > .refs .ref .ref_indices .timecode::before {
content: "•";
margin: 0 4px;
}
.title > .menu > .refs .ref .timecode .ref_index {
margin-right: 4px;
}
2017-04-13 00:21:04 +00:00
.title > .menu > .filter .filter_mode {
cursor: pointer;
border-bottom: 1px solid;
text-align: center;
font-size: 12px;
}
.title > .menu > .filter .filter_mode.exclusive:after {
content: "exclusive";
}
.title > .menu > .filter .filter_mode.inclusive:after {
content: "inclusive";
}
.title > .menu > .filter .filter_title {
font-size: 9px;
text-align: center;
}
.title > .menu > .filter .filters {
display: flex;
flex-flow: row nowrap;
}
.title > .menu > .filter .filters > * {
width: 50%;
}
.title > .menu > .filter .filter_content {
cursor: pointer;
}
.title > .menu > .filter .filter_content .icon {
margin: 0 4px;
}
.title > .menu > .filter > .filter_media .filter_content .icon {
margin: 0 .5em 0 4px;
}
.title > .menu > .filter .filter_content.off .icon {
background: transparent;
}
.title > .menu > .filter .filter_content.rant .icon {
color: #F00;
}
.title > .menu > .filter .filter_media .filter_content.off .icon {
opacity: 0.32;
}
.title > .menu > .filter .filter_content.rant .text,
.markers_container > .marker.rant .content {
font-variant: small-caps;
}
2017-04-13 00:21:04 +00:00
.player_container {
display: flex;
flex-direction: row;
}
.video_container {
flex-grow: 1;
overflow: hidden;
}
.markers_container {
overflow-y: scroll;
position: relative;
}
.markers_container > .marker {
border-bottom: 1px solid;
2017-04-13 00:21:04 +00:00
position: relative;
cursor: pointer;
}
.markers_container > .marker .content {
box-sizing: border-box;
display: block;
font-size: 14px;
padding: 5px;
width: 320px;
word-wrap: break-word;
}
.markers_container > .marker.authored .content .author {
font-style: normal;
font-variant: normal;
font-weight: bold;
2017-04-13 00:21:04 +00:00
}
.markers_container > .marker.authored {
font-style: oblique;
}
.markers_container > .marker .content sup {
font-style: normal;
font-variant: normal;
}
.markers_container > .marker .progress {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 0px;
overflow: hidden;
}
.markers_container > .marker .timecode {
font-size: 9px;
font-style: normal;
padding-right: 8px;
position: relative;
top: -2px;
}
.markers_container > .marker .content .categories {
display: inline-flex;
margin: 4px;
}
.title > .menu > .filter .filter_content {
display: flex;
}
.title > .menu > .filter .filter_content .category,
2017-04-13 00:21:04 +00:00
.markers_container > .marker .content .categories .category {
border-radius: 50%;
height: 5px;
width: 5px;
}
.title > .menu > .filter .filter_content .category.off {
background: transparent;
}
.markers_container > .marker .content .categories .category {
margin-left: 2px;
}
.title > .menu > .filter .filter_content .icon {
margin-right: 8px;
}
2017-04-13 00:21:04 +00:00
/* CUSTOM PAGE STYLE */
body {
background-color: #000;
font-family: sans-serif;
color: white;
margin: 0;
padding: 0;
}
/*
Open menu: ▾
Open link in new tab: ⤻ or &10559; or &8599; or ⭷
Play from timecode: ⏵ (or, if ▸)
Playable from timecode: ▹
*/