body {
background: #F0F0F0;
font-family: 'Open Sans', helvetica, sans-serif;
}
input[type=submit] {
background: #333;
border: 1px solid #E6C2A1;
color: #F0F0F0;
}
footer {
background: #332d29;
color: #666;
}
/* COLORS DEFINITIONS */
$smoke: #F0F0F0;
$lightBrow: #E6C2A1;
$darkBrown: #332d29;
$grey: #666;
$dark: #333;
/* FONT DEFINITIONS */
$baseFontFamily: 'Open Sans', helvetica, sans-serif;
body {
background: $white;
font-family: $baseFontFamily;
}
input[type=submit] {
background: $dark;
border: 1px solid $lightBrown;
color: $smoke;
}
footer {
background: $darkBrown;
color: $grey;
}
section .container {
background: #333;
}
section .container #home {
padding: 10px 12px;
}
section .container #home div h1 {
background: whiteSmoke;
}
section .container #home div span,
section .container #home div p {
color: #333;
}
section .container {
background: #333;
#home {
padding: 10 12px;
div {
h1 {
background: whiteSmoke;
}
span, p {
color: #333;
}
}
}
}
SCSS
// _variables.scss
$lightSmoke: rgb(245, 245, 245);
// _header.scss
header {
background: $lightSmoke;
}
// main.scss
@include "variables";
.container {
@include "header";
}
.options .share-button{
background-image: url(/static/img/icon-share.png);
background-image: url(/static/img/icon-share.svg);
background-repeat: no-repeat;
background-position: top center;
display: inline-block;
padding-top: 60px;
height: 80px;
}
.options .add-to-collection{
background-image: url(/static/img/icon-add.png);
background-image: url(/static/img/icon-add.svg);
background-repeat: no-repeat;
background-position: top center;
display: inline-block;
padding-top: 60px;
height: 80px;
}
.options .delete-button{
background-image: url(/static/img/icon-delete.png);
background-image: url(/static/img/icon-delete.svg);
background-repeat: no-repeat;
background-position: top center;
display: inline-block;
padding-top: 60px;
height: 80px;
}
@mixin option-button ($backgroundPng, $backgroundSvg) { background-image: url($backgroundPng); background-image: url($backgroundSvg); background-repeat: no-repeat; background-position: top center; display: inline-block; padding-top: 60px; height: 80px; } .options .share-button{ @include option-button(/static/img/icon-share.png, /static/img/icon-share.svg);
} .options .add-to-collection{ @include option-button(/static/img/icon-add.png, /static/img/icon-add.svg); } .options .delete-button{ @include option-button(/static/img/icon-delete.png, /static/img/icon-delete.svg); }
.options .share-button,
.options .add-to-collection,
.options .delete-button {
background-repeat: no-repeat;
background-position: top center;
display: inline-block;
padding-top: 60px;
height: 80px;
}
.options .share-button{
background-image: url(/static/img/icon-share.png);
background-image: url(/static/img/icon-share.svg);
}
.options .add-to-collection{
background-image: url(/static/img/icon-add.png);
background-image: url(/static/img/icon-add.svg);
}
.options .delete-button{
background-image: url(/static/img/icon-delete.png);
background-image: url(/static/img/icon-delete.svg);
}
.option-icon-base {
background-repeat: no-repeat;
background-position: top center;
display: inline-block;
padding-top: 60px;
height: 80px;
}
.options .share-button{
@extend .option-icon-base;
background-image: url(/static/img/icon-share.png);
background-image: url(/static/img/icon-share.svg);
}
.options .add-to-collection{
@extend .option-icon-base;
background-image: url(/static/img/icon-add.png);
background-image: url(/static/img/icon-add.svg);
}
.options .delete-button{
@extend .option-icon-base;
background-image: url(/static/img/icon-delete.png);
background-image: url(/static/img/icon-delete.svg);
}
@mixin backgroundImage($imagePng, $imageSvg) {
background-image: url($imagePng);
background-image: url($imageSvg);
}
.option-icon-base {
background-repeat: no-repeat;
background-position: top center;
display: inline-block;
padding-top: 60px;
height: 80px;
}
.options .share-button{
@extend .option-icon-base;
@include backgroundImage(/static/img/icon-share.png, /static/img/icon-share.svg);
}
.options .add-to-collection{
@extend .option-icon-base;
@include backgroundImage(/static/img/icon-add.png, /static/img/icon-add.svg);
}
.options .delete-button{
@extend .option-icon-base;
@include backgroundImage(/static/img/icon-delete.png, /static/img/icon-delete.svg);
}
.container {
width: 100%;
}
article[role="main"] {
float: left;
width: 62.5%;
}
aside[role="complimentary"] {
float: right;
width: 31.25%;
}
.container { width: 100%; }
article[role="main"] {
float: left;
width: 600px / 960px * 100%;
}
aside[role="complimentary"] {
float: right;
width: 300px / 960px * 100%;
}