body{ // prevent marking text -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: default; } .pf-body{ overflow: hidden; } a, .pf-link{ color: $teal; will-change: color; text-decoration: none; cursor: pointer; @include transition( color 0.08s ease-out, background-color 0.08s ease-out ); &:hover{ color: $teal-lightest; text-decoration: none; } &:focus{ color: $teal; } } em{ font-style: italic; &.pf-brand{ text-transform: uppercase; } } .pf-font-capitalize{ text-transform: capitalize; } .pf-font-line-through{ text-decoration: line-through; } .no-scroll{ overflow: hidden; } .no-padding{ padding: 0 !important; } // scroll bar (webkit only) ======================================================================= ::-webkit-scrollbar { display: none; // hides the scrollbar but is still scrollable width: 16px; height: 16px; } ::-webkit-scrollbar-track { background-color: $gray-darker; border-left: 1px solid $gray-dark; border-radius: 2px; @include transition( background-color .5s ); } ::-webkit-scrollbar-thumb { height: 6px; border: 5px solid transparent; background-clip: padding-box; -webkit-border-radius: 8px; background-color: lighten($gray, 30%); &:hover{ background-color: lighten($gray, 40%); } } ::-webkit-scrollbar-button { width: 0; height: 0; display: none; } ::-webkit-scrollbar-corner { background-color: transparent; } // text selection ================================================================================= ::selection{ background: $gray-lighter; /* WebKit/Blink Browsers */ color: $gray-darkest; } ::-moz-selection{ background: $gray-lighter; /* Gecko Browsers */ color: $gray-darkest; } // help elements ================================================================================== .pf-help-light{ @extend .txt-color; @extend .txt-color-grayLight; @extend .pf-help-default; } .pf-help{ @extend .txt-color; @extend .txt-color-gray; @extend .pf-help-default; } .pf-help-default{ cursor: help; @include transition( color 0.08s ease-out ); &:hover{ @extend .txt-color-blue; } } // icon buttons =================================================================================== .pf-dialog-icon-button{ cursor: pointer; margin-top: 2px; @include transition(color 0.15s ease-out); &:not(.collapsed), &:hover{ color: $orange; } } .pf-module-icon-button{ cursor: pointer; color: $gray-light; // overwrite xEditable button style @include transition(color 0.15s ease-out); &:hover, &.active{ color: $orange !important; } &.editable{ border-bottom: none !important; // overwrite xEditable button style } } .pf-module-icon-button-copy{ cursor: copy; -moz-user-select: text; user-select: text; } // links ========================================================================================== a{ &.disabled{ color: $navbar-default-link-color; pointer-events: none; cursor: default; } } // alert messages ================================================================================= .alert{ will-change: opacity, transform; } // form fields custom styles ====================================================================== .editable-input{ .pf-editable-name{ text-transform: uppercase; } optgroup[label]{ background-color: $gray; color: $gray-light; option{ background-color: $gray-dark; color: $gray-lighter; font-family: $font-family-monospace; } } .editable-checklist{ & > div > label { @extend .checkbox; display: block !important; padding-left: 20px !important; // overwrite inline-form styles color: $gray-lighter; & > span { @extend label; &:after{ top: -2px; } } } .pf-editable-unknown[value='0'] + span { color: $red; } } } select:active, select:hover { outline: none } /* make it red instead (with with same width and style) */ select:active, select:hover { outline-color: red } // select2 custom template ======================================================================== .select2-results{ // options .select2-results__options--nested{ .select2-results__option{ padding-left: 15px; // more padding for nested options } } [class*="col-"]{ // smaller and less padding padding-left: 3px; padding-right: 3px; } .clearfix.pf-result-image [class*="col-"]{ line-height: 22px; // options with images need more height } } .select2{ ::-webkit-search-cancel-button{ -webkit-appearance: none !important; } .select2-selection__choice__remove{ float: left; } .select2-selection--multiple{ input{ box-shadow: none !important; } } } // global dataTable styles ======================================================================== .dataTables_wrapper{ .dataTables_length select{ margin: 0 3px; //