freeCodeCamp/public/css/ios7.less

709 lines
11 KiB
Plaintext
Raw Normal View History

// iOS 7 Bootstrap Theme
// Sahat Yalkabov
// -----------------------------------------------------
// Variables =================================================================
@navbar-height: 45px;
// Document ===================================================================
* {
outline: 0 !important;
}
html {
height: 100%;
}
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
.login-body {
background: url(../img/01.jpg) no-repeat;
background-size: cover;
}
.signup-body {
background: url(../img/06.jpg) no-repeat;
background-size: cover;
}
// 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
2013-12-04 19:56:37 +00:00
// Labels ======================================================================
.label {
display: inline-block;
font-size: 85%;
font-weight: 300;
line-height: 1.4;
border-radius: 0px;
2013-12-04 20:25:29 +00:00
border: 1px solid transparent;
transition: all 0.15s;
2013-12-04 19:56:37 +00:00
h2 {
2013-12-04 20:25:29 +00:00
margin-top: 10px;
2013-12-04 19:56:37 +00:00
font-weight: 100;
}
}
.label-block {
display: block;
width: 100%;
padding-left: 0;
padding-right: 0;
}
.label-success {
background-color: #60c560;
&:hover,
&.active {
background: transparent;
color: #60c560;
border-color: #60c560;
}
}
label-default {
background-color: #999;
&:hover,
&.active {
background: transparent;
color: #999;
border-color: #999;
}
}
label-info {
background-color: #5bc0de;
&:hover,
&.active {
background: transparent;
color: #5bc0de;
border-color: #5bc0de;
}
}
.label-danger {
background-color: #d9534f;
&:hover,
&.active {
background: transparent;
color: #d9534f;
border-color: #d9534f;
}
}
.label-warning {
background-color: #f0ad4e;
&:hover,
&.active {
background: transparent;
color: #f0ad4e;
border-color: #f0ad4e;
}
2013-12-04 19:56:37 +00:00
}
.label-primary {
background-color: #007aff;
2013-12-04 20:25:29 +00:00
&:hover,
&.active {
background: transparent;
color: #007aff;
border-color: #007aff;
}
2013-12-04 19:56:37 +00:00
}
// Alerts ======================================================================
.alert {
border-radius: 0px;
}
2013-12-05 00:59:03 +00:00
nav-tabs > li > a > [class*="icon-"] {
margin-right: 0 !important;
}
.nav-tabs > li > a > [class*="icon-"] + span {
display: none;
}
// Tabs ========================================================================
.nav-tabs > li {
> a {
border-radius: 0px;
padding: 7px 15px;
}
.active > a {
}
}
.nav-tabs {
margin-top: -5px;
border: 0;
}
.tab-content {
.row {
margin: 0;
}
}
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 19:56:37 +00:00
.btn-magenta {
background: #d94084;
border-color: #d94084;
color: #fff;
&:hover,
&.active {
background: transparent;
color: #d94084;
border-color: #d94084;
}
}
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 {
2013-12-04 20:25:29 +00:00
padding: 0 15px 15px;
}
.panel-default {
> .panel-heading {
background-color: #fff;
border: 0;
color: #007aff;
font-size: 15px;
font-weight: 400;
margin: 0;
2013-12-05 00:59:03 +00:00
&.tabs {
background: #f5f5f5;
border-bottom: 1px solid #ddd;
}
}
}
// Typography =================================================================
.page-header {
margin: 0;
border: 0;
h1 {
color: #5e5e5e;
font-weight: 300;
}
}
.text-primary {
color: #007aff;
}
2013-12-05 00:59:03 +00:00
.text-warning {
color: #f0ad4e;
}
.list-inline {
margin-bottom: 0;
}
// Datatables ================================================================
// Search field
.dataTables_filter {
float: right;
input {
.form-control;
display: inline-block;
width: inherit;
height: 30px;
margin: 0 0 5px 5px;
&:focus {
border-color: #007aff;
box-shadow: none;
}
}
}
// Show "X" entries
.dataTables_length {
float: left;
}
// Sorting controls
.dataTable th {
position: relative;
font-weight: normal;
&.sorting {
color: #007aff;
cursor: pointer;
&:after,
&:before {
content: "";
width: 0;
height: 0;
position: absolute;
right: 8px;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
&:after {
top: 19px;
border-top: 5px solid #007aff;
}
&:before {
top: 11px;
border-bottom: 5px solid #007aff;
}
}
&.sorting_asc {
color: #007aff;
cursor: pointer;
&:after {
content: "";
width: 0;
height: 0;
position: absolute;
right: 12px;
top: 15px;
border-bottom: 5px solid #007aff;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
}
&.sorting_desc {
color: #007aff;
cursor: pointer;
&:after {
content: "";
width: 0;
height: 0;
position: absolute;
right: 12px;
top: 15px;
border-top: 5px solid #007aff;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
}
}
2013-12-05 00:59:03 +00:00
.dataTables_wrapper {
.clearfix;
}
// Showing 1 to 10 of "X" entries
.dataTables_info {
float: left;
font-size: 13px;
}
// Pagination container
.dataTables_paginate {
float: right;
}
// Pagination buttons
.dataTables_paginate a {
border-radius: 4px;
font-size: 13px;
cursor: pointer;
border: 1px solid #aaa;
color: #999;
background: #fff;
padding: 4px 8px;
margin-left:5px;
&:hover {
color: #007aff;
border-color: #007aff;
}
&.paginate_active {
border-color: #007aff;
background: #007aff;
color: #fff;
}
&.paginate_button_disabled {
border-color: #e3e3e3;
color: #ddd;
pointer-events: none;
}
}
// 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 ===================================================================
2013-12-04 11:05:41 +00:00
.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;
-webkit-animation-duration: 1s;
-webkit-animation-delay: 0.5s;
-moz-animation-duration: 1s;
-moz-animation-delay: 0.5s;
animation-duration: 1s;
animation-delay: 0.5s;
&.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;
}
}
}