FEATURE: somehow glued Elixir and SASS. Still not even nearly finished, still really experimental

This commit is contained in:
Michal Kváček
2016-10-27 11:26:15 +02:00
parent 9f430cee11
commit 785168ecc2
175 changed files with 5231 additions and 24135 deletions
@@ -0,0 +1,103 @@
@import 'bootstrap/scss/mixins';
// /*****************************************
// * Triangle Creation Mixin
// ******************************************/
// @mixin triangle-base() {
// content: '';
// display: block;
// width: 0;
// height: 0;
// -moz-transform: scale(.9999);
// }
// @mixin triangle($direction, $size, $color) {
// @include triangle($direction, $size * 2, $size, $color);
// }
// @mixin triangle($direction, $width, $height, $color) when ($direction = up) {
// @include triangle-base();
// border-left: ($width / 2) solid transparent;
// border-right: ($width / 2) solid transparent;
// border-bottom: $height solid $color;
// }
// @mixin triangle($direction, $width, $height, $color) when ($direction = down) {
// @include triangle-base();
// border-left: ($width / 2) solid transparent;
// border-right: ($width / 2) solid transparent;
// border-top: $height solid $color;
// }
// @mixin triangle($direction, $width, $height, $color) when ($direction = left) {
// @include triangle-base();
// border-top: ($width / 2) solid transparent;
// border-bottom: ($width / 2) solid transparent;
// border-right: $height solid $color;
// }
// @mixin triangle($direction, $width, $height, $color) when ($direction = right) {
// @include triangle-base();
// border-top: ($width / 2) solid transparent;
// border-bottom: ($width / 2) solid transparent;
// border-left: $height solid $color;
// }
/*****************************************
* Background-image: cover mixin
******************************************/
@mixin bg-cover() {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
/*****************************************
* Media Query Mixins
******************************************/
// Specified breakpoint
@mixin media($name) {
@include media-breakpoint-only($name) {
@content;
};
}
// Larger than specified breakpoint
@mixin media-up($name) {
@include media-breakpoint-up($name) {
@content;
};
}
// smaller than specified breakpoint
@mixin media-down($name) {
@include media-breakpoint-down($name) {
@content;
};
}
// /******************************************
// * Placeholder
// *******************************************/
@mixin placeholder() {
&::-webkit-input-placeholder { /* WebKit, Blink, Edge */
@content;
}
&:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
@content;
}
&::-moz-placeholder { /* Mozilla Firefox 19+ */
@content;
}
&:-ms-input-placeholder { /* Internet Explorer 10-11 */
@content;
}
}
// /******************************************
// * Hardware Acceleration
// *******************************************/
@mixin accelerate() {
transform: translate3d(0, 0, 0);
}
@@ -0,0 +1,77 @@
@import "../../imports";
.row {
.col {
padding-left: $grid-gutter-width/2;
padding-right: $grid-gutter-width/2;
float: left;
}
}
.row-sm {
margin-left: -10px;
margin-right: -10px;
[class^='col'] {
padding-left: 10px;
padding-right: 10px;
}
}
.title-block {
padding-bottom: 15px;
margin-bottom: 30px;
border-bottom: 1px solid $color-divider;
@include clearfix();
@include media-down(sm) {
margin-bottom: 20px;
}
}
.subtitle-block {
padding-bottom: 10px;
margin-bottom: 20px;
border-bottom: 1px dashed lighten($color-divider, 3%);
}
.section {
display: block;
margin-bottom: $content-padding-y-md - $card-margin-bottom;
@include media(xl) {
margin-bottom: $content-padding-y-xl - $card-margin-bottom;
}
@include media(lg) {
margin-bottom: $content-padding-y-lg - $card-margin-bottom;
}
@include media(md) {
margin-bottom: $content-padding-y-md - $card-margin-bottom;
}
@include media-down(sm) {
margin-bottom: $content-padding-y-sm - $card-margin-bottom;
}
&:last-of-type {
margin-bottom: 0;
}
}
.box-placeholder {
margin-bottom: 15px;
padding: 20px;
border: 1px dashed #ddd;
background: #fafafa;
color: #444;
cursor: pointer;
}
@@ -0,0 +1,117 @@
@import "../../imports";
.underline-animation {
position: absolute;
top: auto;
bottom: 1px;
left: 0;
width: 100%;
height: 1px;
background-color: $color-primary;
content: '';
transition: all 0.2s;
backface-visibility: hidden;
transform: scaleX(0);
}
.bar {
// background-color: $color-primary !important;
}
.stat-chart {
border-radius: 50%;
}
.stat {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
margin-right: 10px;
.value {
font-size: 20px;
line-height: 24px;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 500;
}
.name {
overflow: hidden;
text-overflow: ellipsis;
}
&.lg {
.value {
font-size: 26px;
line-height: 28px;
}
.name {
font-size: 16px;
}
}
}
.list-icon {
[class^='col'] {
cursor: pointer;
em {
font-size: 14px;
width: 40px;
vertical-align: middle;
margin: 0;
display: inline-block;
text-align: center;
-webkit-transition: all 1s;
-o-transition: all 1s;
transition: all 1s;
line-height: 30px;
}
&:hover {
em {
transform: scale(2,2);
}
}
}
}
.well {
background-image: none;
background-color: #fff;
}
.jumbotron {
background-image: none;
background-color: #fff;
padding: 15px 30px;
&.jumbotron-fluid {
padding-left: 0;
padding-right: 0;
}
}
.rounded {
border-radius: $border-radius;
}
.rounded-l {
border-radius: $border-radius-lg;
}
.rounded-s {
border-radius: $border-radius-sm;
}
.jqstooltip {
height: 25px !important;
width: auto !important;
border-radius: $border-radius-sm;
}
@@ -0,0 +1,62 @@
@import "../../imports";
.title {
// font-size: 21px;
font-size: 1.45rem;
font-weight: 600;
margin-bottom: 0;
// Title large
&.l {
// font-size: 23px;
font-size: 1.6rem;
}
&.s {
// font-size: 18px;
font-size: 1.4rem;
}
.card & {
font-size: 1.1rem;
color: $color-text;
}
}
.title-description {
margin: 0;
// font-size: 14px;
font-size: 0.9rem;
font-weight: normal;
color: $color-text-light;
// Small
&.s {
// font-size: 13px;
font-size: 0.8rem;
}
@include media-down(sm) {
display: none;
}
}
.subtitle {
font-size: 1.2rem;
margin: 0;
color: $color-text-light;
}
.text-primary {
color: $color-primary;
}
.text-muted {
color: lighten($color-text-light, 10%)
}
pre {
padding: 0;
border: none;
background: none;
}
@@ -0,0 +1,29 @@
@import "../imports";
.alert {
background-image: none;
&.alert-primary {
@include alert-variant($color-primary, $color-primary, #ffffff);
}
&.alert-success {
@include alert-variant($color-success, $color-success, #ffffff);
}
&.alert-info {
@include alert-variant($color-info, $color-info, #ffffff);
}
&.alert-warning {
@include alert-variant($color-warning, $color-warning, #ffffff);
}
&.alert-danger {
@include alert-variant($color-danger, $color-danger, #ffffff);
}
&.alert-inverse {
@include alert-variant($color-inverse, $color-inverse, #ffffff);
}
}
@@ -0,0 +1,4 @@
.animated {
animation-duration: .5s;
animation-delay: .1s;
}
@@ -0,0 +1,99 @@
@import "../imports";
.btn {
background-image: none;
border-radius: 0;
margin-bottom: 5px;
&.btn-primary {
@include button-variant( $btn-primary-color-text, $color-primary, $color-primary);
}
&.btn-secondary {
@include button-variant( $color-text, #fff, $color-divider );
}
&.btn-success {
@include button-variant( $color-text-inverse, $color-success, $color-success);
}
&.btn-info {
@include button-variant( $color-text-inverse, $color-info, $color-info);
}
&.btn-warning {
@include button-variant( $color-text-inverse, $color-warning, $color-warning);
}
&.btn-danger {
@include button-variant( $color-text-inverse, $color-danger, $color-danger);
}
// Remove all backgrounds
&.btn-primary-outline {
@include button-outline-variant($color-primary);
}
&.btn-secondary-outline {
@include button-outline-variant($color-divider);
}
&.btn-info-outline {
@include button-outline-variant($color-info);
}
&.btn-success-outline {
@include button-outline-variant($color-success);
}
&.btn-warning-outline {
@include button-outline-variant($color-warning);
}
&.btn-danger-outline {
@include button-outline-variant($color-danger);
}
&.btn-pill-left,
&.btn-pill-right,
&.btn-oval {
&:focus {
outline: none;
outline-offset: initial;
}
}
&.btn-pill-left {
border-top-left-radius: $btn-radius;
border-bottom-left-radius: $btn-radius;
}
&.btn-pill-right {
border-top-right-radius: $btn-radius;
border-bottom-right-radius: $btn-radius;
}
&.btn-oval {
border-radius: $btn-radius;
}
&.btn-link {
text-decoration: none;
}
strong {
font-weight: 600;
}
}
.btn-group {
.dropdown-menu {
& > li:last-child {
a:hover:before {
height: 0px;
transform: scaleX(0)
}
}
}
}
@@ -0,0 +1,202 @@
@import "../imports";
.card {
background-color: #fff;
box-shadow: 1px 1px 5px fade-out($color-text-light, 0.9);
.card {
box-shadow: none;
}
margin-bottom: $card-margin-bottom;
border-radius: 0;
border: none;
.card-header {
background-image: none;
background-color: #ffffff;
align-items: center;
display: flex;
flex-direction: row;
padding: 0;
border-radius: 0;
min-height: 50px;
border: none;
@include clearfix();
&.bordered {
border-bottom: 1px solid $color-divider;
}
&.card-header-sm {
min-height: 40px;
}
&>span {
vertical-align: middle;
}
.pull-right {
margin-left: auto;
}
.header-block {
padding: 0.5rem $card-padding-x;;
@include media(xl) {
padding: 0.5rem $card-padding-x-xl;
}
@include media-down(sm) {
padding: 0.5rem $card-padding-x-sm;
}
}
.title {
color: $color-text;
display: inline-flex;
}
.btn {
margin: 0;
}
.nav-tabs {
border-color: transparent;
align-self: stretch;
display: flex;
position: relative;
top: 1px;
.nav-item {
margin-left: 0;
display: flex;
align-self: stretch;
.nav-link {
display: flex;
align-self: stretch;
align-items: center;
color: $color-text;
opacity: 0.7;
padding-left: 10px;
padding-right: 10px;
border-radius: 0;
font-size: 14px;
border-top-width: 2px;
border-bottom: 1px solid $color-divider;
text-decoration: none;
&.active {
border-top-color: $color-primary;
border-bottom-color: transparent;
opacity: 1;
&:hover,
&:focus {
opacity: 1;
background-color: $color-text-inverse;
border-color: $color-divider $color-divider transparent;
border-top-color: $color-primary;;
}
}
&:hover,
&:focus {
opacity: 1;
background-color: transparent;
border-color: transparent;
}
}
}
}
}
&.card-default {
& > .card-header {
background-color: #fff;
color: inherit;
}
}
&.card-primary {
border-color: $color-primary;
& > .card-header {
background-color: $color-primary;
border-color: $color-primary;
}
}
&.card-success {
& > .card-header {
background-color: $color-success;
}
}
&.card-info {
& > .card-header {
background-color: $color-info;
}
}
&.card-warning {
& > .card-header {
background-color: $color-warning;
}
}
&.card-danger {
& > .card-header {
background-color: $color-danger;
}
}
&.card-inverse {
& > .card-header {
background-color: $color-inverse;
}
}
.title-block,
.card-title-block {
padding-bottom: 0;
margin-bottom: 20px;
border: none;
@include clearfix();
}
.section {
margin-bottom: 20px;
}
.example,
.section.demo {
margin-bottom: 20px;
}
}
.card-block {
padding: $card-padding-x;
.tab-content {
padding: 0;
border-color: transparent;
}
@include media(xl) {
padding: $card-padding-x-xl;
}
@include media-down(sm) {
padding: $card-padding-x-sm;
}
}
.card-footer {
background-color: #fafafa;
}
@@ -0,0 +1,30 @@
@import "../imports";
.dropdown-menu {
float: left;
box-shadow: 2px 3px 6px $dropbown-color-border;
border: 1px solid $dropbown-color-border;
border-top-left-radius: 0;
border-top-right-radius: 0;
.dropdown-item {
display: block;
padding: 0px 15px;
clear: both;
font-weight: normal;
color: $color-text;
white-space: nowrap;
transition: none;
i {
margin-right: 2px;
}
&:hover {
color: $color-primary !important;
background: none;
background-color: darken(#fff, 4%);
}
}
}
@@ -0,0 +1,16 @@
@import "../imports";
.flex-row {
display: flex;
flex-direction: row;
}
.flex-col {
display: flex;
flex-direction: column;
}
.centralize-y {
display: flex;
align-items: center;
}
@@ -0,0 +1,231 @@
@import "../imports";
input,
textarea {
outline: none;
}
.form-group {
.row {
margin-left: -10px;
margin-right: -10px;
[class^='col'] {
padding-left: 10px;
padding-right: 10px;
}
}
&.has-error {
span.has-error {
color: $color-danger;
font-size: 13px;
display: block !important;
}
.form-control-feedback {
color: $color-danger;
}
}
&.has-warning {
span.has-warning {
color: $color-warning;
font-size: 13px;
display: block !important;
}
.form-control-feedback {
color: $color-warning;
}
}
&.has-success {
span.has-success {
color: $color-success;
font-size: 13px;
display: block !important;
}
.form-control-feedback {
color: $color-success;
}
}
}
/* Input groups */
.input-group {
margin-bottom: 10px;
.form-control {
padding-left: 5px;
}
span.input-group-addon {
font-style: italic;
border: none;
border-radius: 0;
border: none;
background-color: $color-divider;
transition: background-color ease-in-out 15s, color ease-in-out .15s;
&.focus {
background-color: $color-primary;
color: #ffffff;
}
}
}
label,
.control-label {
font-weight: 600;
}
.form-control.underlined {
padding-left: 0;
padding-right: 0;
border-radius: 0;
border: none;
border-radius: 0;
box-shadow: none;
border-bottom: 1px solid $color-divider;
&.indented {
padding: .375rem .75rem;
}
.has-error &:focus,
.has-warning &:focus,
.has-success &:focus,
&:focus {
border: none;
box-shadow: none;
border-bottom: 1px solid $color-primary;
}
.has-error & {
box-shadow: none;
border-color: $color-danger;
}
.has-warning & {
box-shadow: none;
border-color: $color-warning;
}
.has-success & {
box-shadow: none;
border-color: $color-success;
}
}
.form-control.boxed {
border-radius: 0;
box-shadow: none;
&:focus {
border: 1px solid $color-primary;
}
}
.radio,
.checkbox {
display: none;
& + span {
padding: 0;
padding-right: 10px;
}
& + span:before {
font-family: FontAwesome;
font-size: 21px;
display: inline-block;
vertical-align: middle;
letter-spacing: 10px;
color: darken($color-divider, 5%);
}
&:checked + span:before {
color: $color-primary;
}
&:disabled + span:before {
opacity: 0.5;
cursor: not-allowed;
}
&:checked:disabled + span:before {
color: darken($color-divider, 5%);
}
}
.checkbox {
& + span:before {
content: "\f0c8";
}
&:checked + span:before {
content: "\f14a";
}
&.rounded {
& + span:before {
content: "\f111";
}
&:checked + span:before {
content: "\f058";
}
}
}
.radio {
& + span:before {
content: "\f111";
}
&:checked + span:before {
content: "\f192";
}
&.squared {
& + span:before {
content: "\f0c8";
}
&:checked + span:before {
content: "\f14a";
}
}
}
// Placeholders
.form-control {
&::-webkit-input-placeholder {
font-style: italic;
color: darken($color-divider, 5%);
}
&:-moz-placeholder { /* Firefox 18- */
font-style: italic;
color: $color-divider;
}
&::-moz-placeholder { /* Firefox 19+ */
font-style: italic;
color: $color-divider;
}
&:-ms-input-placeholder {
font-style: italic;
color: $color-divider;
}
}
@@ -0,0 +1,131 @@
@import "../imports";
.images-container {
@include clearfix();
// padding-top: 30px;
.image-container {
float: left;
padding: 3px;
margin-right: 10px;
margin-bottom: 35px;
position: relative;
border: 1px solid lighten($color-divider, 5%);
overflow: hidden;
// box-shadow: 0 0 3px #BFBFBF;
// border-radius: 3px;
&.active {
border-color: $color-primary;
}
// .controls {
// transition: opacity .2s ease;
// opacity: 0;
// }
&:hover {
.controls {
bottom: 0;
opacity: 1;
}
}
}
.controls {
position: absolute;
left: 0;
right: 0;
opacity: 0;
bottom: -35px;
text-align: center;
height: 35px;
// background-color: lighten($color-divider, 8%);
font-size: 24px;
transition: bottom 0.2s ease, opacity 0.2s ease;
background-color: #fff;
@include clearfix();
.control-btn {
display: inline-block;
color: $color-text;
// border-radius: 3px;
cursor: pointer;
width: 35px;
height: 35px;
line-height: 35px;
text-align: center;
// color: $color-text-inverse;
opacity: 0.5;
transition: opacity 0.3s ease;
&:hover {
opacity: 1;
}
&.move {
cursor: move;
}
&.star {
color: #FFB300;
i:before{
content: "\f006";
}
&.active {
i:before{
content: "\f005";
}
}
}
&.remove {
color: $color-danger;
}
}
}
.image {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
width: 130px;
height: 135px;
// cursor: pointer;
line-height: 135px;
text-align: center;
&:active {
}
}
.image-container.main {
border-color: #FFB300;
}
.image-container.new {
opacity: 0.6;
transition: opacity 0.3s ease;
border-style: dashed;
border: 1px $color-primary solid;
color: $color-primary;
.image {
font-size: 2.5rem;
}
&:hover {
opacity: 1;
}
}
}
@@ -0,0 +1,386 @@
@import "../imports";
/* *******************************************
* Item List general styles
********************************************** */
.item-list {
list-style: none;
padding: 0;
margin: 0;
margin-bottom: 0;
line-height: $item-list-line-height;
@include media(lg) {
font-size: 1rem;
}
@include media(md) {
font-size: 0.95rem;
}
@include media-down(sm) {
font-size: 1.05rem;
}
display: flex;
flex-flow: column nowrap;
&.striped {
& > li {
border-bottom: 1px solid $item-list-color-border;
}
& > li:nth-child(2n + 1) {
background-color: lighten($color-divider, 12%);
@include media-down(sm) {
background-color: lighten($color-divider, 11%);
}
}
.item-list-footer {
border-bottom: none;
}
}
}
/* *******************************************
* Item general styles
********************************************** */
.item-list {
.item {
display: flex;
flex-direction: column;
}
.item-row {
display: flex;
align-items: stretch;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
min-width: 100%;
&.nowrap {
flex-wrap: nowrap;
}
}
.item-col {
align-items: center;
display: flex;
padding: $item-list-padding-y $item-list-padding-x $item-list-padding-y 0;
flex-basis: 0;
flex-grow: $item-list-col-grow;
flex-shrink: $item-list-col-shrink;
margin-left: auto;
margin-right: auto;
min-width: 0;
&.fixed {
flex-grow: 0;
flex-shrink: 0;
flex-basis: auto;
}
&.pull-left {
margin-right: auto;
}
&.pull-right {
margin-left: auto;
}
& > div {
width: 100%;
}
&:last-child {
padding-right: 0;
}
}
.no-overflow {
overflow: hidden;
}
.no-wrap {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
/* *******************************************
* Item components
********************************************** */
.item-list {
/********************************************
* Header
*********************************************/
.item-list-header {
.item-col.item-col-header {
span {
color: #999;
font-size: 0.8rem;
font-weight: 700 !important;
}
}
}
/********************************************
* Heading
*********************************************/
.item-heading {
font-size: 0.9rem;
display: none;
color: #666;
font-weight: 700;
padding-right: $item-list-padding-x;
@include media-down(sm) {
display: block;
}
@include media(sm) {
width: 100%;
}
@include media(xs) {
width: 40%;
}
}
/********************************************
* Checkbox
*********************************************/
.item-col.item-col-check {
flex-basis: 20px + $item-list-padding-x;
@include media-down(sm) {
order: -8;
}
}
.item-check {
margin-bottom: 0;
.checkbox + span {
padding-right: 0;
&:before {
width: 20px;
}
}
}
/********************************************
* Image
*********************************************/
.item-col.item-col-img {
display: flex;
flex-basis: 60px + $item-list-padding-x;
&.xs{
flex-basis: 30px + $item-list-padding-x;
}
&.sm {
flex-basis: 40px + $item-list-padding-x;
}
&.lg {
flex-basis: 90px + $item-list-padding-x;
}
&.xl {
flex-basis: 110px + $item-list-padding-x;
}
a {
width: 100%;
// display: flex;
}
}
.item-img {
flex-grow: 1;
align-self: stretch;
background-color: #efefef;
padding-bottom: 100%;
width: 100%;
height: 0;
@include bg-cover();
}
/********************************************
* Title
*********************************************/
.item-col.item-col-title {
@include media-down(sm) {
order: -4;
}
a {
display: block;
}
}
.item-title {
margin: 0;
font-size: inherit;
line-height: inherit;
font-weight: 600;
}
/********************************************
* Stats
*********************************************/
.item-stats {
height: $item-list-line-height;
}
/********************************************
* Actions
*********************************************/
.item-col.item-col-actions-dropdown {
flex-basis: 30px + $item-list-padding-x;
text-align: center;
padding-left: 0 !important;
@include media-down(sm) {
order: -3;
flex-basis: 30px + $item-list-padding-x !important;
padding-right: $item-list-padding-x;
}
}
.item-actions-dropdown {
position: relative;
font-size: 1.1rem;
&.active {
.item-actions-block {
max-width: 120px;
}
.item-actions-toggle-btn {
color: $color-primary;
.active {
display: block;
}
.inactive {
display: none;
}
}
}
.item-actions-toggle-btn {
color: lighten($color-text-light, 10);
font-size: 1.2rem;
cursor: pointer;
width: 100%;
line-height: 30px;
text-align: center;
text-decoration: none;
.active {
display: none;
}
}
.item-actions-block {
height: 30px;
max-width: 0px;
line-height: 30px;
overflow: hidden;
position: absolute;
top: 0;
right: 100%;
background-color: $color-divider;
border-radius: 3px;
transition: all 0.15s ease-in-out;
&.direction-right {
right: auto;
left: 100%;
}
.item-actions-list {
padding: 0;
list-style: none;
white-space: nowrap;
padding: 0 5px;
li{
display: inline-block;
padding: 0;
}
a {
display: block;
padding: 0 5px;
&.edit {
color: #38424C;
}
&.check {
color: #40B726;
}
&.remove {
color: #DB0E1E;
}
}
}
}
}
/********************************************
* Something else?
*********************************************/
}
/* *******************************************
* Adjustments
********************************************** */
// Item which is located inside card inside item-list
.card > .item-list .item > .item-row {
padding: 0 $card-padding-x;
@include media(xl) {
padding: 0 $card-padding-x-xl;
}
@include media-down(sm) {
padding: 0 $card-padding-x-sm;
}
}
@@ -0,0 +1,29 @@
@import "../imports";
.modal-body.modal-tab-container {
padding: 0;
.modal-tabs {
padding-left: 0;
margin-bottom: 0;
list-style:none;
background-color: #ffffff;
border-bottom: 1px solid #ddd;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
.nav-link {
padding: 10px 20px;
border: none;
&:hover,
&.active {
color: $color-primary;
border-bottom: 2px solid $color-primary;
}
&.active {
font-weight: 600;
}
}
}
}
@@ -0,0 +1,116 @@
@import "../imports";
a:not(.btn) {
// display: inline-block;
// position: relative;
// overflow: hidden;
// vertical-align: top;
// z-index: 0;
transition: $link-transition;
text-decoration: $link-decoration;
color: $link-color;
// &:before {
// &:extend(.underline-animation);
// }
&:hover{
text-decoration: $link-hover-decoration;
color: $link-hover-color;
&:before {
transform: scaleX(1);
}
}
&:focus {
text-decoration: none;
}
}
span a {
vertical-align: text-bottom;
}
[class^='nav'],
[class*=' nav'] {
li > a {
// Display these anchors as block
display: block;
// Hide underline in anchors which are inside LI tag
&:before {
display: none;
}
}
}
.nav {
&.nav-tabs-bordered {
border-color: $color-primary;
& + .tab-content {
border-style: solid;
border-width: 0 1px 1px 1px;
border-color: $color-primary;
padding: 10px 20px 0;
}
.nav-item {
.nav-link {
text-decoration: none;
&:hover {
color: #ffffff;
background-color: $color-primary;
border: 1px solid $color-primary;
}
&.active {
border-color: $color-primary;
border-bottom-color: transparent;
&:hover {
background-color: #ffffff;
color: inherit;
}
}
}
}
}
&.nav-pills {
& + .tab-content {
border: 0;
padding: 5px;
}
.nav-item {
.nav-link {
text-decoration: none;
&:hover {
color: $color-text;
background-color: transparent;
border: 0;
}
&.active {
border-color: $color-primary;
border-bottom-color: transparent;
background-color: $color-primary;
&:hover {
background-color: $color-primary;
color: #ffffff;
}
}
}
}
}
}
@@ -0,0 +1,24 @@
@import "../imports";
#nprogress {
.bar {
background: $color-primary !important;
.peg {
box-shadow: 0 0 10px $color-primary, 0 0 5px $color-primary;
}
}
.spinner {
top: 25px !important;
right: 23px !important;
.spinner-icon {
border-top-color: $color-primary !important;
border-left-color: $color-primary !important;
}
}
}
@@ -0,0 +1,21 @@
@import "../imports";
.pagination {
margin-top: 0;
.page-item {
.page-link {
color: $color-primary;
}
&.active {
.page-link,
.page-link:focus,
.page-link:hover {
color: #fff;
border-color: $color-primary;
background-color: $color-primary;
}
}
}
}
@@ -0,0 +1,26 @@
@import "../imports";
/* Let's get this party started */
::-webkit-scrollbar {
width: 7px;
height: 7px;
}
/* Track */
::-webkit-scrollbar-track {
// -webkit-box-shadow: inset 0 0 6px #626d77;
// background: #626d77;
-webkit-border-radius: 0;
border-radius: 0;
}
/* Handle */
::-webkit-scrollbar-thumb {
-webkit-border-radius: 0;
border-radius: 0;
background: darken($color-primary, 5%);
// -webkit-box-shadow: inset 0 0 6px $color-primary;
}
::-webkit-scrollbar-thumb:window-inactive {
background: $color-primary;
}
@@ -0,0 +1,14 @@
@import "../imports";
.table {
label {
margin-bottom: 0;
}
.checkbox + span {
margin-bottom: 0;
&:before {
line-height: 20px;
}
}
}