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

View File

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