CSS Namespacing

Depends on cinera 0.5.7
This commit is contained in:
Matt Mascarenhas 2017-12-10 00:18:21 +00:00
parent 9db3ee36bb
commit dfabd0c81b
2 changed files with 140 additions and 135 deletions

View File

@ -1,145 +1,145 @@
.queryContainer.hero .inputContainer #query,
.dayContainer.hero,
.cineraQueryContainer.hero .inputContainer #query,
#cineraResults .dayContainer.hero,
#cineraIndex.hero dt,
.title.hero,
.title.hero > .menu .refs,
.title.hero > .menu .filter_container,
.title.hero > .menu > .refs .ref,
.title.hero > .menu > .filter_container .filter_mode,
.title.hero > .menu > .credits_container,
.title.hero > .menu > .credits_container .credit,
.markers_container.hero,
.markers_container.hero > .marker {
.cineraMenus.hero,
.cineraMenus.hero > .menu .refs,
.cineraMenus.hero > .menu .filter_container,
.cineraMenus.hero > .menu > .refs .ref,
.cineraMenus.hero > .menu > .filter_container .filter_mode,
.cineraMenus.hero > .menu > .credits_container,
.cineraMenus.hero > .menu > .credits_container .credit,
.cineraPlayerContainer .markers_container.hero,
.cineraPlayerContainer .markers_container.hero > .marker {
background-color: #161616;
}
.queryContainer.hero .inputContainer #query:focus,
.dayContainer:nth-child(2n).hero,
.cineraQueryContainer.hero .inputContainer #query:focus,
#cineraResults .dayContainer:nth-child(2n).hero,
#cineraIndex.hero dt:nth-child(2n) {
background-color: #303030;
}
.markerList.hero > .marker,
.title.hero,
.title.hero > .menu .refs,
.title.hero > .menu .filter_container,
.title.hero > .menu > .refs .ref,
.title.hero > .menu > .filter_container .filter_mode,
.title.hero > .menu > .credits_container,
.title.hero > .menu > .credits_container .credit,
.markers_container.hero,
.markers_container.hero > .marker {
.cineraMenus.hero,
.cineraMenus.hero > .menu .refs,
.cineraMenus.hero > .menu .filter_container,
.cineraMenus.hero > .menu > .refs .ref,
.cineraMenus.hero > .menu > .filter_container .filter_mode,
.cineraMenus.hero > .menu > .credits_container,
.cineraMenus.hero > .menu > .credits_container .credit,
.cineraPlayerContainer .markers_container.hero,
.cineraPlayerContainer .markers_container.hero > .marker {
border-color: rgba(255, 255, 255, 0.1);
}
.queryContainer.hero .inputContainer #query,
.dayContainer.hero > .dayName,
.markerList.hero > .marker,
.cineraQueryContainer.hero .inputContainer #query,
#cineraResults .dayContainer.hero > .dayName,
#cineraResults .markerList.hero > .marker,
#cineraIndex.hero dt a,
.title.hero,
.title.hero > .menu > .refs .ref,
.title.hero > .menu > .refs .ref .timecode.focused:before,
.title.hero > .menu > .credits_container .credit .name,
.markers_container.hero > .marker > .content {
.cineraMenus.hero,
.cineraMenus.hero > .menu > .refs .ref,
.cineraMenus.hero > .menu > .refs .ref .timecode.focused:before,
.cineraMenus.hero > .menu > .credits_container .credit .name,
.cineraPlayerContainer .markers_container.hero > .marker > .content {
color: #8A877D;
}
.title.hero > .menu {
.cineraMenus.hero > .menu {
transition: box-shadow 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: inset 0 0 0 #B57714;
}
.title.hero .menu.current {
.cineraMenus.hero .menu.current {
box-shadow: inset 0px 0px 30px #B57714;
}
.title.hero > .menu > .refs .ref .ref_indices .timecode.focused,
.markers_container.hero > .marker.current > .content {
.cineraMenus.hero > .menu > .refs .ref .ref_indices .timecode.focused,
.cineraPlayerContainer .markers_container.hero > .marker.current > .content {
color: #B57714;
}
.title.hero > .menu > .refs .ref.current .ref_indices .timecode.focused {
.cineraMenus.hero > .menu > .refs .ref.current .ref_indices .timecode.focused {
color: #FFF;
}
.markerList.hero > .marker:hover,
#cineraResults .markerList.hero > .marker:hover,
#cineraIndex.hero dt:hover,
.title.hero > .menu.visible,
.title.hero > .menu > .quotes_container .ref.focused,
.title.hero > .menu > .references_container .ref.focused,
.title.hero > .menu > .filter_container .filter_mode:hover,
.title.hero > .menu > .filter_container .filter_content.focused,
.title.hero > .menu > .credits_container .credit *.focused,
.markers_container.hero > .marker:hover > .content {
.cineraMenus.hero > .menu.visible,
.cineraMenus.hero > .menu > .quotes_container .ref.focused,
.cineraMenus.hero > .menu > .references_container .ref.focused,
.cineraMenus.hero > .menu > .filter_container .filter_mode:hover,
.cineraMenus.hero > .menu > .filter_container .filter_content.focused,
.cineraMenus.hero > .menu > .credits_container .credit *.focused,
.cineraPlayerContainer .markers_container.hero > .marker:hover > .content {
background-color: #222;
}
.title.hero > .menu > .refs .ref.current .source,
.title.hero > .menu > .refs .ref.current .quote_byline,
.title.hero > .menu > .refs .ref.current .ref_indices .timecode.focused:before {
.cineraMenus.hero > .menu > .refs .ref.current .source,
.cineraMenus.hero > .menu > .refs .ref.current .quote_byline,
.cineraMenus.hero > .menu > .refs .ref.current .ref_indices .timecode.focused:before {
color: #111;
}
.markerList.hero > .marker b,
#cineraResults .markerList.hero > .marker b,
.title.hero > .menu > .refs .ref.current,
.markers_container.hero > .marker > .progress .content {
.cineraMenus.hero > .menu > .refs .ref.current,
.cineraPlayerContainer .markers_container.hero > .marker > .progress .content {
background-color: #8B3D23;
color: black;
}
.markers_container.hero > .marker:hover > .faded .content {
.cineraPlayerContainer .markers_container.hero > .marker:hover > .faded .content {
background-color: rgba(139, 61, 35, 0.7);
}
.title.hero > .menu > .refs .ref .source,
.title.hero > .menu > .refs .ref .quote_byline,
.title.hero > .menu > .filter_container .filter_content.off .text,
.title.hero > .menu > .credits_container .credit .role {
.cineraMenus.hero > .menu > .refs .ref .source,
.cineraMenus.hero > .menu > .refs .ref .quote_byline,
.cineraMenus.hero > .menu > .filter_container .filter_content.off .text,
.cineraMenus.hero > .menu > .credits_container .credit .role {
color: #6B3E0B;
}
/* Blackboard */
.markers_container.hero > .marker.blackboard {
.cineraPlayerContainer .markers_container.hero > .marker.blackboard {
background: #000;
border-color: #161616;
}
.markers_container.hero > .marker.blackboard > .content {
.cineraPlayerContainer .markers_container.hero > .marker.blackboard > .content {
color: #D7BA82;
}
.markers_container.hero > .marker:hover.blackboard > .content {
.cineraPlayerContainer .markers_container.hero > .marker:hover.blackboard > .content {
background: #111;
}
/* Run */
.markers_container.hero > .marker.run > .content,
.markers_container.hero > .marker.run > .progress .content,
.markers_container.hero > .marker:hover.run > .faded .content {
.cineraPlayerContainer .markers_container.hero > .marker.run > .content,
.cineraPlayerContainer .markers_container.hero > .marker.run > .progress .content,
.cineraPlayerContainer .markers_container.hero > .marker:hover.run > .faded .content {
background: hsla(128, 16%, 64%, .2);
background-image: linear-gradient(to right, blue 4%, black 4%, black 96%, red 4%),
linear-gradient(to bottom, blue 4%, black 4%, black 96%, red 4%),
/*#236a58*/
}
.markers_container.hero > .marker.run > .content {
.cineraPlayerContainer .markers_container.hero > .marker.run > .content {
color: #D7BA82;
}
.markers_container.hero > .marker:hover.run > .content {
.cineraPlayerContainer .markers_container.hero > .marker:hover.run > .content {
background: #111;
}
.markers_container.hero > .marker.run > .progress .content {
.cineraPlayerContainer .markers_container.hero > .marker.run > .progress .content {
color: #D7BA82;
}
.markers_container.hero > .marker:hover.run > .faded .content {
.cineraPlayerContainer .markers_container.hero > .marker:hover.run > .faded .content {
background: #111;
}

View File

@ -1,142 +1,147 @@
.queryContainer.hero .inputContainer #query:focus,
.dayContainer.riscy,
.cineraResults .dayContainer.riscy,
#cineraIndex.riscy dt,
.title.riscy,
.title.riscy > .menu .refs,
.title.riscy > .menu .filter_container,
.title.riscy > .menu > .refs .ref,
.title.riscy > .menu > .filter_container .filter_mode,
.title.riscy > .menu > .credits_container,
.title.riscy > .menu > .credits_container .credit,
.markers_container.riscy,
.markers_container.riscy > .marker {
.cineraMenus.riscy,
.cineraMenus.riscy > .menu .refs,
.cineraMenus.riscy > .menu .filter_container,
.cineraMenus.riscy > .menu > .refs .ref,
.cineraMenus.riscy > .menu > .filter_container .filter_mode,
.cineraMenus.riscy > .menu > .credits_container,
.cineraMenus.riscy > .menu > .credits_container .credit,
.cineraPlayerContainer .markers_container.riscy,
.cineraPlayerContainer .markers_container.riscy > .marker {
background-color: #EEE;
}
.queryContainer.hero .inputContainer #query,
.dayContainer:nth-child(2n).riscy,
.cineraResults .dayContainer:nth-child(2n).riscy,
#cineraIndex.riscy dt:nth-child(2n) {
background-color: #FFF;
}
.markerList.riscy > .marker,
#cineraResults .markerList.riscy > .marker,
.title.riscy,
.title.riscy > .menu .refs,
.title.riscy > .menu .filter_container,
.title.riscy > .menu > .refs .ref,
.title.riscy > .menu > .filter_container .filter_mode,
.title.riscy > .menu > .credits_container,
.title.riscy > .menu > .credits_container .credit,
.markers_container.riscy,
.markers_container.riscy > .marker {
.cineraMenus.riscy,
.cineraMenus.riscy > .menu .refs,
.cineraMenus.riscy > .menu .filter_container,
.cineraMenus.riscy > .menu > .refs .ref,
.cineraMenus.riscy > .menu > .filter_container .filter_mode,
.cineraMenus.riscy > .menu > .credits_container,
.cineraMenus.riscy > .menu > .credits_container .credit,
.cineraPlayerContainer .markers_container.riscy,
.cineraPlayerContainer .markers_container.riscy > .marker {
border-color: rgba(246, 178, 26, 0.8);
}
.queryContainer.hero .inputContainer #query,
.dayContainer.riscy > .dayName,
.markerList.riscy > .marker,
.cineraResults .dayContainer.riscy > .dayName,
#cineraResults .markerList.riscy > .marker,
#cineraIndex.riscy dt a,
.title.riscy,
.title.riscy > .menu > .refs .ref,
.title.riscy > .menu > .refs .ref .timecode.focused:before,
.title.riscy > .menu > .credits_container .credit .name,
.markers_container.riscy > .marker > .content {
.cineraMenus.riscy,
.cineraMenus.riscy > .menu > .refs .ref,
/*.cineraMenus.riscy > .menu > .refs .ref .timecode:hover:before,*/
.cineraMenus.riscy > .menu > .refs .ref .timecode.focused:before,
.cineraMenus.riscy > .menu > .credits_container .credit .name,
.cineraPlayerContainer .markers_container.riscy > .marker > .content {
color: #000;
}
.title.riscy > .menu {
.cineraMenus.riscy > .menu {
transition: box-shadow 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: inset 0 0 0 #2A3172;
}
.title.riscy > .menu.current {
.cineraMenus.riscy > .menu.current {
box-shadow: inset 0px 0px 30px #2A3172;
}
.title.riscy > .menu > .refs .ref .ref_indices .timecode.focused,
.markers_container.riscy > .marker.current > .content {
/*.cineraMenus.riscy > .menu > .refs .ref .ref_indices .timecode:hover,*/
.cineraMenus.riscy > .menu > .refs .ref .ref_indices .timecode.focused,
.cineraPlayerContainer .markers_container.riscy > .marker.current > .content {
color: #2A3172;
}
.title.riscy > .menu > .refs .ref.current .ref_indices .timecode.focused {
.cineraMenus.riscy > .menu > .refs .ref.current .ref_indices .timecode.focused {
color: rgb(246, 178, 26);
}
.markerList.riscy > .marker:hover,
#cineraResults .markerList.riscy > .marker:hover,
#cineraIndex.riscy dt:hover,
.title.riscy > .menu.visible,
.title.riscy > .menu > .quotes_container .ref.focused,
.title.riscy > .menu > .references_container .ref.focused,
.title.riscy > .menu > .filter_container .filter_mode:hover,
.title.riscy > .menu > .filter_container .filter_content.focused,
.title.riscy > .menu > .credits_container .credit *.focused,
.markers_container.riscy > .marker:hover > .content {
/*.cineraMenus.riscy > .menu:hover,*/
.cineraMenus.riscy > .menu.visible,
/*.cineraMenus.riscy > .menu > .refs .ref:hover,*/
.cineraMenus.riscy > .menu > .quotes_container .ref.focused,
.cineraMenus.riscy > .menu > .references_container .ref.focused,
.cineraMenus.riscy > .menu > .filter_container .filter_mode:hover,
/*.cineraMenus.riscy > .menu > .filter_container .filter_content:hover,*/
.cineraMenus.riscy > .menu > .filter_container .filter_content.focused,
/*.cineraMenus.riscy > .menu > .credits_container .credit *:hover,*/
.cineraMenus.riscy > .menu > .credits_container .credit *.focused,
.cineraPlayerContainer .markers_container.riscy > .marker:hover > .content {
background-color: #FFF8E7;
}
.title.riscy > .menu > .refs .ref.current .source,
.title.riscy > .menu > .refs .ref.current .quote_byline,
.title.riscy > .menu > .refs .ref.current .ref_indices .timecode.focused:before {
.cineraMenus.riscy > .menu > .refs .ref.current .source,
.cineraMenus.riscy > .menu > .refs .ref.current .quote_byline,
.cineraMenus.riscy > .menu > .refs .ref.current .ref_indices .timecode.focused:before {
color: #FFF8E7;
}
.markerList.riscy > .marker b,
#cineraResults .markerList.riscy > .marker b,
.title.riscy > .menu > .refs .ref.current,
.markers_container.riscy > .marker > .progress .content {
.cineraMenus.riscy > .menu > .refs .ref.current,
/*.cineraMenus.riscy > .menu > .refs .ref.current .timecode:hover:before,*/
.cineraPlayerContainer .markers_container.riscy > .marker > .progress .content {
background-color: rgb(42, 49, 114);
color: #FFF;
}
.markers_container.riscy > .marker:hover > .faded .content {
/*.cineraMenus.riscy > .menu > .refs .ref.current:hover,*/
.cineraPlayerContainer .markers_container.riscy > .marker:hover > .faded .content {
background-color: rgba(42, 49, 114, 0.7);
}
.title.riscy > .menu > .refs .ref .source,
.title.riscy > .menu > .refs .ref .quote_byline,
.title.riscy > .menu > .filter_container .filter_content.off .text,
.title.riscy > .menu > .credits_container .credit .role {
.cineraMenus.riscy > .menu > .refs .ref .source,
.cineraMenus.riscy > .menu > .refs .ref .quote_byline,
.cineraMenus.riscy > .menu > .filter_container .filter_content.off .text,
.cineraMenus.riscy > .menu > .credits_container .credit .role {
color: #888;
}
/* Blackboard */
.title.riscy .filter_content.blackboard,
.markers_container.riscy .blackboard > .content,
.markers_container.riscy .off_blackboard > .content,
.markers_container.riscy > .marker.blackboard > .progress .content,
.markers_container.riscy > .marker:hover.blackboard > .faded .content {
.cineraMenus.riscy .filter_content.blackboard,
.cineraPlayerContainer .markers_container.riscy .blackboard > .content,
.cineraPlayerContainer .markers_container.riscy .off_blackboard > .content,
.cineraPlayerContainer .markers_container.riscy > .marker.blackboard > .progress .content,
.cineraPlayerContainer .markers_container.riscy > .marker:hover.blackboard > .faded .content {
background-size: 12px 12px;
background-position: center;
}
.title.riscy .filter_content.blackboard,
.markers_container.riscy .blackboard > .content {
.cineraMenus.riscy .filter_content.blackboard,
.cineraPlayerContainer .markers_container.riscy .blackboard > .content {
background-image: linear-gradient(to right , rgba(51, 153, 255, .16) 1px, transparent 1px),
linear-gradient(to bottom, rgba(51, 153, 255, .16) 1px, transparent 1px);
}
.markers_container.riscy .off_blackboard > .content {
.cineraPlayerContainer .markers_container.riscy .off_blackboard > .content {
background-image: linear-gradient(to right , rgba(51, 153, 255, .08) 1px, transparent 1px),
linear-gradient(to bottom, rgba(51, 153, 255, .08) 1px, transparent 1px);
}
.markers_container.riscy > .marker.blackboard > .progress .content {
.cineraPlayerContainer .markers_container.riscy > .marker.blackboard > .progress .content {
background-image: linear-gradient(to right , rgba(255, 255, 255, .16) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, .16) 1px, transparent 1px);
}
.markers_container.riscy > .marker:hover.blackboard > .faded .content {
.cineraPlayerContainer .markers_container.riscy > .marker:hover.blackboard > .faded .content {
background-image: linear-gradient(to right , rgba(0, 0, 0, .16) 1px, transparent 1px),
linear-gradient(to bottom, rgba(0, 0, 0, .16) 1px, transparent 1px);
}
/* TODO(matt):
*
* .markers_container.riscy > marker.run
* .cineraPlayerContainer .markers_container.riscy > marker.run
*/
@keyframes riscy_fade_mode {
@ -155,16 +160,16 @@
}
/* TODO(matt): Get this to work! */
.title.riscy > .menu > .filter_container .filter_mode.responsible {
.cineraMenus.riscy > .menu > .filter_container .filter_mode.responsible {
animation-name: riscy_fade_mode;
}
.title.riscy .filter_content.responsible .text {
.cineraMenus.riscy .filter_content.responsible .text {
animation-name: riscy_fade_text;
}
.title.riscy > .menu.filter.responsible,
.title.riscy .filter_content.responsible,
.title.riscy > .menu > .filter_container .filter_mode.responsible {
.cineraMenus.riscy > .menu.filter.responsible,
.cineraMenus.riscy .filter_content.responsible,
.cineraMenus.riscy > .menu > .filter_container .filter_mode.responsible {
animation-name: riscy_fade_background;
}