jellyfish-web/src/components/guide/guide.scss

440 lines
7.7 KiB
SCSS
Raw Normal View History

2018-10-23 01:13:23 +03:00
.tvguide {
display: flex;
flex-direction: column;
align-items: initial;
2018-10-23 01:13:23 +03:00
}
.tvGuideHeader {
white-space: nowrap;
width: 100%;
flex-direction: column;
flex-shrink: 0;
display: flex;
contain: layout style paint;
2018-10-23 01:13:23 +03:00
}
.layout-desktop .tvGuideHeader {
2020-01-19 15:00:37 +01:00
margin-bottom: 0.5em;
2018-10-23 01:13:23 +03:00
}
.guideHeaderDateSelection {
font-size: 86%;
2020-01-19 15:00:37 +01:00
padding: 0.4em 0;
2018-10-23 01:13:23 +03:00
}
.guide-headerTimeslots {
display: flex;
2018-10-23 01:13:23 +03:00
}
.tvProgramSectionHeader {
margin: 0;
2018-10-23 01:13:23 +03:00
}
.tvProgram {
display: block;
text-decoration: none;
white-space: nowrap;
position: relative;
2018-10-23 01:13:23 +03:00
}
.guideProgramIndicator {
text-transform: uppercase;
2020-01-19 15:00:37 +01:00
border-radius: 0.25em;
margin-right: 0.5em;
2018-10-23 01:13:23 +03:00
font-size: 82%;
2020-01-19 15:00:37 +01:00
padding: 0.2em 0.25em;
2018-10-23 01:13:23 +03:00
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
margin-left: 1em;
2018-10-23 01:13:23 +03:00
}
.guide-channelTimeslotHeader {
2020-01-19 14:11:12 +01:00
border: 0 !important;
border-right-color: transparent;
flex-shrink: 0;
justify-content: center;
2018-10-23 01:13:23 +03:00
}
.timeslotHeaders {
white-space: nowrap;
font-weight: 500;
font-size: 120%;
2018-10-23 01:13:23 +03:00
}
.programContainer {
white-space: nowrap;
position: relative;
2018-10-23 01:13:23 +03:00
align-items: flex-start;
contain: strict;
}
2020-08-18 16:33:37 -04:00
.programContainer.emby-scroller {
margin: 0;
}
.channelPrograms {
2020-01-19 14:11:12 +01:00
height: 4.42em;
contain: strict;
display: flex;
flex-direction: column;
border-style: solid;
border-width: 1px 0 1px 0;
white-space: nowrap;
position: relative;
box-sizing: border-box;
}
.timeslotHeadersInner {
position: relative;
2018-10-23 01:13:23 +03:00
}
.guideSpacer {
2020-01-19 15:00:37 +01:00
width: 0.3em;
flex-shrink: 0;
2018-10-23 01:13:23 +03:00
}
2020-01-22 21:40:45 +01:00
.channelPrograms,
2020-01-25 11:42:43 +01:00
.timeslotHeadersInner {
width: 1800vw;
2018-10-23 01:13:23 +03:00
}
@media all and (min-width: 37.5em) {
2020-01-22 21:40:45 +01:00
.channelPrograms,
2020-01-25 11:42:43 +01:00
.timeslotHeadersInner {
width: 1400vw;
2018-10-23 01:13:23 +03:00
}
}
@media all and (min-width: 50em) {
2020-01-22 21:40:45 +01:00
.channelPrograms,
2020-01-25 11:42:43 +01:00
.timeslotHeadersInner {
width: 1200vw;
2018-10-23 01:13:23 +03:00
}
}
@media all and (min-width: 80em) {
2020-01-22 21:40:45 +01:00
.channelPrograms,
2020-01-25 11:42:43 +01:00
.timeslotHeadersInner {
width: 810vw;
2018-10-23 01:13:23 +03:00
}
}
.timeslotHeader {
display: inline-flex;
align-items: center;
2020-01-19 15:00:37 +01:00
text-indent: 0.25em;
width: 2.0833333333333333333333333333333%;
2018-10-23 01:13:23 +03:00
}
2020-01-22 21:40:45 +01:00
.programCell,
2020-01-25 11:42:43 +01:00
.guide-channelHeaderCell {
2020-01-19 14:29:41 +01:00
outline: none !important;
}
2020-01-22 21:40:45 +01:00
.guide-channelHeaderCell,
2020-01-25 11:42:43 +01:00
.guide-channelTimeslotHeader {
padding: 0 !important;
2018-10-23 01:13:23 +03:00
cursor: pointer;
outline: none !important;
width: 100%;
2018-10-23 01:13:23 +03:00
vertical-align: middle;
font-family: inherit;
font-size: inherit;
overflow: hidden;
2018-10-23 01:13:23 +03:00
text-overflow: ellipsis;
margin: 0 1px 0 0;
display: flex;
align-items: center;
text-decoration: none;
2020-01-22 21:40:45 +01:00
/* Needed in firefox */
text-align: left;
2018-10-23 01:13:23 +03:00
contain: strict;
flex-shrink: 0;
2020-01-19 15:00:37 +01:00
border-radius: 0.12em;
color: inherit;
2018-10-23 01:13:23 +03:00
}
.guide-channelHeaderCell {
border-width: 1px 1px 1px 0;
border-style: solid;
width: 100%;
height: 4.42em;
contain: strict;
position: relative;
background: transparent;
2018-10-23 01:13:23 +03:00
}
/* Important - have to put the fixed width on channelsContainer, not the individual channelHeaderCell
This was causing channelsContainer to extend beyond the fixed width on ps4, tizen, lg and opera tv.
*/
2020-01-22 21:40:45 +01:00
.channelsContainer,
2020-01-25 11:42:43 +01:00
.guide-channelTimeslotHeader {
width: 24vw;
2018-10-23 01:13:23 +03:00
}
@media all and (min-width: 31.25em) {
2020-01-22 21:40:45 +01:00
.channelsContainer,
2020-01-25 11:42:43 +01:00
.guide-channelTimeslotHeader {
width: 16vw;
2018-10-23 01:13:23 +03:00
}
}
@media all and (min-width: 37.5em) {
2020-01-22 21:40:45 +01:00
.channelsContainer,
2020-01-25 11:42:43 +01:00
.guide-channelTimeslotHeader {
width: 16vw;
2018-10-23 01:13:23 +03:00
}
}
@media all and (min-width: 50em) {
2020-01-22 21:40:45 +01:00
.channelsContainer,
2020-01-25 11:42:43 +01:00
.guide-channelTimeslotHeader {
width: 14vw;
2018-10-23 01:13:23 +03:00
}
}
@media all and (min-width: 80em) {
2020-01-22 21:40:45 +01:00
.channelsContainer,
2020-01-25 11:42:43 +01:00
.guide-channelTimeslotHeader {
width: 12vw;
2018-10-23 01:13:23 +03:00
}
}
.btnGuideViewSettings {
margin: 0;
flex-shrink: 0;
2018-10-23 01:13:23 +03:00
}
.btnGuideViewSettingsIcon {
font-size: 1.5em !important;
2018-10-23 01:13:23 +03:00
}
.selectDateIcon {
flex-shrink: 0;
2018-10-23 01:13:23 +03:00
}
@media all and (max-width: 50em) {
2020-01-22 21:40:45 +01:00
.newTvProgram,
2020-01-25 11:42:43 +01:00
.liveTvProgram,
.premiereTvProgram,
.guideHdIcon {
display: none;
2018-10-23 01:13:23 +03:00
}
}
2020-01-25 11:42:43 +01:00
.channelPrograms + .channelPrograms,
.guide-channelHeaderCell + .guide-channelHeaderCell {
margin-top: -1px;
}
2020-01-22 21:40:45 +01:00
.channelPrograms-tv,
2020-01-25 11:42:43 +01:00
.guide-channelHeaderCell-tv {
height: 3em;
2018-10-23 01:13:23 +03:00
}
2020-01-22 21:40:45 +01:00
.guide-channelTimeslotHeader,
2020-01-25 11:42:43 +01:00
.timeslotHeader {
background: transparent !important;
height: 2.8em;
2018-10-23 01:13:23 +03:00
}
.programGrid {
padding-bottom: 4px;
flex-grow: 1;
2018-10-23 01:13:23 +03:00
}
.programCell {
color: inherit;
background: transparent;
border-style: solid;
2018-10-23 01:13:23 +03:00
border-width: 0 0 0 1px;
padding: 0 !important;
cursor: pointer;
outline: none !important;
2018-10-23 01:13:23 +03:00
width: 100%;
vertical-align: middle;
font-family: inherit;
2018-10-23 01:13:23 +03:00
font-size: inherit;
position: absolute;
top: 0;
bottom: 0;
display: flex;
text-decoration: none;
overflow: hidden;
2018-10-23 01:13:23 +03:00
align-items: center;
2020-01-22 21:40:45 +01:00
/* Needed for Firefox */
text-align: left;
contain: strict;
2018-10-23 01:13:23 +03:00
flex-grow: 1;
margin: 0 !important;
2018-10-23 01:13:23 +03:00
}
.guideProgramName {
2020-01-19 15:00:37 +01:00
padding: 0 0.7em 0;
2018-10-23 01:13:23 +03:00
overflow: hidden;
text-overflow: ellipsis;
align-items: center;
display: flex;
position: relative;
flex-grow: 1;
contain: layout style paint;
2020-01-22 21:40:45 +01:00
2020-01-19 14:42:13 +01:00
/* transition: transform 60ms ease-out; */
2018-10-23 01:13:23 +03:00
}
.guide-programNameCaret {
display: flex;
align-items: center;
justify-content: center;
font-size: 200%;
2018-10-23 01:13:23 +03:00
}
.guideProgramNameText {
margin: 0;
font-weight: normal;
2018-10-23 01:13:23 +03:00
overflow: hidden;
text-overflow: ellipsis;
2018-10-23 01:13:23 +03:00
}
.guideProgramSecondaryInfo {
display: flex;
align-items: center;
2020-01-19 15:00:37 +01:00
margin-top: 0.1em;
2018-10-23 01:13:23 +03:00
}
.programIcon {
2020-01-19 15:00:37 +01:00
margin-left: 0.5em;
2018-10-23 01:13:23 +03:00
height: 1em;
width: 1em;
font-size: 1.6em;
color: #ddd;
flex-shrink: 0;
flex-grow: 0;
2018-10-23 01:13:23 +03:00
}
.guide-programTextIcon {
font-weight: bold;
2020-01-19 15:00:37 +01:00
font-size: 0.9em;
padding: 0.16em 0.3em;
border-radius: 0.25em;
margin-right: 0.35em;
2018-10-23 01:13:23 +03:00
width: auto;
height: auto;
2018-10-23 01:13:23 +03:00
}
.guide-programTextIcon-tv {
2020-01-19 15:00:37 +01:00
font-size: 0.74em;
2018-10-23 01:13:23 +03:00
}
.guideChannelNumber {
padding-left: 1em;
max-width: 30%;
text-overflow: ellipsis;
overflow: hidden;
font-weight: normal;
margin: 0;
2018-10-23 01:13:23 +03:00
}
.guideChannelName {
margin-left: auto;
margin-right: 1em;
text-overflow: ellipsis;
overflow: hidden;
max-width: 70%;
2018-10-23 01:13:23 +03:00
}
.guideChannelImage {
position: absolute;
right: 8%;
top: 15%;
bottom: 15%;
width: 40%;
background-size: contain;
background-repeat: no-repeat;
background-position: right center;
2018-10-23 01:13:23 +03:00
}
@media all and (min-width: 62.5em) {
2018-10-23 01:13:23 +03:00
.guideChannelName {
max-width: 40%;
2018-10-23 01:13:23 +03:00
}
}
@media all and (max-width: 62.5em) {
2018-10-23 01:13:23 +03:00
.guideChannelNumber {
display: none;
2018-10-23 01:13:23 +03:00
}
.guideChannelImage {
width: 70%;
2018-10-23 01:13:23 +03:00
}
}
.channelsContainer {
display: flex;
flex-shrink: 0;
flex-direction: column;
2018-10-23 01:13:23 +03:00
}
2020-01-22 21:40:45 +01:00
.channelsContainer,
2020-01-25 11:42:43 +01:00
.programGrid {
contain: layout style paint;
2018-10-23 01:13:23 +03:00
}
2020-01-22 21:40:45 +01:00
.timerIcon,
2020-01-25 11:42:43 +01:00
.seriesTimerIcon {
2020-01-19 14:40:47 +01:00
color: #c33 !important;
2018-10-23 01:13:23 +03:00
}
.seriesTimerIcon-inactive {
color: inherit !important;
2020-01-19 15:00:37 +01:00
opacity: 0.7;
2018-10-23 01:13:23 +03:00
}
.guideOptions {
flex-shrink: 0;
display: flex;
align-items: center;
2018-10-23 01:13:23 +03:00
}
@media all and (max-width: 50em), all and (max-height: 37.5em) {
2018-10-23 01:13:23 +03:00
.tvGuideHeader {
padding-left: 0;
2018-10-23 01:13:23 +03:00
}
}
.guideRequiresUnlock {
margin: 1em auto;
text-align: center;
padding: 1em;
flex-shrink: 0;
2018-10-23 01:13:23 +03:00
}
.noRubberBanding {
/* This is needed to combat the rubber banding in iOS */
padding-bottom: 7em;
2018-10-23 01:13:23 +03:00
}
.guideDateTabsSlider {
text-align: center;
2018-10-23 01:13:23 +03:00
}
.guide-date-tab-button {
2020-01-19 15:00:37 +01:00
padding: 0.3em 0.7em !important;
margin: 0 0.3em !important;
font-weight: normal;
2018-10-23 01:13:23 +03:00
}
2020-01-25 11:42:43 +01:00
.guide-date-tab-button.emby-tab-button-active {
border-color: transparent !important;
}
2018-10-23 01:13:23 +03:00
2020-01-25 11:42:43 +01:00
.guide-date-tab-button.show-focus:focus {
border-radius: 0.15em !important;
transform: none !important;
}