@mixin no-select() { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } $background-primary-color: #fff; $background-secondary-color: #fcfcfc; $text-primary-color: #333; $primary-color: #B11D33; $primary-text-color: #fff; $error-color: #D55225; $error-text-color: #fff; $border-color: #888; $transitionTime: 150ms; $bg-disabled-color: rgba($text-primary-color, .26); $bg-enabled-color: rgba($primary-color, .5); $lever-disabled-color: $background-primary-color; $lever-enabled-color: $primary-color; body, html { color: $text-primary-color; background: $background-secondary-color; font-family: 'Montserrat', Roboto, Arial, sans-serif; font-weight: 600; width: 100%; height: 100%; margin: 0; padding: 0; } a { text-decoration: none; outline: none; &:hover { text-decoration: none; } } .container { width: 100%; margin: 0 auto; } * { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; } @media (min-width: 576px) { .container { width: 540px; } } @media (min-width: 768px) { .container { width: 720px; } } @media (min-width: 992px) { .container { width: 960px; } } @media (min-width: 1200px) { .container { width: 1140px; } } .menu { background-color: $background-secondary-color; color: $text-primary-color; width: 100%; clear: both; height: 6rem; line-height: 6rem; a { padding: 0 1rem; color: $text-primary-color; height: 100%; display: inline-block; font-family: "Bungee", sans-serif; font-weight: normal; font-size: 1.1rem; position: relative; text-transform: uppercase; &::after { content: ''; display: block; position: absolute; left: 1rem; right: 1rem; bottom: 1.8em; height: 0.25rem; background: transparent; transition: background-color $transitionTime; } &.active::after { background: $text-primary-color; } &:hover { background-color: rgba($primary-text-color, 0.1); &::after { background: $primary-color; } } } & ~ * { content: ''; clear: both; } } .menu-left { float: left; } .menu-right { float: right; } .main { padding: 0 1rem; } .table-layout-search { float: left; } .table-layout-action { float: right; } .table-layout-table { width: 100%; border-spacing: 0; border-collapse: collapse; clear: both; margin-top: 4rem; th { text-align: start; } th, td { padding: 0 0.6rem; } .action { text-align: center; } tr { border-top: solid 1px rgba($text-primary-color, 0.1); &:first-child { background-color: rgba($text-primary-color, 0.06); height: 2.5rem; line-height: 2.5rem; } &:not(:first-child) { height: 2rem; line-height: 2rem; &:hover { background-color: rgba($text-primary-color, 0.06); } } } } .form-control { border: solid 1px $border-color; outline: none; padding: 0 1rem; line-height: 2.5rem; width: 100%; background-color: $background-primary-color; border-radius: 0.2rem; margin: 1px; transition: border-color $transitionTime; &:focus { border-color: $primary-color; border-width: 2px; margin: 0; } } .form-group { padding-bottom: 1rem; display: block; position: relative; clear: both; label { display: block; padding-bottom: 0.3rem; padding-left: 0.2rem; } } .form-switch { line-height: 24px; input { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; z-index: 0; } label { display: block; padding: 0 0 0 44px; cursor: pointer; &:before { content: ''; position: absolute; top: 5px; left: 0; width: 36px; height: 14px; background-color: $bg-disabled-color; border-radius: 14px; z-index: 1; transition: background-color 0.28s cubic-bezier(.4, 0, .2, 1); } &:after { content: ''; position: absolute; top: 2px; left: 0; width: 20px; height: 20px; background-color: $lever-disabled-color; border-radius: 14px; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12); z-index: 2; transition: all 0.28s cubic-bezier(.4, 0, .2, 1); transition-property: left, background-color; } @include no-select } input:checked + label { &:before { background-color: $bg-enabled-color; } &:after { left: 16px; background-color: $lever-enabled-color; } } } .form-switch-group { padding: 0.5rem 0; } .form-btn { border: solid 1px $border-color; outline: none; padding: 0 1rem; line-height: 2rem; background-color: $background-primary-color; color: $primary-color; display: inline-block; margin-right: 0.6rem; border-radius: 0.2rem; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; transition: border-color $transitionTime, outline-color $transitionTime; cursor: pointer; &:focus, &:hover { border-color: $primary-color; outline-color: $primary-color; } } .btn-primary { background-color: $primary-color; color: $primary-text-color; border-color: $primary-color; } .btn-danger { background-color: $error-color; color: $error-text-color; border-color: $error-color; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; } form { margin-bottom: 2rem; width: 20rem; }