Fork-Awesome/assets/less/site.less

301 lines
5.5 KiB
Plaintext
Raw Normal View History

2012-06-05 03:33:52 +08:00
@import "twbs-203/bootstrap.less";
2012-03-07 11:15:45 +08:00
@import "mixins.less";
@import "variables.less";
2012-06-05 03:33:52 +08:00
@import "font-site.less";
2012-03-07 11:15:45 +08:00
@import "font-awesome.less";
// These accomodate navbar-fixed-top
#overview { padding-top: 60px; }
2012-06-05 03:33:52 +08:00
#new-icons, #all-icons, #examples, #integration, #code, #roadmap {
padding-top: 40px;
}
.navbar .brand {
padding: 11px 20px 9px;
color: @white;
}
.navbar-inner { .border-radius(0); }
.navbar .nav > li > a { padding: 12px 10px 9px; }
2012-06-05 03:33:52 +08:00
h1, h2, h3, h4, h5, h6 { font-family: @serifFontFamily; }
#iconCarousel {
2012-06-05 03:33:52 +08:00
a { color: @white; }
@size: 275px;
float: right;
width: @size * .9 + 20;
height: @size * .75;
margin-right: 10px;
margin-top: -20px;
font-size: @size;
text-align: center;
text-shadow: 2px 2px 3px @grayDarker;
.carousel-control {
top: @size + 5;
.square(23px);
border-width: 3px;
font-size: 17px;
line-height: 28px;
left: @size / 3 + 9;
&.right {
left: auto;
right: @size / 3 + 9;
}
2012-06-05 03:33:52 +08:00
}
}
2012-06-05 03:33:52 +08:00
//a[href^='http://'] {
// &:after {
// font-family: FontAwesome;
// content: "\0020 \f08e";
// &:hover {
// text-decoration: none;
// }
// }
//}
.hero-unit {
2012-06-05 03:33:52 +08:00
margin-bottom: 20px;
.border-radius(20px);
// #gradient > .radial( lighten(@red, 10%), @red);
background-color: @red;
&, h1 { color: @white; }
h1 {
font-size: 70px;
letter-spacing: -1px;
line-height: 1.2;
}
p {
margin-top: 10px;
margin-bottom: 15px;
font-size: 28px;
line-height: 34px;
}
text-shadow: 2px 2px 2px @grayDark;
ul {
margin-left: 50px;
li {
&.icon-large:before {
text-indent: -2em;
vertical-align: baseline;
}
font-size: 15px;
line-height: 30px;
text-shadow: 1px 1px 1px @grayDark;
}
}
a { color: #fffeb8; }
.btn-large {
.buttonBackground(@white, #bbb);
font-family: @serifFontFamily;
color: @grayDark;
margin-top: 15px;
font-weight: bold;
font-size: 18px;
padding: 13px 22px;
padding-left: 24px + 44;
margin-right: 10px;
.border-radius(6px);
position: relative;
text-align: left;
i {
position: absolute;
// top: 13px;
left: 22px;
font-size: 46px;
}
&.btn-github {
padding-left: 30px + 44;
}
2012-06-05 03:33:52 +08:00
}
.hero-content {
width: 500px;
text-align: center;
}
}
.btn-primary, .hero-unit .btn-primary {
2012-06-05 03:33:52 +08:00
.buttonBackground(#fffeb8, #c49c38);
*background-color: #e7d785;
color: @grayDark;
text-shadow: 0 -1px 0 rgba(255,255,255,.25);
&:hover {
text-shadow: 0 -1px 0 rgba(255,255,255,.25);
2012-06-05 03:33:52 +08:00
color: @grayDark;
}
}
2012-06-05 03:33:52 +08:00
#social-buttons {
margin-bottom: 30px;
text-align: center;
.btn {
font-family: @serifFontFamily;
font-weight: bold;
font-size: @baseFontSize;
padding: 4px 10px 1px;
line-height: @baseLineHeight;
}
.count.btn {
font-family: @sansFontFamily;
font-weight: normal;
.buttonBackground(@white, @white);
}
.watch, .fork {
margin-right: 30px;
}
}
.the-icons {
2012-06-05 03:33:52 +08:00
list-style-type: none;
margin-left: 0;
li {
cursor: pointer;
line-height: 42px;
height: 42px;
padding-left: 12px;
.border-radius(12px);
[class^="icon-"],
[class*=" icon-"] {
width: 32px;
font-size: 16px;
}
&:hover {
background-color: lighten(@errorBackground, 6%);
[class^="icon-"], [class*=" icon-"] { *font-size: 24px; *vertical-align: middle; }
[class^="icon-"]:before,
[class*=" icon-"]:before {
font-size: 24px;
vertical-align: middle;
}
}
2012-06-05 03:33:52 +08:00
}
}
#all-icons, #new-icons {
h3 {
margin-top: 10px;
}
}
#why {
2012-06-05 03:33:52 +08:00
.row {
margin-bottom: 20px;
}
.icon-large {
font-size: 22px;
text-align: center;
padding-right: 4px;
}
}
#examples {
2012-06-05 03:33:52 +08:00
.btn-toolbar {
margin-top: 0;
margin-bottom: 20px;
}
}
#integration {
2012-06-05 03:33:52 +08:00
.row { margin-bottom: 40px; }
}
#examples, #code {
2012-06-05 03:33:52 +08:00
form {
margin-bottom: 25px;
input {
line-height: 1; // fixes a safari placeholder alignment issue
}
2012-06-05 03:33:52 +08:00
}
.rating {
unicode-bidi: bidi-override;
direction: rtl;
font-size: 30px;
span.star {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
display: inline-block;
&:hover {
cursor: pointer;
}
}
span.star:before {
content: "\f006"; // empty star
padding-right: 5px;
color: @grayLight;
}
span.star:hover:before, span.star:hover ~ span.star:before {
content: "\f005"; // solid star
color: #e3cf7a;
}
}
}
.modal {
2012-06-05 03:33:52 +08:00
width: 560px;
max-height: 600px;
.modal-body {
*overflow: hidden; // ie7 fix
max-height: none;
padding-bottom: 0;
.row { margin-bottom: 15px; }
div.thumbnail {
text-align: center;
div { margin-bottom: 5px; }
}
.icon6 {
width: 325px;
> div.thumbnail > div { .icon-size(340px); }
}
.icon5 {
width: 185px;
> div.thumbnail > div { .icon-size(180px); }
}
.icon4 {
width: 215px;
> div.thumbnail > div { .icon-size(100px); }
}
.icon3 {
width: 120px;
> div.thumbnail > div { .icon-size(50px); }
}
.icon2 {
width: 75px;
> div.thumbnail > div { .icon-size(20px); }
}
2012-06-05 03:33:52 +08:00
.icon1 {
width: 60px;
> div.thumbnail > div { .icon-size(12px); }
}
}
}
.label,
.badge {
background-color: @grayLighter;
}
2012-06-05 03:33:52 +08:00
footer {
2012-06-05 03:33:52 +08:00
color: @gray;
border-top: 1px solid @grayLighter;
margin-top: 60px;
padding-top: 20px;
padding-bottom: 60px;
*zoom: 1; // ie7 hack
ul {
margin-left: 30px;
line-height: 25px;
}
}