Files
grecia/app/assets/stylesheets/debates.scss
2015-08-04 13:25:00 +02:00

668 lines
12 KiB
SCSS

// Table of Contents
//
// 01. Variables
// 01.1. Fonts
// 01.2. Colors
// 02. Global styles
// 03. Header
// 04. Footer
// 05. Debates
// 05.1. Debates Index
// 05.2. Debates Show
// 06. Comments
// 07. Tags
// 08. Login and Sign Up
// 08.1. Login
// 08.2. Sign Up
//
// 01. Variables
// - - - - - - - - - - - - - - - - - - - - - - - - -
// 01.1. Fonts
// - - - - - - - - - - - -
$font-family-sans-serif: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$line-height: rem-calc(24);
// 01.2. Colors
// - - - - - - - - - - - -
$background: #E9E9E9;
$border: #DEE0E3;
$brand: #0077B9;
$debates: #008CCF;
$comments-bg: #F1F1F1;//FAF9F8;
$comments-info: #A5B2B9;
$comments-text: #3F4549;
$header-color: #292B33;
$link: #0077B9;
$tags-bg: #FAFAFA;
$tags-border: #F0F0F0;
$tags-color: #8F8F8F;
$text-color: #222222;
$text-medium: #999999;
$text-light: #A3A6AD;
$votes: #A0AEC4;
$votes-background: #F0F0F0;
$votes-border: #D8D8D8;
$votes-unlike: #EF8585;
$votes-like: #7BD2A8;
$votes-text: #54627C;
// 02. Global styles
// - - - - - - - - - - - - - - - - - - - - - - - - -
*, html {
margin: 0;
padding: 0;
}
body {
background: white;
font-family: $font-family-sans-serif;
font-size: rem-calc(13);
font-weight: normal;
text-rendering: optimizeLegibility;
}
.row {
max-width: 1170px;
}
.row-full {
max-width: 100% !important;
}
.clear {
clear: both;
}
.inline-block {
display: inline-block;
}
::selection, ::-moz-selection {
background: $brand;
color: white;
}
// 03. Header
// - - - - - - - - - - - - - - - - - - - - - - - - -
header {
background: url('home_header_bg.jpg');
background-position: 50% 50%;
background-size: cover;
min-height: $line-height*20;
&.results {
min-height: $line-height*8;
}
h1 {
color: white;
font-size: rem-calc(45);
font-weight: bolder;
line-height: $line-height*3;
margin: $line-height 0 0 0;
padding: 0;
}
h2 {
@extend h1;
font-size: rem-calc(24);
font-weight: normal;
line-height: $line-height*2;
margin: 0;
}
.button {
color: white;
margin-top: $line-height*2;
}
}
.contain-to-grid {
background: none;
}
.top-bar {
background: white;
color: $header-color;
height: $line-height*4;
max-width: 1170px !important;
.name a {
color: black;
font-family: 'Lato';
font-size: rem-calc(36);
font-weight: lighter;
line-height: $line-height*4;
padding-left: 0;
span {
color: $brand;
font-size: rem-calc(24);
font-weight: normal;
}
img {
margin-right: $line-height/2;
}
}
}
.top-bar-section {
li:not(.has-form) a:not(.button) {
background: white;
color: $brand;
line-height: $line-height*4;
}
li.active:not(.has-form) a:not(.button) {
height: $line-height*4;
line-height: $line-height*4;
}
}
.top-links {
color: white;
font-size: rem-calc(14);
height: $line-height*2;
padding: $line-height/2 0;
a {
color: white;
}
}
// 04. Footer
// - - - - - - - - - - - - - - - - - - - - - - - - -
// 05. Debates
// - - - - - - - - - - - - - - - - - - - - - - - - -
aside {
.button {
margin-top: $line-height;
}
}
// 05.1. Debates Index
// - - - - - - - - - - - -
.debates-list {
margin-top: $line-height;
}
.debates-featured {
.debate {
.panel {
background: white;
box-shadow: 0 2px 0 rgba(0,0,0,.1);
padding: rem-calc(20) rem-calc(20) 0 rem-calc(20);
.debate-content {
min-height: $line-height*11;
}
.label {
background: none;
clear: both;
color: $debates;
display: block;
font-weight: bold;
text-transform: uppercase;
padding: 0;
}
.icon-quote-right {
color: $debates;
font-size: rem-calc(30);
line-height: $line-height;
position: absolute;
right: $line-height;
top: $line-height/2;
}
.icon-chat-bubble-two {
vertical-align: middle;
}
h3 {
margin: rem-calc(12) 0 0 0;
font-weight: bold;
a {
clear: both;
color: $header-color;
display: block;
font-size: rem-calc(16);
line-height: $line-height;
}
}
.debate-info {
color: $text-light;
font-weight: lighter;
margin-bottom: 0;
.icon-chat-bubble-two {
font-size: rem-calc(16);
}
}
p {
color: $text-color;
font-size: rem-calc(13);
line-height: $line-height;
margin-bottom: $line-height/2;
}
}
.votes {
border-top: 1px solid $votes-border;
padding: $line-height/2 0;
.icon-like {
background: $votes-background;
border: 1px solid $votes-border;
border-radius: rem-calc(3);
color: $votes;
display: inline-block;
font-size: rem-calc(30);
line-height: rem-calc(30);
padding: rem-calc(6) rem-calc(12);
//when active => color: $votes-like;
&:hover {
background: white;
color: $brand;
}
}
.icon-unlike {
background: $votes-background;
border: 1px solid $votes-border;
border-radius: rem-calc(3);
color: $votes;
display: inline-block;
font-size: rem-calc(30);
line-height: rem-calc(30);
padding: rem-calc(6) rem-calc(12);
//when active => color: $votes-unlike;
&:hover {
background: white;
color: $brand;
}
}
.like {
line-height: rem-calc(48);
vertical-align: super;
span {
color: $votes-text;
display: inline-block;
font-size: rem-calc(18);
font-weight: bold;
line-height: $line-height*2;
padding-left: rem-calc(6);
vertical-align: top;
}
}
.unlike {
@extend .like;
}
.total-votes {
color: $votes-text;
line-height: $line-height*2;
}
.divider {
margin: 0 rem-calc(3);
}
}
}
}
.debates-index {
@extend .debates-featured;
.debate {
margin-bottom: rem-calc(6);
.panel {
border: 0;
box-shadow: none;
margin-bottom: 0;
padding: 0 rem-calc(6);
p {
text-align: justify;
}
.debate-content {
min-height: 0;
}
.icon-quote-right {
font-size: rem-calc(14);
position: initial;
vertical-align: bottom;
}
.label {
line-height: $line-height;
margin-right: rem-calc(5);
}
}
.votes {
border: 0;
margin-top: $line-height;
.like {
span {
color: $votes-text;
display: block;
font-size: rem-calc(18);
font-weight: bold;
line-height: $line-height*1.5;
}
}
}
}
}
// 05.2. Debates Show
// - - - - - - - - - - - -
.debate-show {
margin-top: $line-height;
padding: 0 rem-calc(12);
.back {
color: $text-light;
font-size: rem-calc(13);
line-height: $line-height;
}
.icon-angle-left {
@extend .back;
}
h1 {
clear: both;
font-size: rem-calc(24);
font-weight: bold;
line-height: $line-height*2;
margin: 0;
}
.debate-info {
clear: both;
color: $text-light;
font-weight: lighter;
line-height: $line-height*2;
text-align: justify;
.bullet {
color: $border;
}
p {
font-size: rem-calc(14);
line-height: $line-height;
margin-bottom: 0;
}
}
.author-photo {
border-radius: 2px;
display: inline-block;
height: 32px;
line-height: $line-height*2;
margin-right: $line-height/4;
vertical-align: middle;
width: 32px;
}
.author {
color: $text-color;
font-weight: bold;
}
.votes {
padding-top: 0;
@media (min-width: 480px) {
padding-top: $line-height*1.5;
}
h3 {
border-bottom: 1px solid $border;
font-size: rem-calc(18);
margin: 0 0 $line-height 0;
text-transform: uppercase;
}
.icon-like {
background: $votes-background;
border: 1px solid $votes-border;
border-radius: rem-calc(3);
color: $votes;
display: inline-block;
font-size: rem-calc(30);
line-height: rem-calc(30);
padding: rem-calc(6) rem-calc(12);
//when active => color: $votes-like;
&:hover {
background: white;
color: $brand;
}
}
.icon-unlike {
background: $votes-background;
border: 1px solid $votes-border;
border-radius: rem-calc(3);
color: $votes;
display: inline-block;
font-size: rem-calc(30);
line-height: rem-calc(30);
padding: rem-calc(6) rem-calc(12);
//when active => color: $votes-unlike;
&:hover {
background: white;
color: $brand;
}
}
.like {
span {
color: $votes-text;
display: block;
font-size: rem-calc(18);
font-weight: bold;
line-height: $line-height*1.5;
}
}
.unlike {
@extend .like;
}
.total-votes {
color: $votes-text;
font-size: rem-calc(14);
line-height: $line-height;
}
.divider {
margin: 0 rem-calc(12);
}
}
.leave-comment {
display: inline-block;
margin-top: $line-height;
}
}
// 06. Comments
// - - - - - - - - - - - - - - - - - - - - - - - - -
.comments {
background: $comments-bg;
background-image: url('comments_divider.png');
background-repeat: repeat-x;
padding-top: $line-height;
padding-bottom: $line-height*4;
h2 {
margin: 0;
font-weight: bold;
}
.comment {
margin: $line-height/4 0;
p {
color: $comments-text;
font-size: rem-calc(15);
margin-bottom: 0;
}
a {
color: $comments-info;
}
.user-photo {
border-radius: 2px;
display: inline-block;
height: 32px;
line-height: $line-height*2;
margin-right: $line-height/4;
vertical-align: top;
width: 32px;
}
.comment-body {
margin-left: $line-height*1.6;
.reply {
font-size: rem-calc(12);
font-weight: lighter;
}
}
.comment-children {
border-left: 1px dotted $border;
margin-left: $line-height*1.6;
padding-left: $line-height/4;
@media only screen and (max-width: 40em) {
margin-left: $line-height/1.5;
}
}
.comment-info {
color: $comments-info;
font-size: rem-calc(13);
font-weight: lighter;
vertical-align: middle;
}
}
}
// 07. Tags
// - - - - - - - - - - - - - - - - - - - - - - - - -
.tags {
a {
background: $tags-bg;
border: 1px solid $tags-border;
border-radius: 3px;
color: $tags-color;
display: inline-block;
font-size: rem-calc(13);
margin-bottom: rem-calc(8);
margin-right: rem-calc(8);
padding: 0 rem-calc(6);
&:hover {
color: $link;
cursor: pointer;
background: #e5f1f8;
border: 1px solid $brand;
}
}
}
.tag-cloud {
@extend .tags;
h3 {
font-size: rem-calc(24);
font-weight: bold;
line-height: $line-height*2;
margin: 0;
}
a {
padding: $line-height/4 $line-height/3;
}
}
// 08. Login and Sign Up
// - - - - - - - - - - - - - - - - - - - - - - - - -
// 08.1. Login
// - - - - - - - - - - - -
.auth {
background: $background;
box-shadow: 0px -4px 5px $background;
min-height: $line-height*20;
.panel {
background: white;
margin-top: $line-height*2;
h1 {
font-size: rem-calc(30);
font-weight: bolder;
}
}
}