angular-cn/public/resources/css/layout/_layout.scss

227 lines
3.2 KiB
SCSS
Raw Normal View History

2015-02-28 00:06:18 -05:00
@import 'grids';
2015-03-02 00:34:32 -05:00
/*
* Base Layout Styles
*
*/
2015-02-24 09:38:30 -05:00
.l-left {
float: left;
}
.l-right {
float: right;
2015-02-25 10:15:46 -05:00
}
2015-04-06 09:41:08 -04:00
.l-relative,
.docs-content {
position: relative;
}
.l-absolute {
position: absolute;
}
.l-fixed {
position: fixed;
}
2015-02-25 10:15:46 -05:00
2015-03-02 00:34:32 -05:00
/*
* Pinned Layouts (fixed)
*
*/
.l-pinned-top {
position: fixed;
top: 0px;
left: 0px;
right: 0px;
}
.l-pinned-left {
position: fixed;
top: 0px;
left: 0px;
bottom: 0px;
}
2015-02-25 10:15:46 -05:00
/*
2015-03-02 00:34:32 -05:00
* Page & Element Specific Layouts
2015-02-25 10:15:46 -05:00
*
*/
.l-offset-nav {
padding-top: 56px;
}
2015-02-26 09:45:32 -05:00
.l-offset-side-nav {
2015-03-11 23:21:59 -04:00
padding-left: 232px;
2015-03-05 00:00:46 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
padding-left: 0px;
2015-03-11 20:56:08 -04:00
padding-top: 104px;
2015-03-05 00:00:46 -05:00
}
2015-02-26 09:45:32 -05:00
}
.l-offset-page-header {
margin-left: $unit * 6 !important;
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
margin: 0px !important;
}
}
2015-02-25 10:15:46 -05:00
.l-content {
padding: ($unit * 8) ($unit * 12);
2015-12-15 03:31:35 -05:00
max-width: 1200px;
margin: 0 auto;
2015-03-04 10:16:02 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
2015-03-05 00:51:01 -05:00
padding: ($unit * 3) ($unit * 2);
}
}
.l-content-small {
padding: $unit * 6;
2015-12-15 03:31:35 -05:00
max-width: 1100px;
margin: 0;
2015-03-05 00:51:01 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
padding: ($unit * 3) ($unit * 2);
2015-03-04 10:16:02 -05:00
}
2015-02-25 10:15:46 -05:00
}
2015-02-26 09:45:32 -05:00
.l-content-block {
margin: 0px 0px ($unit * 8) 0px;
}
2015-03-02 00:34:32 -05:00
.l-main-section {
margin: 0px 0px ($unit * 8) 0px;
}
.l-sub-section {
margin: 0px 0px ($unit * 4) 0px;
padding: ($unit * 4) ($unit * 6);
background: lighten($mist, 3%);
border-left: ($unit / 2) solid $cactus;
border-radius: ($unit / 2);
2015-03-05 00:51:01 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
padding: ($unit * 3) ($unit * 1);
}
2015-05-19 11:56:34 -04:00
code {
background: $fog;
color: $steel;
}
2015-03-02 00:34:32 -05:00
&:last-child {
margin: 0;
}
}
.l-main-section,
.l-main-section {
p:last-child {
margin: 0;
}
}
/*
* Margins & Padding
*
*/
@for $i from 0 through 10 {
2015-02-28 15:46:00 -05:00
.l-space-#{$i} {
margin: $i * 8px;
}
.l-space-top-#{$i} {
margin-top: $i * 8px;
}
2015-02-28 00:21:20 -05:00
.l-space-bottom-#{$i} {
margin-bottom: $i * 8px;
}
2015-02-28 15:46:00 -05:00
.l-space-left-#{$i} {
margin-left: $i * 8px;
}
.l-space-right-#{$i} {
margin-right: $i * 8px;
}
.l-pad-#{$i} {
padding: $i * 8px;
}
.l-pad-top-#{$i} {
padding-top: $i * 8px;
}
.l-pad-bottom-#{$i} {
padding-bottom: $i * 8px;
}
.l-pad-left-#{$i} {
padding-left: $i * 8px;
}
.l-pad-right-#{$i} {
padding-right: $i * 8px;
}
2015-02-28 00:21:20 -05:00
}
2015-02-25 10:15:46 -05:00
/*
* Layer Order (z-index)
*
*/
.l-layer-1 {
z-index: $layer-1;
}
.l-layer-2 {
z-index: $layer-2;
}
.l-layer-3 {
z-index: $layer-3;
}
.l-layer-4 {
z-index: $layer-4;
}
.l-layer-5 {
z-index: $layer-5;
}
.l-layer-6 {
z-index: $layer-6;
}
.l-layer-7 {
z-index: $layer-7;
}
.l-layer-8 {
z-index: $layer-8;
}
.l-layer-9 {
z-index: $layer-9;
}
.l-layer-10 {
z-index: $layer-10;
2015-03-02 00:34:32 -05:00
}