rewrite layout rules
This commit is contained in:
parent
df9467d04f
commit
5dbd90be5d
|
@ -63,7 +63,7 @@
|
||||||
// Since the typical default browser font-size is 16px, that makes the calculation for grid size.
|
// Since the typical default browser font-size is 16px, that makes the calculation for grid size.
|
||||||
// If you want your base font-size to be different and not have it affect the grid breakpoints,
|
// If you want your base font-size to be different and not have it affect the grid breakpoints,
|
||||||
// set $rem-base to $base-font-size and make sure $base-font-size is a px value.
|
// set $rem-base to $base-font-size and make sure $base-font-size is a px value.
|
||||||
// $base-font-size: 100%;
|
$base-font-size: 13px;
|
||||||
|
|
||||||
// The $base-font-size is 100% while $base-line-height is 150%
|
// The $base-font-size is 100% while $base-line-height is 150%
|
||||||
// $base-line-height: 150%;
|
// $base-line-height: 150%;
|
||||||
|
|
|
@ -48,50 +48,18 @@
|
||||||
|
|
||||||
@media #{$medium-up}
|
@media #{$medium-up}
|
||||||
|
|
||||||
|
|
||||||
|
// layout magic http://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/
|
||||||
.wrapper-main
|
.wrapper-main
|
||||||
width: grid-calc(22, 24)
|
overflow: hidden
|
||||||
margin: auto
|
& > div:first-child:nth-last-child(2)
|
||||||
|
|
||||||
#auth
|
|
||||||
#main
|
|
||||||
float: none
|
|
||||||
|
|
||||||
#profile
|
|
||||||
#main
|
|
||||||
width: grid-calc(18, 24)
|
width: grid-calc(18, 24)
|
||||||
float: left
|
float: left
|
||||||
#left
|
|
||||||
width: grid-calc(24, 24)
|
& > div:first-child:nth-last-child(2) ~ div
|
||||||
#right
|
|
||||||
width: grid-calc(6, 24)
|
width: grid-calc(6, 24)
|
||||||
float: right
|
float: right
|
||||||
|
|
||||||
.pro,
|
|
||||||
#profile.pro
|
|
||||||
.wrapper-main
|
|
||||||
overflow: auto
|
|
||||||
width: grid-calc(24, 24)
|
|
||||||
clear: both
|
|
||||||
#main
|
|
||||||
width: grid-calc(18, 24)
|
|
||||||
float: left
|
|
||||||
overflow: hidden
|
|
||||||
#right
|
|
||||||
width: grid-calc(6, 24)
|
|
||||||
float: right
|
|
||||||
|
|
||||||
.pro.maximized,
|
|
||||||
#profile.pro.maximized
|
|
||||||
.wrapper-main
|
|
||||||
width: grid-calc(24, 24)
|
|
||||||
clear: both
|
|
||||||
#main
|
|
||||||
width: grid-calc(24, 24)
|
|
||||||
float: none
|
|
||||||
overflow: hidden
|
|
||||||
#right
|
|
||||||
width: 0
|
|
||||||
|
|
||||||
|
|
||||||
@media #{$large-up}
|
@media #{$large-up}
|
||||||
#left
|
#left
|
||||||
|
@ -103,39 +71,8 @@
|
||||||
width: grid-calc(19, 24)
|
width: grid-calc(19, 24)
|
||||||
float: left
|
float: left
|
||||||
margin-left: grid-calc(5, 24)
|
margin-left: grid-calc(5, 24)
|
||||||
|
overflow: visible
|
||||||
|
|
||||||
#profile
|
|
||||||
#left
|
|
||||||
width: grid-calc(5, 24)
|
|
||||||
#main
|
|
||||||
width: grid-calc(15, 24)
|
|
||||||
float: left
|
|
||||||
#right
|
|
||||||
width: grid-calc(4, 24)
|
|
||||||
|
|
||||||
.pro,
|
|
||||||
#profile.pro
|
|
||||||
.wrapper-main
|
|
||||||
width: grid-calc(19, 24)
|
|
||||||
float: right
|
|
||||||
#main
|
|
||||||
width: grid-calc(19, 24)
|
|
||||||
float: left
|
|
||||||
#right
|
|
||||||
width: grid-calc(5, 24)
|
|
||||||
float: right
|
|
||||||
|
|
||||||
.pro.maximized,
|
|
||||||
#profile.pro.maximized
|
|
||||||
.wrapper-main
|
|
||||||
overflow: auto
|
|
||||||
width: grid-calc(19, 24)
|
|
||||||
float: right
|
|
||||||
#main
|
|
||||||
width: grid-calc(24, 24)
|
|
||||||
float: none
|
|
||||||
#right
|
|
||||||
width: 0
|
|
||||||
|
|
||||||
.travis-lint
|
.travis-lint
|
||||||
background-color: $travis-lint-bg
|
background-color: $travis-lint-bg
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
* Footer on the dashboard
|
* Footer on the dashboard
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
a
|
||||||
|
color : $color-link
|
||||||
|
text-decoration : none
|
||||||
|
|
||||||
footer
|
footer
|
||||||
padding : 20px 0
|
padding : 20px 0
|
||||||
background-color : $footer-bg-color
|
background-color : $footer-bg-color
|
||||||
|
@ -10,6 +14,10 @@ footer
|
||||||
line-height : 22px
|
line-height : 22px
|
||||||
margin-top : -334px /* sticky footer */
|
margin-top : -334px /* sticky footer */
|
||||||
|
|
||||||
|
a
|
||||||
|
display : block
|
||||||
|
color : $footer-color
|
||||||
|
|
||||||
.wrapper
|
.wrapper
|
||||||
padding-bottom: 334px
|
padding-bottom: 334px
|
||||||
min-height: 100%
|
min-height: 100%
|
||||||
|
@ -53,11 +61,6 @@ footer a:hover,
|
||||||
footer a:active
|
footer a:active
|
||||||
text-decoration : underline
|
text-decoration : underline
|
||||||
|
|
||||||
a
|
|
||||||
text-decoration : none
|
|
||||||
display : block
|
|
||||||
color : $footer-color
|
|
||||||
|
|
||||||
.status-circle
|
.status-circle
|
||||||
background : $pass-color
|
background : $pass-color
|
||||||
display : inline-block
|
display : inline-block
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
padding: 0 0 0 10px
|
padding: 0 0 0 10px
|
||||||
color: $color-text
|
color: $color-text
|
||||||
font-size: $font-size-small
|
font-size: $font-size-small
|
||||||
// @include box-sizing(border-box)
|
|
||||||
border: 0
|
border: 0
|
||||||
background: $color-bg-input inline-image('ui/search.svg') no-repeat 95%
|
background: $color-bg-input inline-image('ui/search.svg') no-repeat 95%
|
||||||
background-size: 3%
|
background-size: 3%
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
|
|
||||||
h3
|
h3
|
||||||
height: 19px
|
height: 19px
|
||||||
padding-bottom: 35px
|
padding-bottom: 50px
|
||||||
line-height: 19px
|
line-height: 19px
|
||||||
|
color: $color-text
|
||||||
|
|
||||||
img
|
img
|
||||||
float: left
|
float: left
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
margin-top: 5px
|
margin-top: 5px
|
||||||
|
|
||||||
#hooks, #unadministerable-hooks
|
#hooks, #unadministerable-hooks
|
||||||
|
|
||||||
|
@include resetul
|
||||||
|
|
||||||
.travis-switch
|
.travis-switch
|
||||||
font-size: 10px
|
font-size: 10px
|
||||||
margin-top: 10px
|
margin-top: 10px
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="wrapper-main">
|
<div class="wrapper-main">
|
||||||
<main id="main" role="main">
|
<div id="main" role="main">
|
||||||
{{render "flash"}}
|
{{render "flash"}}
|
||||||
{{yield}}
|
{{yield}}
|
||||||
</main>
|
</div>
|
||||||
{{#if config.pro}}
|
{{#if config.pro}}
|
||||||
<aside id="right">
|
<div id="right">
|
||||||
{{render "sidebar"}}
|
{{render "sidebar"}}
|
||||||
</aside>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="wrapper-main">
|
<div class="wrapper-main">
|
||||||
<main id="main" role="main">
|
<div id="main" role="main">
|
||||||
{{render "flash"}}
|
{{render "flash"}}
|
||||||
{{yield}}
|
{{yield}}
|
||||||
</main>
|
</div>
|
||||||
|
|
||||||
<aside id="right">
|
<div id="right">
|
||||||
<div id="slider" {{action "toggle" target=slider}}>
|
<div id="slider" {{action "toggle" target=slider}}>
|
||||||
<div class='icon'></div>
|
<div class='icon'></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
If you need help <a href="http://stackoverflow.com/questions/ask?tags=travis-ci">ask a question</a> or hop on <a href="irc://irc.freenode.net/#travis">#travis</a> on irc.freenode.net
|
If you need help <a href="http://stackoverflow.com/questions/ask?tags=travis-ci">ask a question</a> or hop on <a href="irc://irc.freenode.net/#travis">#travis</a> on irc.freenode.net
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside id="left">
|
<aside id="left">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user