123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- .control {
- & + .control {
- margin-top: 15px;
- }
- // ===============================================================
- // TEXTBOX
- // ===============================================================
- input[type=text], input[type=password] {
- background-color: #FFF;
- display: flex;
- height: 30px;
- align-items: center;
- padding: 0 12px;
- border: 1px solid mc('grey', '400');
- border-radius: 3px;
- font-family: $core-font-standard;
- font-size: 14px;
- color: mc('grey', '700');
- transition: all .4s ease;
- box-shadow: inset 0 0 5px 0 rgba(0,0,0,0.1);
- &:focus {
- outline: none;
- border-color: mc('light-blue', '500');
- box-shadow: inset 0 0 5px 0 rgba(mc('light-blue', '500'), 0.3);
- }
- &:disabled {
- background-color: mc('grey', '100');
- }
- &.is-dirty.is-invalid {
- border-color: mc('red', '500');
- box-shadow: inset 0 0 5px 0 mc('red', '100');
- }
-
- @include placeholder {
- color: mc('grey', '400');
- }
- }
- &.is-fullwidth {
- input[type=text], input[type=password], select, textarea {
- width: 100%;
- }
- }
- textarea {
- background-color: #FFF;
- display: flex;
- padding: 6px 12px;
- border: 1px solid mc('grey', '400');
- border-radius: 3px;
- font-family: $core-font-standard;
- font-size: 14px;
- color: mc('grey', '700');
- transition: all .4s ease;
- box-shadow: inset 0 0 5px 0 rgba(0,0,0,0.1);
- min-height: 100px;
- &:focus {
- outline: none;
- border-color: mc('light-blue', '500');
- box-shadow: inset 0 0 5px 0 rgba(mc('light-blue', '500'), 0.3);
- }
- &:disabled {
- background-color: mc('grey', '100');
- }
- &.is-dirty.is-invalid {
- border-color: mc('red', '500');
- box-shadow: inset 0 0 5px 0 mc('red', '100');
- }
- }
- // ===============================================================
- // DROPDOWN
- // ===============================================================
- select {
- background-color: #FFF;
- display: flex;
- height: 30px;
- align-items: center;
- padding: 0 12px;
- border: 1px solid mc('grey', '400');
- border-radius: 3px;
- font-family: $core-font-standard;
- font-size: 14px;
- color: mc('grey', '700');
- transition: all .4s ease;
- box-shadow: inset 0 0 5px 0 rgba(0,0,0,0.1);
- cursor: pointer;
- &:focus {
- outline: none;
- border-color: mc('light-blue', '500');
- box-shadow: inset 0 0 5px 0 rgba(mc('light-blue', '500'), 0.3);
- }
- &:disabled {
- background-color: mc('grey', '100');
- }
- }
- // ===============================================================
- // CHECKBOX / RADIO BUTTONS
- // ===============================================================
- input[type=radio], input[type=checkbox] {
- position: absolute;
- left: -9999px;
- opacity: 0;
- & + label {
- position: relative;
- padding: 0 15px 0 25px;
- cursor: pointer;
- display: inline-block;
- height: 25px;
- line-height: 25px;
- font-size: 14px;
- transition: .28s ease;
- @include prefix('user-select', none);
- &:before, &:after {
- content: '';
- position: absolute;
- left: 0;
- top: 0;
- margin: 4px;
- border: 2px solid mc($primary, '600');
- margin: 4px;
- width: 16px;
- height: 16px;
- border-radius: 50%;
- z-index: 0;
- transition: .28s ease;
- }
- }
- &:checked + label {
- &:before, &:after {
- border-color: mc($primary, '600');
- }
- &:after {
- @include prefix('transform', scale(0.5));
- background-color: mc($primary, '600');
- }
- }
- }
- input[type=checkbox] + label {
- &:before, &:after {
- border-radius: 3px;
- }
- }
- .help {
- font-size: 12px;
- &.is-red {
- color: mc('red','600');
- }
- }
- & + label {
- margin-top: 20px;
- }
- > i:first-child {
- margin-right: 8px;
- }
- }
- .label {
- margin-bottom: 5px;
- font-size: 14px;
- font-weight: 500;
- display: block;
- strong {
- @each $color, $colorvalue in $material-colors {
- &.is-#{$color} {
- color: mc($color, '600');
- }
- }
- }
- }
- .form-sections {
- section {
- border-top: 1px solid mc('grey', '200');
- padding: 20px;
- @include prefix(animation-duration, .6s);
- &:first-child {
- border-top: none;
- }
- .button + .button {
- margin-left: 10px;
- }
- .desc {
- display: inline-block;
- padding: 10px 0 0 0px;
- font-size: 12px;
- color: mc('grey', '500');
- }
- .section-block {
- padding-left: 20px;
- font-size: 14px;
- color: mc('blue-grey', '800');
- h6 {
- font-size: 14px;
- font-weight: 500;
- color: mc('blue-grey', '600');
- margin-top: 15px;
- border-bottom: 1px dotted mc('blue-grey', '200');
- }
- p {
- padding: 5px 0;
- &.is-small {
- font-size: 13px;
- }
- }
- }
- }
- }
|