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

393 lines
8.1 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
.text-align-right { text-align: right; }
.text-align-center { text-align: center; }
2012-03-09 05:02:49 +00:00
// 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;
.icon-flag { padding-right: 3px; }
}
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; }
// border: solid 1px @white;
@size: 280px;
font-size: @size;
text-align: center;
line-height: @size + 5;
text-shadow: 2px 2px 3px @grayDarker;
.carousel-control {
top: @size + 33px;
.square(23px);
border-width: 3px;
font-size: 17px;
line-height: 25px;
2012-12-20 13:09:28 +00:00
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
.jumbotron {
2012-12-28 04:48:13 +00:00
background: @red; /* Old browsers */
// background: -moz-linear-gradient(45deg, #020031 0%, #6d3353 100%); /* FF3.6+ */
// background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#020031), color-stop(100%,#6d3353)); /* Chrome,Safari4+ */
// background: -webkit-linear-gradient(45deg, @red 0%, mix(@red, @redDark, 50%) 100%); /* Chrome10+,Safari5.1+ */
// background: -o-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Opera 11.10+ */
// background: -ms-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* IE10+ */
// background: linear-gradient(45deg, #020031 0%,#6d3353 100%); /* W3C */
// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#020031', endColorstr='#6d3353',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
2013-01-01 19:24:01 +00:00
border-bottom: 1px solid @redDark;
2012-12-28 04:48:13 +00:00
// margin-bottom: 0;
padding: 90px 0 48px;
// .border-radius(0);
// #gradient > .radial( lighten(@red, 10%), @red);
2012-12-28 04:48:13 +00:00
// background-color: @red;
&, h1 { color: @white; }
// &:after {
// content:'';
// display:block;
// position:absolute;
// top:0;
// right:0;
// bottom:0;
// left:0;
// background:url(../img/grain-tm400.png);
// opacity:.5;
// }
h1 {
font-size: 80px;
2012-12-20 13:09:28 +00:00
letter-spacing: -2px;
2012-12-28 04:48:13 +00:00
line-height: 1;
}
p {
2012-12-28 04:48:13 +00:00
margin-top: 15px;
margin-bottom: 30px;
font-size: 30px;
line-height: 1.3;
}
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 {
//// .buttonBackground(@white, #bbb);
font-family: @serifFontFamily;
//// color: @grayDark;
// margin-top: 15px;
font-weight: bold;
font-size: 18px;
2013-01-01 19:24:01 +00:00
padding: 13px 23px 13px 22px;
// padding-left: 24px + 40;
margin-right: 10px;
2013-01-01 19:24:01 +00:00
// .border-radius(8px);
// position: relative;
text-align: left;
// i {
// position: absolute;
// top: 8px;
// left: 15px;
// font-size: 46px;
// }
}
.hero-content {
// width: 620px;
text-align: center;
}
2012-12-28 04:48:13 +00:00
.shameless-self-promotion {
font-size: 12px;
margin-top: 15px;
color: mix(@white, @red, 50%);
text-shadow: none;
}
2012-03-09 05:02:49 +00:00
}
2013-01-01 19:24:01 +00:00
.btn-github {
.buttonBackground(mix(@grayLighter, @white, 50%), mix(@grayLighter, @grayLight, 50%));
}
.btn-primary, .btn-github {
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
}
section {
padding-top: 40px;
}
2012-06-04 19:10:35 +00:00
#social-buttons {
padding: 22px 0;
2012-06-04 19:10:35 +00:00
text-align: center;
background-color: #f5f5f5;
border-top: 1px solid #fff;
border-bottom: 1px solid #ddd;
2012-06-04 19:10:35 +00:00
.btn {
// font-family: @serifFontFamily;
font-weight: bold;
// font-size: @baseFontSize;
padding: 0px 5px;
line-height: @baseLineHeight - 3;
2012-06-04 19:10:35 +00:00
}
.count.btn {
background: @white;
2012-06-04 19:10:35 +00:00
font-weight: normal;
}
.watch, .fork {
margin-right: 30px;
}
}
.the-icons {
list-style-type: none;
margin: 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%);
[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
}
2012-12-28 04:48:13 +00:00
#why, #whats-new {
.row {
margin-bottom: 20px;
}
2012-12-31 16:25:55 +00:00
h4 {
// line-height: 28px;
[class^="icon-"],
[class*=" icon-"] {
vertical-align: -10%;
font-size: 28px;
// width: 30px;
// height: 30px;
margin-right: 5px;
}
}
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
}
2012-12-29 17:38:38 +00:00
#kyruus {
color: @gray;
font-size: 18px;
&, li { line-height: 25px; }
p {
margin-bottom: 22px;
strong { color: @grayDarker; }
}
ul {
margin-top: 5px;
margin-bottom: 22px;
li { margin-top: 10px; }
i {
margin-top: 5px;
// margin-right: .4em;
// color: mix(@grayLight, @grayLighter, 50%);
color: mix(@blue, @blueDark, 50%);
}
}
.border {
.icon-medkit { font-size: 224px; }
border: solid 10px @grayLighter;
padding: 1em 1.5em;
margin-left: .2em;
.border-radius(10px);
a:hover .icon-medkit { text-decoration: none; }
// a:hover i { text-decoration: underline; }
}
a {
font-weight: bold;
color: mix(@blue, @blueDark, 50%);
&:hover {
color: @blueDark;
}
}
}
2012-03-09 05:02:49 +00:00
.modal {
width: 560px;
2012-12-29 17:38:38 +00:00
max-height: 610px;
.modal-body {
*overflow: hidden; // ie7 fix
max-height: none;
padding-bottom: 0;
.row { margin-bottom: 15px; }
div.thumbnail {
text-align: center;
2012-12-29 17:38:38 +00:00
div { margin: 8px; }
}
.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;
}
2013-01-02 00:16:50 +00:00
.well.well-transparent {
background-color: transparent;
}
2012-06-04 19:10:35 +00:00
2012-03-09 05:02:49 +00:00
footer {
2013-01-01 19:24:01 +00:00
// #gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
background-color: @red;
border-top: 1px solid mix(@red, @redDark, 50%);
a {
color: @white;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
&:hover {
color: @white;
}
}
color: mix(@red, @white, 35%);
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
margin-top: 60px;
2013-01-01 19:24:01 +00:00
padding-top: 45px;
padding-bottom: 60px;
*zoom: 1; // ie7 hack
ul {
2013-01-01 19:24:01 +00:00
// margin-left: 30px;
line-height: 25px;
}
2012-03-09 05:02:49 +00:00
}