Font-Awesome/docs/assets/less/site.less

301 lines
5.5 KiB
Plaintext
Raw Normal View History

@import "twbs-203/bootstrap.less";
2012-03-09 05:02:49 +00:00
@import "mixins.less";
@import "variables.less";
@import "font-site.less";
2012-03-09 05:02:49 +00:00
@import "font-awesome.less";
// These accomodate navbar-fixed-top
#overview { padding-top: 60px; }
2012-06-02 06:29:20 +00:00
#new-icons, #all-icons, #examples, #integration, #code, #roadmap {
padding-top: 40px;
2012-03-09 05:02:49 +00:00
}
.navbar .brand {
padding: 11px 20px 9px;
color: @white;
}
2012-03-09 05:02:49 +00:00
.navbar-inner { .border-radius(0); }
.navbar .nav > li > a { padding: 12px 10px 9px; }
h1, h2, h3, h4, h5, h6 { font-family: @serifFontFamily; }
2012-03-09 05:02:49 +00:00
#iconCarousel {
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;
2012-06-04 19:10:35 +00:00
left: @size / 3 + 9;
&.right {
left: auto;
2012-06-04 19:10:35 +00:00
right: @size / 3 + 9;
2012-03-09 05:02:49 +00:00
}
}
2012-03-09 05:02:49 +00:00
}
2012-06-04 19:10:35 +00:00
//a[href^='http://'] {
// &:after {
// font-family: FontAwesome;
// content: "\0020 \f08e";
// &:hover {
// text-decoration: none;
// }
// }
//}
2012-03-09 05:02:49 +00:00
.hero-unit {
2012-06-04 19:10:35 +00: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;
2012-03-09 05:02:49 +00:00
}
}
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;
2012-03-09 05:02:49 +00:00
}
&.btn-github {
padding-left: 30px + 44;
2012-05-15 21:24:53 +00:00
2012-03-09 05:02:49 +00:00
}
}
.hero-content {
width: 500px;
text-align: center;
}
2012-03-09 05:02:49 +00:00
}
.btn-primary, .hero-unit .btn-primary {
.buttonBackground(#fffeb8, #c49c38);
*background-color: #e7d785;
color: @grayDark;
text-shadow: 0 -1px 0 rgba(255,255,255,.25);
&:hover {
2012-03-09 05:02:49 +00:00
text-shadow: 0 -1px 0 rgba(255,255,255,.25);
color: @grayDark;
}
2012-03-09 05:02:49 +00:00
}
2012-06-04 19:10:35 +00:00
#social-buttons {
margin-bottom: 25px;
text-align: center;
.btn {
font-family: @serifFontFamily;
font-weight: bold;
font-size: @baseFontSize;
padding: 3px 10px 0;
line-height: @baseLineHeight;
}
.count.btn {
font-family: @sansFontFamily;
font-weight: normal;
.buttonBackground(@white, @white);
}
.watch, .fork {
margin-right: 30px;
}
}
.the-icons {
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-03-09 05:02:49 +00:00
}
}
2012-03-09 05:02:49 +00:00
}
#all-icons, #new-icons {
h3 {
margin-top: 10px;
}
}
2012-03-09 05:02:49 +00:00
#why {
.row {
margin-bottom: 20px;
}
.icon-large {
font-size: 22px;
text-align: center;
padding-right: 4px;
}
2012-03-09 05:02:49 +00:00
}
#examples {
.btn-toolbar {
margin-top: 0;
margin-bottom: 20px;
}
2012-03-09 05:02:49 +00:00
}
#integration {
.row { margin-bottom: 40px; }
2012-03-09 05:02:49 +00:00
}
#examples, #code {
form {
margin-bottom: 25px;
input {
line-height: 1; // fixes a safari placeholder alignment issue
2012-03-09 05:02:49 +00:00
}
}
2012-03-09 05:02:49 +00:00
.rating {
unicode-bidi: bidi-override;
direction: rtl;
2012-03-09 05:02:49 +00:00
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;
}
2012-03-09 05:02:49 +00:00
span.star:hover:before, span.star:hover ~ span.star:before {
content: "\f005"; // solid star
color: #e3cf7a;
2012-03-09 05:02:49 +00:00
}
}
2012-03-09 05:02:49 +00:00
}
.modal {
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); }
2012-03-09 05:02:49 +00:00
}
.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); }
}
.icon1 {
width: 60px;
> div.thumbnail > div { .icon-size(12px); }
}
}
2012-03-09 05:02:49 +00:00
}
2012-06-04 19:10:35 +00:00
.label,
.badge {
background-color: @grayLighter;
}
2012-03-09 05:02:49 +00:00
footer {
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;
}
2012-03-09 05:02:49 +00:00
}