Files
ugc/style/ugc.scss

395 lines
5.0 KiB
SCSS
Executable File

@CHARSET "UTF-8";
/* External librairies */
@import 'normalize';
@import 'font-awesome';
/* Variables */
$poster_size:175px;
/* 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:#08288B;
}
h1 {
color:#08288B;
margin:0 0 0.8em 0;
}
h2 {
margin:0 0 1em 0;
font-size:1.7em;
}
select {
border:none;
background:transparent;
color:#666;
}
/* Common Classes */
.hide {
display:none !important;
}
.inline {
margin-right:0.5em;
}
.button {
background:#666;
color:white;
padding:0.1em 0.4em;
border-radius:3px;
cursor: pointer;
}
.button:hover, .button.clicked {
background:#08288B;
color:white;
}
.button.square {
padding:0.2em;
}
.button.no_bg {
background:none;
color:#666;
}
.button.no_bg:hover, .button.no_bg.clicked {
background:inherit;
color:#08288B;
}
/* Font Awesome Classes */
.fa-film:before {
content: "\f008";
}
.fa-trailer:before {
content: "\f144";
}
.fa-director:before {
content: "\f007";
}
.fa-spinner {
color:#08288B;
font-size:2em;
}
.fa-spinner:before {
content: "\f110";
}
.fa-cinema:before {
content: "\f017";
}
.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:#08288B;
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: #08288B;
&.hidden {
color:#666;
}
&.hidden:hover {
color: #08288B;
}
}
/* 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);
}
.film * {
transform: translate(0px, 0px);
}
.film img.bg {
position:absolute;
top:50%;
margin-top:-25%;
left:$poster_size;
right:0;
bottom:0;
opacity:0.2;
width:calc(100% - #{$poster_size});
}
.film .poster-container {
display: inline-block;
}
.film img.poster {
width:$poster_size;
z-index:2;
vertical-align: top;
}
.film .info {
z-index:2;
display: inline-block;
vertical-align:top;
padding:1em;
width: calc(100% - 2em - #{$poster_size});
}
.film p {
margin:0.5em 0;
}
.film .title {
margin-top:0;
}
.film .title a.name {
font-weight: bold;
}
.film .edito {
font-style: italic;
color:#777;
}
.film .director {
color: #555;
}
.film .timetable {
margin-top:1em;
font-size: 0.8em;
}
.film .timetable p {
line-height: 2.0;
margin: 0;
}
.film .timetable .cinema {
margin-right:0.5em;
}
.film .timetable .cinema .fa {
font-size: 1.25em;
line-height: 0.7656249414em;
vertical-align: -14.06250352%;
}
.film .timetable .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:#08288B;
}
/* 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;
}
#settings h1 {
position:relative;
}
#settings h1 .button {
position:absolute;
right:0;
}
#settings #buffer_settings {
text-align:center;
margin:2em auto;
}
#settings ul.cinemas {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
list-style: none;
padding:0;
margin:0;
}
#settings ul.cinemas li {
cursor: pointer;
}
#settings ul.cinemas li.include {
font-weight: bold;
}
#settings .switches {
margin-top: 1em;
}
#settings .switches .fa-on + span {
font-weight: bold;
}
/* Mobile Support */
@import 'small_screen';
@import 'big_screen';