This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0
wcui/src/css/tree.scss

31 lines
904 B
SCSS
Raw Normal View History

2017-09-08 22:23:12 +08:00
@charset "UTF-8";
/**
*
* @authors yutent (yutent@doui.cc)
* @date 2017-04-14 21:18:53
*
*/
@import 'var.scss';
2017-09-08 22:23:12 +08:00
.do-tree {overflow:hidden;overflow-y:auto;position:relative;display:block;width:100%;height:100%;line-height:30px;font-size:15px;color:nth($cd, 2);
&__item {overflow:hidden; min-height:30px;
.sub-tree {display:none;width:100%;padding-left:20px;}
2017-09-08 22:23:12 +08:00
em,span {display:block;cursor:pointer;}
em {float:left;padding:0 5px;font-size:20px;color:nth($cd, 1);}
2017-09-08 22:23:12 +08:00
span {
2018-07-15 19:43:34 +08:00
&:hover {color:nth($cd, 1);}
2018-06-18 23:16:32 +08:00
&.active {color:nth($cd, 3);font-weight:bold;}
&.checkbox {float:left;position:relative;width:18px;height:18px;margin:6px 5px 6px 0;line-height:16px;border:1px solid nth($cd, 2);border-radius:3px; font-size:16px;text-align:center;}
&.label { white-space:nowrap; text-overflow:ellipsis;}
}
}
&__item.open>.sub-tree {display:block;}
2017-09-08 22:23:12 +08:00
}