| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- /*-------------------------------------
- zTree Style using fontawesome instead of images
- version: 1.1
- author: Mike King
- email: mikkelking @ hotmail . com
- website: http://code.google.com/p/jquerytree/
- -------------------------------------*/
- /* Definitions ----------------------*/
- @font-size: 12px;
- // Regular icon and text color is white, which suits any medium -> dark background
- @color-normal: white;
- // Background color
- @color-bg: #af0000;
- // Highlight color
- @color-highlight: yellow;
- // Partially selected (checkboxes, radio buttons)
- @color-partial: #aaaaaa;
- // Partially selected and focused (checkboxes, radio buttons)
- @color-partfocus: #cad96c;
- // Disabled altogether
- @color-disabled: #808080;
- // Editing color
- @color-edit: yellow;
- @w: 15px;
- @h: 17px;
- @pad-left: 2px;
- @pad-top: 10px;
- /* End of Definitions ---------------*/
- /* Imports -------------------------*/
- @import "fa.less";
- /* End of Imports ------------------*/
- .ztree * {
- padding: 0;
- margin: 0;
- font-size: @font-size;
- font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif;
- background-color: @color-bg;
- }
- .ztree {
- margin: 0;
- padding: 5px;
- color: @color-normal;
- background-color: @color-bg;
- li {
- padding: 0;
- margin: 0;
- list-style: none;
- line-height: 17px;
- text-align: left;
- white-space: nowrap;
- outline: 0;
- ul {
- margin: 0px;
- padding: 0 0 0 18px;
- }
- ul.line {
- }
- a {
- padding-right: 3px;
- margin: 0;
- cursor: pointer;
- height: @h;
- color: @color-normal;
- background-color: transparent;
- text-decoration: none;
- vertical-align: top;
- display: inline-block;
- input.rename {
- height: 14px;
- width: 80px;
- padding: 0;
- margin: 0;
- color: @color-bg;
- background-color: @color-normal;
- font-size: @font-size;
- border: 1px #585956 solid;
- *border: 0px
- }
- }
- a:hover {
- text-decoration: underline
- }
- a.curSelectedNode {
- padding-top: 0px;
- background-color: #af4040;
- color: @color-highlight;
- height: @h;
- opacity: 0.8;
- }
- a.curSelectedNode_Edit {
- padding-top: 0px;
- background-color: transparent;
- color: @color-highlight;
- height: @h;
- border: 1px #666 solid;
- opacity: 0.8;
- }
- a.tmpTargetNode_inner {
- padding-top: 0px;
- background-color: #aaa;
- color: @color-highlight;
- height: @h;
- border: 1px #666 solid;
- opacity: 0.8;
- filter: alpha(opacity=80)
- }
- a.tmpTargetNode_prev {
- }
- a.tmpTargetNode_next {
- }
- span {
- line-height: @h;
- margin-right: 2px;
- background-color: transparent;
- }
- span.button {
- line-height: 0;
- margin: 0;
- padding: 0;
- width: @w;
- height: @h;
- display: inline-block;
- vertical-align: top;
- border: 0px solid;
- cursor: pointer;
- outline: none;
- background-color: transparent;
- background-repeat: no-repeat;
- background-attachment: scroll;
- &::before {
- color: @color-normal;
- font-family: FontAwesome;
- padding-top: @pad-top;
- }
- &.chk {
- margin: 0px;
- cursor: auto;
- width: 12px;
- display: inline-block;
- padding-top: @pad-top;
- padding-left: @pad-left;
- &.checkbox_false_full::before {
- content: @fa-square-o;
- }
- &.checkbox_false_full_focus::before {
- content: @fa-square-o;
- color: @color-highlight;
- }
- &.checkbox_false_part::before {
- content: @fa-square-o;
- color: @color-partial;
- }
- &.checkbox_false_part_focus::before {
- content: @fa-square-o;
- color: @color-partfocus;
- }
- &.checkbox_false_disable::before {
- content: @fa-square-o;
- color: @color-disabled;
- }
- &.checkbox_true_full::before {
- content: @fa-check-square-o;
- }
- &.checkbox_true_full_focus::before {
- content: @fa-check-square-o;
- }
- &.checkbox_true_part::before {
- content: @fa-check-square;
- }
- &.checkbox_true_part_focus::before {
- content: @fa-check-square;
- color: @color-highlight
- }
- &.checkbox_true_full_focus::before {
- content: @fa-check-square-o;
- color: @color-highlight
- }
- &.checkbox_true_part::before {
- content: @fa-check-square-o;
- color: @color-partial
- }
- &.checkbox_true_part_focus::before {
- content: @fa-check-square-o;
- color: @color-partfocus;
- }
- &.checkbox_true_disable::before {
- content: @fa-check-square-o;
- color: @color-disabled
- }
- &.radio_false_full::before {
- content: @fa-circle-o;
- }
- &.radio_false_full_focus::before {
- content: @fa-circle-o;
- color: @color-highlight
- }
- &.radio_false_part::before {
- content: @fa-circle-o;
- color: @color-partial
- }
- &.radio_false_part_focus::before {
- content: @fa-circle-o;
- color: @color-highlight
- }
- &.radio_false_disable::before {
- content: @fa-circle-thin;
- color: @color-disabled
- }
- &.radio_true_full::before {
- content: @fa-dot-circle-o;
- }
- &.radio_true_full_focus::before {
- content: @fa-dot-circle-o;
- color: @color-highlight
- }
- &.radio_true_part::before {
- content: @fa-dot-circle-o;
- color: @color-partial
- }
- &.radio_true_part_focus::before {
- content: @fa-dot-circle-o;
- color: @color-partial;
- }
- &.radio_true_disable::before {
- content: @fa-circle-thin;
- color: @color-disabled
- }
- }
- &.switch {
- width: @w;
- height: @h
- }
- &.root_open::before {
- content: @fa-chevron-down;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- }
- &.root_close::before {
- content: @fa-folder-open-o;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- }
- &.roots_open::before {
- content: @fa-chevron-down;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- }
- &.roots_close::before {
- content: @fa-chevron-right;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- }
- &.center_open::before {
- content: @fa-chevron-down;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- }
- &.center_close::before {
- content: @fa-chevron-right;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- }
- &.bottom_open::before {
- content: @fa-chevron-down;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- }
- &.bottom_close::before {
- content: @fa-chevron-right;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- }
- &.noline_open {
- }
- &.noline_close {
- }
- &.root_docu {
- background: none;
- }
- &.roots_docu::before {
- content: @fa-list-alt;
- padding-left: @pad-left;
- display: inline-block;
- color: @color-normal;
- }
- &.center_docu::before {
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- color: @color-normal;
- }
- &.bottom_docu::before {
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- color: @color-normal;
- }
- &.noline_docu {
- background: none;
- }
- &.ico_open::before {
- content: @fa-folder-open-o;
- font-family: FontAwesome;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- color: @color-normal;
- }
- &.ico_close::before {
- content: @fa-folder-o;
- font-family: FontAwesome;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- color: @color-normal;
- }
- &.ico_docu::before {
- content: @fa-list-alt;
- font-family: FontAwesome;
- padding-top: @pad-top;
- padding-left: @pad-left;
- display: inline-block;
- color: @color-normal;
- }
- &.edit {
- margin-left: 4px;
- margin-right: -1px;
- vertical-align: top;
- *vertical-align: middle;
- padding-top: @pad-top;
- }
- &.edit::before {
- content: @fa-pencil-square-o;
- font-family: FontAwesome;
- }
- &.remove {
- margin-left: 4px;
- margin-right: -1px;
- vertical-align: top;
- *vertical-align: middle;
- padding-top: @pad-top;
- }
- &.remove::before {
- content: @fa-trash;
- font-family: FontAwesome;
- }
- &.add {
- margin-left: 4px;
- margin-right: -1px;
- vertical-align: top;
- *vertical-align: middle;
- padding-top: @pad-top;
- }
- &.add::before {
- content: @fa-plus;
- font-family: FontAwesome;
- }
- &.ico_loading {
- margin-right: 2px;
- background: url(./img/loading.gif) no-repeat scroll 0 0 transparent;
- vertical-align: top;
- *vertical-align: middle
- }
- }
- }
- }
- ul.tmpTargetzTree {
- background-color: #FFE6B0;
- opacity: 0.8;
- filter: alpha(opacity=80)
- }
- // this is the arrow that moves
- span.tmpzTreeMove_arrow {
- width: 16px;
- height: @h;
- display: inline-block;
- padding: 0;
- margin: 2px 0 0 1px;
- border: 0 none;
- position: absolute;
- background-color: transparent;
- background-attachment: scroll;
- }
- span.tmpzTreeMove_arrow::before {
- content: @fa-play;
- font-family: FontAwesome;
- color: @color-highlight;
- }
- // outline
- ul.ztree.zTreeDragUL {
- margin: 0;
- padding: 0;
- position: absolute;
- width: auto;
- height: auto;
- overflow: hidden;
- background-color: #cfcfcf;
- border: 1px @color-highlight dotted;
- opacity: 0.8;
- filter: alpha(opacity=80)
- }
- .ztreeMask {
- z-index: 10000;
- background-color: #cfcfcf;
- opacity: 0.0;
- filter: alpha(opacity=0);
- position: absolute
- }
|