// iOS 7 Bootstrap Theme // Sahat Yalkabov // ----------------------------------------------------- // Variables ================================================================= @navbar-height: 45px; // Global ===================================================================== body { color: #666; background: #e8e8e8; min-height: 100%; } [class^="fa-"], [class*="fa-"] { margin-right: 10px; } a { color: #007aff; &:hover { color: #666666; text-decoration: none; } } // Navbar ===================================================================== .navbar-default { background: rgba(255, 255, 255, 0.95); border: 0; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); .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); } } } } // Labels ====================================================================== .label { display: inline-block; font-size: 85%; font-weight: 300; line-height: 1.4; border-radius: 0px; border: 1px solid transparent; transition: all 0.15s; h2 { margin-top: 10px; font-weight: 100; } } .label-block { display: block; width: 100%; padding-left: 0; padding-right: 0; } .label-success { background-color: #60c560; } .label-primary { background-color: #007aff; &:hover, &.active { background: transparent; color: #007aff; border-color: #007aff; } } // Alerts ====================================================================== .alert { border-radius: 0px; } // Buttons ==================================================================== .btn { font-weight: 300; transition: all 0.15s; margin: 0 10px 10px 0; &:active, .active { box-shadow: none; } } .btn-default { background: #bbb; border-color: #bbb; color: #fff; &:hover, &.active { background: transparent; color: #aaa; border-color: #bbb; } } .btn-primary { background: #007aff; 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; } } .btn-magenta { background: #d94084; border-color: #d94084; color: #fff; &:hover, &.active { background: transparent; color: #d94084; border-color: #d94084; } } .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: 0 15px 15px; } .panel-default { > .panel-heading { background-color: #fff; border: 0; color: #007aff; font-size: 15px; font-weight: 400; margin: 0; } } // Typography ================================================================= .page-header { margin: 0; border: 0; h1 { color: #5e5e5e; font-weight: 300; } } .text-primary { color: #007aff; } // Datatable ============================================================= .dataTable th { padding-right: 20px; position: relative; font-weight: normal; } .dataTable th.sorting { color: #007aff; cursor: pointer; } .dataTable th.sorting:after, .dataTable th.sorting:before { content: ""; width: 0; height: 0; position: absolute; right: 12px; border-right: 5px solid transparent; border-left: 5px solid transparent; } .dataTable th.sorting:after { top: 19px; border-top: 5px solid #007aff !important; } .dataTable th.sorting:before { top: 11px; border-bottom: 5px solid #007aff !important; } .dataTable th.sorting_asc { color: #007aff; cursor: pointer; } .dataTable th.sorting_asc:after { content: ""; width: 0; height: 0; position: absolute; right: 12px; top: 15px; border-bottom: 5px solid #007aff !important; border-right: 5px solid transparent; border-left: 5px solid transparent; } .dataTable th.sorting_desc { color: #007aff; cursor: pointer; } .dataTable th.sorting_desc:after { content: ""; width: 0; height: 0; position: absolute; right: 12px; top: 15px; border-top: 5px solid #007aff !important; border-right: 5px solid transparent; border-left: 5px solid transparent; } th:active { outline: 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); } .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; } // 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; text-align: center; position: absolute; top: 50%; left: 50%; margin: -190px 0 15px -190px; &.signup { height: 430px; margin-top: -215px; } .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; margin: 0 0 10px; } } 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; } } }