Files
ugc/style/ugc.scss
2019-02-24 22:06:40 +01:00

434 lines
5.7 KiB
SCSS
Executable File

@CHARSET "UTF-8";
/* External librairies */
@import 'normalize';
@import 'font-awesome';
/* Variables */
$poster_size: 175px;
$ugc_color: #08288B;
$comp_color: #666;
/* Default Tags */
body {
margin:0;
padding:1em;
font-family: 'Open Sans', sans-serif;
font-size: 1em;
color:#222;
background:white;
min-width: 30em;
}
a {
text-decoration: none;
color:#222;
}
a:hover {
color: $ugc_color;
}
h1 {
color: $ugc_color;
margin:0 0 0.8em 0;
}
h2 {
margin:0 0 1em 0;
font-size:1.7em;
}
select {
border:none;
background:transparent;
color: $comp_color;
}
/* Common Classes */
.hide {
display:none !important;
}
.inline {
margin-right:0.5em;
}
.button {
background: $comp_color;
color:white;
padding:0.1em 0.4em;
border-radius:3px;
cursor: pointer;
}
.button:hover, .button.clicked {
background: $ugc_color;
color:white;
}
.button.square {
padding:0.2em;
}
.button.no_bg {
background:none;
color: $comp_color;
}
.button.no_bg:hover, .button.no_bg.clicked {
background:inherit;
color: $ugc_color;
}
/* Font Awesome Classes */
.fa-film:before {
content: "\f008";
}
.fa-trailer:before {
content: "\f144";
}
.fa-director:before {
content: "\f007";
}
.fa-more:before {
content: "\f05a";
}
.fa-spinner {
color: $ugc_color;
font-size:2em;
&:before {
content: "\f110";
}
}
.fa-cinema:before {
content: "\f017";
}
.fa-close:before {
content: "\f057";
}
.fa-date:before {
content: "\f133";
}
.fa-power:before {
content: "\f1b0";
}
.fa-edito:before {
content: "\f0e7";
}
.fa-feedback:before {
content: "\f0b0";
}
.fa-settings:before {
content: "\f013";
}
.fa-ok:before {
content: "\f00c";
}
.fa-down:before {
content: "\f0d7";
}
.fa-on:before {
content: "\f205";
}
.fa-off:before {
content: "\f204";
}
.fa-on, .fa-off {
cursor: pointer;
}
/* Sections */
/* Section - Header */
header {
margin:0;
text-align: center;
}
header #nav {
text-align:left;
position: relative;
margin-bottom: 0.7em;
}
/*
header #nav .day:FIRST-CHILD {
padding-left: 0px;
}
*/
header #nav #btn_settings {
font-size:1.5em;
margin: 0;
padding: 0 0.25em 0 0;
position: absolute;
right: 0;
top: 0;
}
header .title {
color: $ugc_color;
display:inline-block;
padding-left:113px;
background:url(../images/logo_ugc.png) 0 50% no-repeat;
}
header .title time {
display:inline-block;
font-size: 2em;
padding:1.5em 0 1.5em 0.75em;
}
/* Section - Nav */
nav a {
color: $ugc_color;
&:hover, &.hidden {
color: $comp_color;
}
&.hidden:hover {
color: $ugc_color;
}
}
/* Section - Main */
main {
margin-top:1em;
}
#buffer {
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
width: 2em;
height: 2em;
margin: auto;
padding: 0px;
}
/* Section - Film */
.film {
position:relative;
display: inline-block;
background:white;
margin-bottom:1em;
overflow: hidden;
width:100%;
-webkit-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5);
-moz-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5);
box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5);
* {
transform: translate(0px, 0px);
}
img.bg {
position:absolute;
top:50%;
margin-top:-25%;
left:$poster_size;
right:0;
bottom:0;
opacity:0.2;
width:calc(100% - #{$poster_size});
}
.poster-container {
display: inline-block;
img.poster {
width: $poster_size;
z-index: 2;
vertical-align: top;
}
}
p {
margin: 0.5em 0;
}
.info {
z-index:2;
display: inline-block;
vertical-align:top;
padding:1em;
width: calc(100% - 2em - #{$poster_size});
.title {
margin: 0;
a.name {
font-weight: bold;
text-transform: uppercase;
}
}
.edito {
font-style: italic;
color:#777;
}
.film-info {
padding-left: calc((1.28571429em + 0.5em)/0.9);
font-size: 0.9em;
color: #555;
.director {
font-style: italic;
.more-info {
font-size: calc(1em/0.9);
margin-left: 0.5em;
vertical-align: -0.05em;
&:not(.fa-spin) {
cursor: pointer;
&:hover {
color: $ugc_color;
}
}
}
}
.film-details {
border-left: 2px solid #CCC;
padding-left: 0.5em;
p {
font-size: 0.8em;
color: #555;
}
}
}
.timetable {
margin-top:1em;
font-size: 0.8em;
p {
line-height: 2.0;
margin: 0;
}
.cinema {
margin-right:0.5em;
.fa {
font-size: 1.25em;
line-height: 0.7656249414em;
vertical-align: -14.06250352%;
}
}
.lang {
margin-right:0.5em;
}
}
}
}
/* Section - Feeback */
#feedback {
background:#EEE;
padding:1em;
font-size:0.6em;
margin-bottom: 1em;
color:#999;
}
#feedback p:FIRST-CHILD {
margin-top:0;
}
#feedback p:LAST-CHILD {
margin-bottom:0;
}
/* Section - Footer */
footer {
font-size: 0.8em;
margin: 1em 0 0 0;
color: $ugc_color;
}
/* Section - Settings */
.background {
display:none;
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
z-index: 3;
background:white;
opacity:0.5;
}
#settings {
display:none;
position:absolute;
top:0;
left:0;
right:0;
margin:1em;
padding:1em;
background:white;
-webkit-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5);
-moz-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5);
box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5);
z-index: 4;
h1 {
position:relative;
.button {
position:absolute;
right:0;
}
}
#buffer_settings {
text-align:center;
margin:2em auto;
}
ul.cinemas {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
list-style: none;
padding: 0;
margin: 0;
li {
cursor: pointer;
&:hover, &.include {
font-weight: bold;
}
}
}
.switches {
margin-top: 1em;
}
.switches .fa-on + span {
font-weight: bold;
}
}
/* Mobile Support */
@import 'small_screen';
@import 'big_screen';