freeCodeCamp/public/css/ios7.less

398 lines
6.7 KiB
Plaintext
Raw Normal View History

// iOS 7 Bootstrap Theme
// Sahat Yalkabov
// -----------------------------------------------------
// Variables =================================================================
@navbar-height: 45px;
// Global =====================================================================
2013-12-04 08:11:14 +00:00
body {
color: #666;
background: #e8e8e8;
min-height: 100%;
}
[class^="fa-"],
[class*="fa-"] {
margin-right: 10px;
}
a {
color: #007aff;
&:hover {
color: #666666;
text-decoration: none;
}
}
2013-12-04 08:11:14 +00:00
// Navbar =====================================================================
2013-12-04 08:11:14 +00:00
.navbar-default {
background: rgba(255, 255, 255, 0.95);
border: 0;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
2013-12-04 08:11:14 +00:00
.navbar-nav {
> li > a {
color: #999;
transition: all 0.3s;
&:hover,
&:focus {
color: #999;
background: rgba(0, 0, 0, 0.05);
}
}
> .active > a {
&,
&:focus {
color: #007aff;
background-color: transparent;
}
&:hover {
color: #007aff;
background: rgba(0, 0, 0, 0.05);
}
}
}
}
2013-12-04 11:05:41 +00:00
// Alerts ======================================================================
.alert {
border-radius: 0px;
}
2013-12-04 08:11:14 +00:00
// Buttons ====================================================================
.btn {
font-weight: 300;
transition: all 0.15s;
2013-12-04 11:05:41 +00:00
margin: 0 10px 10px 0;
&:active,
.active {
box-shadow: none;
}
}
2013-12-04 08:11:14 +00:00
.btn-default {
2013-12-04 11:05:41 +00:00
background: #bbb;
border-color: #bbb;
color: #fff;
&:hover,
&.active {
background: transparent;
color: #aaa;
border-color: #bbb;
}
}
.btn-primary {
background: #007aff;
2013-12-04 11:05:41 +00:00
border-color: #007aff;
&:hover,
&.active {
background: transparent;
color: #007aff;
border-color: #007aff;
}
}
.btn-success {
background: #60c560;
border-color: #60c560;
&:hover,
&.active {
background: transparent;
color: #60c560;
border-color: #60c560;
}
}
.btn-info {
background: #5bc0de;
border-color: #5bc0de;
&:hover,
&.active {
background: transparent;
color: #5bc0de;
border-color: #5bc0de;
}
}
.btn-warning {
background: #f0ad4e;
border-color: #f0ad4e;
&:hover,
&.active {
background: transparent;
color: #f0ad4e;
border-color: #f0ad4e;
}
}
.btn-danger {
background: #d9534f;
border-color: #d9534f;
&:hover,
&.active {
background: transparent;
color: #d9534f;
border-color: #d9534f;
}
}
2013-12-04 11:05:41 +00:00
.facebook {
background-color: #335397;
border-color: #335397;
&:focus,
&:hover {
background-color: transparent;
color: #335397;
}
}
.twitter {
background-color: #00c7f7;
border-color: #00c7f7;
&:focus,
&:hover {
background-color: transparent;
color: #00c7f7;
}
}
.google {
background-color: #d34836;
border-color: #d34836;
&:focus,
&:hover {
background-color: transparent;
color: #d34836;
}
}
.github {
background-color: #666;
border-color: #666;
&:focus,
&:hover {
background-color: transparent;
color: #666;
}
}
// Panel ======================================================================
.panel {
background-color: #fff;
border-radius: 0;
border: 0;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.panel-body {
padding: 15px 15px 0 15px;
}
.panel-default {
> .panel-heading {
background-color: #fff;
border: 0;
height: 50px;
color: #007aff;
font-size: 15px;
font-weight: 400;
margin: 0;
padding: 15px 15px;
}
}
// Typography =================================================================
.page-header {
margin: 0;
border: 0;
h1 {
color: #5e5e5e;
font-weight: 300;
}
}
.text-primary {
color: #007aff;
}
// Forms =================================================================
.form-control {
transition: all 0.4s;
box-shadow: none;
&:focus {
border-color: #007aff;
box-shadow: none;
}
}
label {
font-weight: normal;
}
// Params: text-color; border-color; background-color
.has-error {
.form-control-validation(#d9534f; #d9534f; #d9534f);
2013-12-04 11:05:41 +00:00
}
2013-12-04 11:14:42 +00:00
.radio,
.checkbox {
margin: 0 0 10px;
}
.radio-inline,
.checkbox-inline {
padding-top: 9px;
margin-right: 20px;
}
.radio-inline + .radio-inline,
.radio-inline + .checkbox-inline,
.checkbox-inline + .radio-inline,
.checkbox-inline + .checkbox-inline {
margin-left: 0;
}
input[type="checkbox"],
input[type="radio"] {
display: none;
}
input[type="checkbox"] + span:before,
input[type="radio"] + span:before {
content: "";
width: 18px;
height: 18px;
display: inline-block;
vertical-align: middle;
margin-right: 10px;
margin-left: -20px;
background: white;
border-radius: 3px;
border: 1px solid #c8c8c8;
}
input[type="checkbox"]:checked + span:before {
background: #007aff url("../img/checkmark.png") no-repeat center center;
border-color: #007aff;
}
@media (min--moz-device-pixel-ratio: 1.3), (-o-min-device-pixel-ratio: 2.6 / 2), (-webkit-min-device-pixel-ratio: 1.3), (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx) {
input[type="checkbox"]:checked + span:before {
background-image: url("../img/checkmark@2x.png");
background-size: 14px 14px;
}
}
input[type="radio"] {
display: none;
}
input[type="radio"] + span {
position: relative;
}
input[type="radio"] + span:before {
border-radius: 50%;
}
input[type="radio"]:checked + span:after {
content: "";
width: 8px;
height: 8px;
position: absolute;
top: 6px;
left: -15px;
background-color: #007aff;
border-radius: 50%;
display: block;
}
2013-12-04 11:05:41 +00:00
// Misc ===================================================================
.login-container {
background-color: rgba(255, 255, 255, 0.95);
border-radius: 40px;
box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
padding: 30px;
width: 380px;
height: 380px;
2013-12-04 11:05:41 +00:00
text-align: center;
position: absolute;
top: 50%;
left: 50%;
margin: -190px 0 15px -190px;
&.signup {
height: 430px;
margin-top: -215px;
}
2013-12-04 11:05:41 +00:00
.form-group {
position: relative;
margin-bottom: 0;
}
.form-control {
height: 48px;
font-size: 15px;
box-shadow: none;
border-radius: 0;
border: 0;
border-bottom: 1px solid #d6d6d6;
padding-left: 0;
padding-right: 0;
background: transparent;
}
.form-options {
margin: 20px 0 30px;
.checkbox {
display: inline-block;
2013-12-04 11:14:42 +00:00
margin: 0 0 10px;
2013-12-04 11:05:41 +00:00
}
}
button[type="submit"] {
position: absolute;
top: 10px;
right: 0;
opacity: 0.5;
font-family: "FontAwesome";
background: transparent;
color: #888;
border: 2px solid #888;
width: 30px;
height: 30px;
border-radius: 50%;
padding-left: 7px;
line-height: 24px;
&:hover {
opacity: 1;
}
[class^="fa-"],
[class*="fa-"] {
margin-right: 0;
}
}
}