app/assets/stylesheets/leaderboard.css.scss
// Place all the styles related to the Leaderboard controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
body{
font-family: 'Oxygen', arial, sans-serif;
background-color: #F5F5F5;
}
header{
background-color: #ffffff;
line-height: 80px;
border-bottom: 1px solid #e8e8e8;
padding: 0 20px;
#logo{
float: left;
height: 82px;
border-right: 1px solid #e8e8e8;
padding-right: 20px;
padding-top: 16px;
h1{
background-image: asset-url('pecas.svg');
background-repeat: no-repeat;
width: 155px;
height: 40px;
text-indent: -9999px;
background-size: 100%;
}
h2{
line-height: initial;
color: #8C8C8C;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
}
.menu{
display: inline-block;
&.menu{
font-weight: 700;
li{
display: inline-block;
min-width: 80px;
text-align: center;
&:after{
content:'';
height: 2px;
background-color: #000000;
width: 0%;
display: block;
}
&:hover{
opacity: 0.8;
}
a{
color: #36C7D0;
&:hover{
text-decoration: none;
}
}
&.active{
&:after{
width: 100%;
background-color: #36C7D0;
}
}
}
}
}
}
.pagination {
margin: 0;
li{
a, span{
color: #47BEC6;
}
}
}
.wrapper{
max-width: 960px;
margin: auto;
text-align: left;
padding-top: 40px;
.board{
margin: 20px;
h1{
background-color: #80D9DF;
display: inline-block;
padding: 10px;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topleft: 4px;
-moz-border-radius-topright: 4px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
strong{
font-weight: 700;
}
}
.board-table{
background: #ffffff;
padding: 0;
-webkit-border-radius: 4px;
-webkit-border-top-left-radius: 0;
-moz-border-radius: 4px;
-moz-border-radius-topleft: 0;
border-radius: 4px;
border-top-left-radius: 0;
tr, td{
border: 0;
}
tr.title{
font-weight: 700;
}
tr.info{
td, th{
background-color: #D9F1F3;
border: 0;
}
}
tr.success {
td{
background-color: #80D9DF;
}
td.total{
text-align: right;
}
td {
font-weight: bold;
}
}
}
.table-striped>tbody>tr:nth-child(odd){
background-color: #ffffff;
}
}
}
@media screen and (max-width:768px){
header{
#logo{
float: none;
margin: auto;
text-align: center;
padding-right: 0;
border: 0;
h1{
margin: auto;
}
}
}
}
@media screen and (max-width:500px){
.wrapper{
.board{
h1{
display: block;
}
}
}
}