Blame view

WebRoot/static/ace/css/less/sidebar/sub-arrow.less 812 Bytes
ad5081d3   孙向锦   初始化项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  //the arrow connecting "LI" to ".SUBMENU"
  //-li > .arrow
  .nav-list li {
   > .arrow {
  	display: none;
  
  	position: absolute;
  	top: 8px;
  	right: 1px;
  	
  	z-index: @zindex-submenu + 1;
  
  	&:before, &:after {
  		border: 1px solid transparent;
  		display: block;
  		height: 0;
  		width: 0;
  
  		position: absolute;
  		left: -20px;
  		top: 0;
  		right: auto;
  		bottom: auto;
  
  		content: "";
  		
  		border-width: 10px;
  	}
  	
  	&:before {
  		z-index: 1;//above .submenu
  		left: -21px;
  	}
  	&:after {
  		z-index: 2;//above .arrow:before
  	}
   }
  
   //don't display when there's no submenu
   &:hover > a + .arrow , &.hover-show > a + .arrow {
  	display: none;
   }
   
   @media only screen and (min-width: @screen-hover-menu) {
    &.hover:hover > a.dropdown-toggle + .arrow,
    &.hover.hover-show > a.dropdown-toggle + .arrow
    {
  	display: block;
    }
   }
  }