123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- // other solution : http://stackoverflow.com/questions/1577598/how-to-hide-parts-of-html-when-javascript-is-disabled/13857783#13857783
- html.no-js .hide_if_nojs {
- display: none;
- }
- html.js .show_if_nojs {
- display: none;
- }
- .center {
- text-align: center;
- }
- .right {
- float: right ;
- }
- .left {
- float: left;
- }
- .invisible {
- display: none;
- }
- .danger {
- background-color: @color-error-background;
- }
- .badge {
- display: inline-block;
- color: #fff;
- background-color: #777;
- text-align: center;
- white-space: nowrap;
- vertical-align: baseline;
- min-width: 10px;
- padding: 1px 5px;
- border-radius: 5px;
- }
- // table
- table {
- width: 100%;
- &.striped {
- tr {
- border-bottom: 1px solid @color-settings-tr-hover;
- }
- }
- }
- th {
- padding: 0.4em;
- }
- td {
- padding: 0 4px;
- }
- tr {
- &:hover {
- background: @color-settings-tr-hover;
- }
- }
- // dialog
- .dialog() {
- position: relative;
- width: 70%;
- padding: 1em 1em 1em 2.7em;
- margin: 0em 8% 1em 8%;
- border: 1px solid black;
- border-radius: 4px;
- text-align: left;
- &:before {
- position: absolute;
- top: 0.5em;
- left: 0.5em;
- font-family:"ion";
- font-size: 1.5em;
- }
- .close {
- float:right;
- position: relative;
- top: -3px;
- color: inherit;
- font-size: 1.5em;
- }
- ul, ol, p {
- margin: 1px 0 0 0;
- }
- }
- .dialog-error {
- .dialog();
- color: @color-error;
- background: @color-error-background;
- border-color: @color-error;
- .ion-error();
- }
- .dialog-warning {
- .dialog();
- color: @color-warning;
- background: @color-warning-background;
- border-color: @color-warning;
- .ion-warning();
- }
- // btn-collapse
- .btn-collapse {
- cursor: pointer;
- }
- //
- .scrollx {
- overflow-x: auto;
- overflow-y: hidden;
- display: block;
- padding: 0;
- margin: 0;
- border: none;
- }
- // tabs
- .tabs .tabs > label {
- font-size: 90%;
- }
- .tabs {
- .flexbox();
- flex-wrap: wrap;
- width: 100%;
- min-width: 100%;
- & > * {
- order: 2;
- }
- & > input[type=radio] {
- display: none;
- }
- & > label {
- order: 1;
- padding: 0.7em;
- margin: 0 0.7em;
- letter-spacing:0.5px;
- text-transform: uppercase;
- border: solid white;
- border-width: 0px 0px 2px 0;
- .disable-user-select();
- cursor: pointer;
- }
- & > label:hover {
- border-bottom: 2px solid @color-categories-item-border-selected;
- }
- & > section {
- min-width: 100%;
- padding: 0.7rem 0;
- box-sizing: border-box;
- border-top: 1px solid black;
- display: none;
- }
- // default selection
- & > label:last-of-type {
- border-bottom: 2px solid @color-categories-item-border-selected;
- background: @color-categories-item-selected;
- color: @color-categories-item-selected-font;
- font-weight: bold;
- letter-spacing:-0.1px;
- }
- & > section:last-of-type {
- display: block;
- }
- }
- html body .tabs > input:checked {
- ~ section {
- display: none;
- }
- ~ label {
- position: inherited;
- background: inherit;
- border-bottom: 2px solid transparent;
- font-weight: normal;
- color: inherit;
- &:hover {
- border-bottom: 2px solid @color-categories-item-border-selected;
- }
- }
- + label {
- border-bottom: 2px solid @color-categories-item-border-selected;
- background: @color-categories-item-selected;
- color: @color-categories-item-selected-font;
- font-weight: bold;
- letter-spacing:-0.1px;
- }
- + label + section {
- display: block;
- }
- }
- // select
- select {
- height: 28px;
- margin: 0 1em 0 0;
- padding: 2px 8px 2px 0 !important;
- color: @color-search-font;
- font-size: 12px;
- z-index: 2;
- &:hover, &:focus {
- cursor: pointer;
- }
- }
- @supports ((background-position-x: 100%) and ((appearance: none) or (-webkit-appearance: none) or (-moz-appearance: none))) {
- select {
- appearance: none;
- -webkit-appearance: none;
- -moz-appearance: none;
- border: none;
- border-bottom: 1px solid #d7d7d7;
- background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MTJweCIgaGVpZ2h0PSI1MTJweCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDUxMiA1MTIiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTI4LDE5MiAyNTYsMzIwIDM4NCwxOTIiLz48L2c+PC9zdmc+Cg==) no-repeat;
- background-position-x: 105%;
- background-size: 2em;
- background-origin: content-box;
- outline: medium none;
- &:hover, &:focus {
- border-bottom: 1px solid @color-search-border;
- }
- }
- }
- // checkbox-onoff
- @supports (border-radius: 50px) {
- .checkbox-onoff {
- display: inline-block;
- width: 40px;
- height: 10px;
- background: #dcdcdc;
- margin: 8px auto;
- position: relative;
- border-radius: 50px;
- label {
- display: block;
- width: 20px;
- height: 20px;
- position: absolute;
- top: -5px;
- cursor: pointer;
- border-radius: 50px;
- box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.3);
- transition: all 0.4s ease;
- left: 27px;
- background-color: #3498DB;
- }
- input[type=checkbox] {
- visibility: hidden;
- &:checked + label {
- left: -5px;
- background: #dcdcdc;
- }
- }
- }
- }
- // checkbox
- @supports (transform: rotate(-45deg)) {
- .checkbox {
- width: 20px;
- position: relative;
- margin: 20px auto;
- label {
- width: 20px;
- height: 20px;
- cursor: pointer;
- position: absolute;
- top: 0;
- left: 0;
- background: white;
- border-radius: 4px;
- box-shadow: inset 0px 1px 1px white, 0px 1px 4px rgba(0,0,0,0.5);
- &:after {
- content: '';
- width: 9px;
- height: 5px;
- position: absolute;
- top: 4px;
- left: 4px;
- border: 3px solid #333;
- border-top: none;
- border-right: none;
- background: transparent;
- opacity: 0;
- transform: rotate(-45deg);
- }
- }
- input[type=checkbox] {
- visibility: hidden;
- &:checked + label:after {
- border-color: #3498DB;
- opacity: 1;
- }
- }
- // disabled : can't be focused, show only the check mark
- input[disabled] + label {
- background-color: transparent !important;
- box-shadow: none !important;
- cursor: inherit;;
- }
- // if not checked and possible to checked then display a "light" check mark on hover
- input:not(:checked):not([readonly]):not([disabled]) + label:hover::after {
- opacity: 0.5;
- }
- }
- }
- @media screen and (max-width: 50em) {
- .tabs > label {
- width: 100%;
- }
- }
|