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

304 lines
5.5 KiB
Plaintext
Raw Normal View History

2012-12-20 13:09:28 +00:00
@import "twbs-222/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
2012-12-20 13:09:28 +00:00
//#overview { padding-top: 60px; }
//#new-icons, #all-icons, #examples, #integration, #code, #roadmap {
// padding-top: 40px;
//}
.navbar .brand {
2012-12-20 13:09:28 +00:00
// padding: 11px 20px 9px;
color: @white;
2012-12-20 13:09:28 +00:00
font-family: @serifFontFamily;
}
2012-03-09 05:02:49 +00:00
2012-12-20 13:09:28 +00:00
//.navbar-inner { .border-radius(0); }
2012-03-09 05:02:49 +00:00
.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;
2012-12-20 13:09:28 +00:00
width: @size * 1.08;
height: @size;
// border: solid 1px white;
margin-right: 10px;
2012-12-20 13:09:28 +00:00
// margin-top: -20px;
font-size: @size;
text-align: center;
text-shadow: 2px 2px 3px @grayDarker;
.carousel-control {
2012-12-20 13:09:28 +00:00
top: @size + 33;
.square(23px);
border-width: 3px;
font-size: 17px;
2012-12-20 13:09:28 +00:00
line-height: 22px;
left: @size / 2 - 23;
&.right {
left: auto;
2012-12-20 13:09:28 +00:00
right: @size / 2 - 23;
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;
2012-12-20 13:09:28 +00:00
padding-top: 80px;
.border-radius(0);
// #gradient > .radial( lighten(@red, 10%), @red);
background-color: @red;
&, h1 { color: @white; }
h1 {
font-size: 70px;
2012-12-20 13:09:28 +00:00
letter-spacing: -2px;
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
}
}
2012-12-20 13:09:28 +00:00
// a { color: #fffeb8; }
.btn-large {
2012-12-20 13:09:28 +00:00
// .buttonBackground(@white, #bbb);
font-family: @serifFontFamily;
2012-12-20 13:09:28 +00:00
// color: @grayDark;
margin-top: 15px;
font-weight: bold;
font-size: 18px;
padding: 13px 22px;
2012-12-20 13:09:28 +00:00
padding-left: 24px + 40;
margin-right: 10px;
.border-radius(6px);
position: relative;
text-align: left;
i {
position: absolute;
2012-12-20 13:09:28 +00:00
top: 8px;
left: 15px;
font-size: 46px;
2012-03-09 05:02:49 +00:00
}
&.btn-github {
2012-12-20 13:09:28 +00:00
padding-left: 24px + 42;
2012-05-15 21:24:53 +00:00
2012-03-09 05:02:49 +00:00
}
}
.hero-content {
2012-12-20 13:09:28 +00:00
width: 650px;
text-align: center;
}
2012-03-09 05:02:49 +00:00
}
2012-12-20 13:09:28 +00:00
.btn-primary {
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 {
2012-06-04 19:20:41 +00:00
margin-bottom: 30px;
2012-06-04 19:10:35 +00:00
text-align: center;
.btn {
font-family: @serifFontFamily;
font-weight: bold;
font-size: @baseFontSize;
2012-06-04 19:20:41 +00:00
padding: 4px 10px 1px;
2012-06-04 19:10:35 +00:00
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;
2012-12-20 13:09:28 +00:00
line-height: 32px;
height: 32px;
padding-left: 12px;
2012-12-20 13:09:28 +00:00
.border-radius(6px);
// vertical-align: middle;
[class^="icon-"],
[class*=" icon-"] {
width: 32px;
2012-12-20 13:09:28 +00:00
font-size: 14px;
}
&:hover {
background-color: lighten(@errorBackground, 6%);
2012-12-20 13:09:28 +00:00
[class^="icon-"], [class*=" icon-"] { *font-size: 28px; *vertical-align: middle; }
[class^="icon-"]:before,
[class*=" icon-"]:before {
2012-12-20 13:09:28 +00:00
font-size: 28px;
vertical-align: -5px;
}
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 {
2012-12-20 13:09:28 +00:00
width: 330px;
> div.thumbnail > div { .icon-size(280px); }
}
.icon5 {
2012-12-20 13:09:28 +00:00
width: 180px;
> div.thumbnail > div { .icon-size(140px); }
2012-03-09 05:02:49 +00:00
}
.icon4 {
width: 215px;
2012-12-20 13:09:28 +00:00
> div.thumbnail > div { .icon-size(112px); }
}
.icon3 {
width: 120px;
2012-12-20 13:09:28 +00:00
> div.thumbnail > div { .icon-size(56px); }
}
.icon2 {
width: 75px;
2012-12-20 13:09:28 +00:00
> div.thumbnail > div { .icon-size(28px); }
}
.icon1 {
width: 60px;
2012-12-20 13:09:28 +00:00
> div.thumbnail > div { .icon-size(14px); }
}
}
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
}