scratchx/sass/scratchx.scss

198 lines
3.9 KiB
SCSS
Raw Normal View History

2015-05-01 09:39:03 -04:00
@import "bourbon/bourbon";
@import "base/grid-settings";
@import "neat/neat";
@import "base/base";
a[href=""] {
outline: 1px solid red;
}
body > main {
> header,
> article > header,
> article > section,
> footer {
> div {
@include outer-container;
2015-05-05 13:06:47 -04:00
> div {
@include row();
.main {
@include span-columns(8);
}
nav {
2015-05-05 13:07:05 -04:00
border-left: 1px solid $base-border-color;
2015-05-05 13:06:47 -04:00
@include span-columns(4);
2015-05-05 13:07:05 -04:00
@include pad(0 0 0 2 * $gutter)
2015-05-05 13:06:47 -04:00
}
}
}
}
}
2015-05-05 13:06:47 -04:00
body {
> main > article,
> section {
display: none;
}
2015-05-05 16:53:44 -04:00
#home {
2015-05-05 13:06:47 -04:00
display: block;
}
}
#dialogs, #modal-dialogs .modal-inner {
2015-05-05 13:06:47 -04:00
@include row();
dialog {
@include span-columns(4);
p {
text-align: center;
}
2015-05-05 13:06:47 -04:00
}
}
#modal-dialogs .modal-inner {
background-color: transparent;
}
2015-05-05 13:06:47 -04:00
.extension-file {
section:first-child {
/* Add a border equal to the number of featured extensions - 1 */
border-top: 2px solid $alt-background-color;
position: relative;
padding-top: 18 * $vertical-base;
@include icon(before, upload, circular, true, 8*$vertical-base) {
background-color: $green;
color: $white;
top: 2 * $vertical-base;
}
}
button {
background-color: $green;
color: $alt-font-color;
}
}
.extension-url {
section:first-child {
/* Add a border equal to the number of featured extensions - 1 */
border-top: 2px solid $alt-background-color;
position: relative;
padding-top: 18 * $vertical-base;
@include icon(before, link, circular, true, 8*$vertical-base) {
background-color: $blue;
color: $white;
top: 2 * $vertical-base;
}
}
}
.extension-feature {
section:first-child {
h2 {
margin-top: $vertical-base;
}
}
section:last-child {
padding: 0px;
}
ul {
li {
border-bottom: 1px solid $light-gray;
padding: 2 * $vertical-base;
2015-05-06 11:07:48 -04:00
a {
position: relative;
display: block;
@include icon(before, right-arrow) {
color: $blue;
position: absolute;
right: 0;
top: 50%;
margin-top: -.5em;
font-size: 1.5em;
}
}
2015-05-05 13:06:47 -04:00
h3 {
font-size: 1.125 * $base-font-size;
font-weight: 600;
margin-bottom: $vertical-base;
}
p {
text-align: left;
margin: 0;
color: $base-font-color;
}
}
}
}
footer {
2015-05-05 13:06:47 -04:00
@include pad(5 * $vertical-base 0);
section {
@include span-columns(4);
@include shift(1);
}
nav {
@include span-columns(2);
&:first-of-type {
@include shift(1);
}
2015-05-05 13:06:47 -04:00
h2 {
line-height: 1.5;
margin-bottom: 0;
}
}
}
footer, main header {
background-color: $alt-background-color;
2015-05-05 13:06:47 -04:00
color: $alt-font-color;
}
body > main > header {
@include row();
height: $vertical-base * 10;
line-height: $vertical-base * 10;
}
body > main > article {
padding-top: $vertical-base * 10;
margin-top: -$vertical-base * 10;
}
2015-05-05 13:06:47 -04:00
.scratchx-logo {
float: left;
span {
@include hide-text;
display: inline-block;
background: url(../images/scratchx-logo.png) left center no-repeat;
width: 192px;
height: $vertical-base * 10;
}
}
.main-nav {
float: right;
ul, li {
display: inline-block;
}
li {
margin-left: 50px;
}
}
@import "home";
2015-05-08 10:06:50 -04:00
@import "editor";