admin styling

This commit is contained in:
Nabeel Shahzad
2018-04-09 15:16:01 -05:00
parent 86d28aafd6
commit 0986cddae1
9 changed files with 1526 additions and 640 deletions

View File

@@ -1,91 +1,60 @@
input {
margin-top: 5px;
border: none;
font-size: 1rem;
cursor: text;
//font-family: "Inconsolata", "Monaco", "Consolas", "Lucida Console", monospace !important;
font-family: "Avenir-light", "AvenirLTStd-Light", sans-serif !important;
}
.form-control::-moz-placeholder{
@include placeholder($medium-gray,1);
}
.form-control:-moz-placeholder{
@include placeholder($medium-gray,1);
}
.form-control::-webkit-input-placeholder{
@include placeholder($medium-gray,1);
}
.form-control:-ms-input-placeholder{
@include placeholder($medium-gray,1);
}
@include form-control-placeholder($medium-gray, 1);
.form-control {
font-family: "Avenir-light", "AvenirLTStd-Light", sans-serif !important;
display: block;
width: 100%;
/*font-size: $font-size-base;*/
line-height: 1.846;
color: #666666;
border: medium none;
border-radius: $border-radius-extra-small;
border-bottom: 2px solid #0f5b8c;
vertical-align: middle;
/*-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);*/
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
@include input-size($padding-small-vertical, $padding-small-horizontal, 30px);
border-radius: 0;
background-color: $transparent-bg;
border: 1px solid $light-gray;
color: $black-color;
line-height: 1em;
font-size: $font-size-small;
@include transition-input-focus-color();
@include box-shadow(none);
/*background-color: $gray-input-bg;
border: medium none;
border-radius: $border-radius-base;
color: $font-color;
font-size: $font-size-base;
transition: background-color 0.3s ease 0s;
@include input-size($padding-base-vertical, $padding-base-horizontal, $height-base);
@include box-shadow(none);*/
.has-success & {
border-color: $light-gray;
}
&:focus{
background-color: $white-bg;
//@include box-shadow(none);
outline: 0 !important;
border-bottom: 2px solid #2196f3;
/*-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;*/
&:focus {
border: 1px solid $brand-primary;
@include box-shadow(none);
outline: 0 !important;
color: $black-color;
& + .input-group-addon,
& ~ .input-group-addon {
border: 1px solid $brand-primary;
background-color: $transparent-bg;
}
}
.has-success &,
.has-error &,
.has-success &:focus,
.has-error &:focus{
.has-error &:focus {
@include box-shadow(none);
}
.has-success &{
background-color: $success-input-bg;
color: $success-color;
&.border-input{
border: 1px solid $success-color;
.has-danger &,
.has-success & {
&.form-control-success,
&.form-control-danger {
background-image: none;
}
}
.has-success &:focus{
background-color: $white-bg;
}
.has-error &{
background-color: $danger-input-bg;
color: $danger-color;
&.border-input{
border: 1px solid $danger-color;
}
}
.has-error &:focus{
background-color: $white-bg;
}
& + .form-control-feedback{
border-radius: $border-radius-large;
.has-danger & {
background-color: lighten($danger-color, 30%);
border-color: lighten($danger-color, 30%);
color: $danger-color;
&:focus {
background-color: $opacity-gray-3;
}
}
& + .form-control-feedback {
border-radius: $border-radius-extra-small;
font-size: $font-size-base;
margin-top: -7px;
position: absolute;
@@ -93,68 +62,141 @@ input {
top: 50%;
vertical-align: middle;
}
&.border-input{
border: 1px solid $table-line-color;
}
.open &{
.open & {
border-radius: $border-radius-extra-small $border-radius-extra-small 0 0;
border-bottom-color: transparent;
}
& + .input-group-addon {
background-color: $white-bg;
}
}
.input-lg{
height: 55px;
padding: $padding-large-vertical $padding-large-horizontal;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
.has-success,
.has-danger {
&:after {
font-family: 'Nucleo Outline';
content: "\ea22";
display: inline-block;
position: absolute;
right: 35px;
top: 12px;
color: $success-color;
font-size: 11px;
}
&.input-lg {
&:after {
font-size: 13px;
top: 13px;
}
}
}
.has-error{
.form-control-feedback, .control-label{
.has-danger {
&:after {
content: "\ea53";
color: $danger-color;
}
}
.has-success{
.form-control-feedback, .control-label{
color: $success-color;
@include input-sm-padding($padding-small-vertical, $padding-small-horizontal);
@include input-lg-padding($padding-large-vertical, $padding-input-horizontal);
@include input-base-padding($padding-small-vertical, $padding-small-horizontal);
.form-group.form-group-no-border,
.input-group.form-group-no-border {
.form-control,
.form-control + .input-group-addon {
background-color: $opacity-gray-3;
border: medium none;
&:focus,
&:active,
&:active {
border: medium none;
background-color: $opacity-gray-5;
}
}
.form-control {
&:focus {
& + .input-group-addon {
background-color: $opacity-gray-5;
}
}
}
.input-group-addon {
background-color: $opacity-gray-3;
border: none;
}
}
.has-error {
.form-control-feedback, .control-label {
color: $danger-color;
}
}
.has-success {
.form-control-feedback, .control-label {
color: $success-color;
}
}
.input-group-addon {
background-color: $gray-input-bg;
border: medium none;
border-radius: $border-radius-base;
background-color: $white-bg;
border: 1px solid $light-gray;
border-radius: $border-radius-extra-small;
color: $dark-background;
padding: $padding-base-vertical - 1 0 $padding-base-vertical - 1 $padding-base-horizontal - 1;
@include transition-input-focus-color();
.has-success &,
.has-error &{
.has-danger & {
background-color: $white-color;
}
.has-error .form-control:focus + &{
.has-danger .form-control:focus + & {
color: $danger-color;
}
.has-success .form-control:focus + &{
.has-success .form-control:focus + & {
color: $success-color;
}
.form-control:focus + &,
.form-control:focus ~ &{
background-color: $white-color;
& + .form-control,
& ~ .form-control {
@include input-size($padding-base-vertical - 1, $padding-base-horizontal);
padding-left: 18px;
}
}
.border-input{
.input-group-addon{
border: solid 1px $table-line-color;
.input-group-focus {
.input-group-addon {
background-color: $white-bg;
border-color: $primary-color;
}
&.form-group-no-border {
.input-group-addon {
background-color: $opacity-gray-5;
}
}
}
.input-group{
margin-bottom: 15px;
.input-group,
.form-group {
margin-bottom: 10px;
}
.input-group[disabled]{
.input-group-addon{
.input-group[disabled] {
.input-group-addon {
background-color: $light-gray;
}
}
.input-group .form-control:first-child,
/*.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
@@ -165,38 +207,50 @@ input {
.input-group-btn:last-child > .dropdown-toggle,
.input-group-btn:first-child > .btn:not(:first-child) {
border-left: 0 none;
}
}*/
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
background-color: $light-gray;
color: $default-color;
cursor: not-allowed;
@include placeholder($dark-gray,1);
}
.form-control[disabled]::-moz-placeholder{
@include placeholder($dark-gray,1);
}
.form-control[disabled]:-moz-placeholder{
@include placeholder($medium-gray,1);
}
.form-control[disabled]::-webkit-input-placeholder{
@include placeholder($medium-gray,1);
}
.form-control[disabled]:-ms-input-placeholder{
@include placeholder($medium-gray,1);
}
.input-group-btn .btn{
.input-group-btn .btn {
border-width: $border-thin;
padding: $padding-round-vertical $padding-base-horizontal;
padding: $padding-btn-vertical $padding-base-horizontal;
}
.input-group-btn .btn-default:not(.btn-fill){
.input-group-btn .btn-default:not(.btn-fill) {
border-color: $medium-gray;
}
.input-group-btn:last-child > .btn{
.input-group-btn:last-child > .btn {
margin-left: 0;
}
textarea.form-control{
textarea.form-control {
max-width: 100%;
padding: 10px 18px;
padding: 10px 10px 0 0;
resize: none;
background-color: $transparent-bg;
border: 1px solid $light-gray;
color: $black-color;
line-height: 1em;
font-size: $font-size-small;
border-radius: 0;
&:focus,
&:active {
@include box-shadow(none);
border: 1px solid $brand-primary;
background-color: $transparent-bg;
}
}
.has-success,
.has-danger {
&.form-group .form-control,
&.form-group.form-group-no-border .form-control {
padding-right: $padding-input-horizontal + 21;
}
}