Warning, /webapps/ocs-webserver/httpdocs/theme/flatui/less/modules/dropdown.less is written in an unsupported language. File is not indexed.
0001 // 0002 // Dropdown 0003 // -------------------------------------------------- 0004 0005 .dropdown-menu { 0006 background-color: @dropdown-background; 0007 border: none; 0008 display: block; 0009 margin-top: 8px; 0010 opacity: 0; 0011 padding: 0; 0012 visibility: hidden; 0013 width: 100%; 0014 .box-shadow(none); 0015 .transition(.25s); 0016 0017 &.typeahead { 0018 display: none; 0019 opacity: 1; 0020 visibility: visible; 0021 width: auto; 0022 margin-top: 2px; 0023 } 0024 0025 // Opened state 0026 .open > & { 0027 margin-top: 18px; 0028 opacity: 1; 0029 visibility: visible; 0030 } 0031 li { 0032 &:first-child { 0033 dt + a { 0034 border-radius: 0; 0035 } 0036 > a { 0037 border-radius: 6px 6px 0 0; 0038 padding-top: 8px; 0039 } 0040 } 0041 0042 &:last-child { 0043 > a { 0044 border-radius: 0 0 6px 6px; 0045 padding-bottom: 10px; 0046 } 0047 } 0048 0049 &.active, 0050 &.selected { 0051 > a, 0052 > a.highlighted { 0053 background: @firm; 0054 color: @inverse; 0055 0056 &:hover, 0057 &:focus { 0058 background: mix(@firm, black, 85%); 0059 color: @inverse; 0060 } 0061 } 0062 } 0063 > a { 0064 color: fade(@base, 75%); 0065 padding: 6px 15px 8px; 0066 text-decoration: none; 0067 .clearfix(); 0068 .transition(background-color 0.25s); 0069 0070 &:hover, 0071 &:active, 0072 &:focus { 0073 background: mix(@inverse, @base, 85%); 0074 color: inherit; 0075 outline: none; 0076 } 0077 0078 &.highlighted { 0079 background: mix(@inverse, @base, 73.5%); 0080 color: @inverse; 0081 0082 &:hover, 0083 &:focus { 0084 background: mix(@inverse, @base, 66%); 0085 color: @inverse; 0086 } 0087 } 0088 0089 &:before { 0090 float: right; 0091 margin-top: 3px; 0092 } 0093 } 0094 0095 // Submenu title 0096 dt { 0097 font-weight: 300; 0098 margin-bottom: 3px; 0099 margin-top: 12px; 0100 padding: 0 15px; 0101 } 0102 } 0103 } 0104 0105 // Dropdown expands to top 0106 .dropup, 0107 .navbar-fixed-bottom .dropdown { 0108 .dropdown-menu { 0109 margin-bottom: 8px; 0110 } 0111 .dropdown-arrow { 0112 border-bottom: none; 0113 border-top: 8px outset mix(@inverse, @base, 94%); 0114 bottom: 100%; 0115 top: auto; 0116 } 0117 } 0118 0119 // Second level nav 0120 .navbar-fixed-bottom .nav > li > ul:before { 0121 border-bottom: none; 0122 border-top: 9px outset @base; 0123 bottom: 4px; 0124 top: auto; 0125 } 0126 0127 .open { 0128 &.dropup { 0129 > .dropdown-menu { 0130 margin-bottom: 18px; 0131 } 0132 > .dropdown-arrow { 0133 margin-bottom: 10px; 0134 0135 &.dropdown-arrow-inverse { 0136 border-top-color: @base; 0137 } 0138 } 0139 } 0140 > .dropdown-arrow { 0141 margin-top: 9px; 0142 opacity: 1; 0143 } 0144 } 0145 0146 // Arrows 0147 // -------------------------------------------------- 0148 .dropdown-arrow { 0149 border-style: solid; 0150 border-width: 0 9px 9px 9px; 0151 border-color: transparent transparent mix(@inverse, @base, 94%) transparent; 0152 height: 0; 0153 margin-top: 0; 0154 opacity: 0; 0155 position: absolute; 0156 right: 13px; 0157 top: 100%; 0158 width: 0; 0159 z-index: 10; 0160 -webkit-transform: rotate(360deg); // Make corners smooth 0161 .transition(.25s); 0162 } 0163 0164 // Alternate Color 0165 // -------------------------------------------------- 0166 .dropdown-inverse { 0167 background-color: @base; 0168 color: mix(@inverse, black, 80%); 0169 padding: 4px 0 6px; 0170 0171 li { 0172 margin: 0 4px -2px; 0173 &:first-child, 0174 &:last-child { 0175 > a { 0176 border-radius: 2px; 0177 padding-bottom: 7px; 0178 padding-top: 5px; 0179 } 0180 dt + a { 0181 border-radius: 2px; 0182 } 0183 } 0184 0185 &.active, 0186 &.selected { 0187 > a { 0188 background: @firm; 0189 color: @inverse; 0190 position: relative; 0191 z-index: 1; 0192 } 0193 } 0194 dt { 0195 padding-left: 11px; 0196 padding-right: 11px; 0197 } 0198 .divider { 0199 margin-left: 11px; 0200 margin-right: 11px; 0201 } 0202 > a { 0203 border-radius: 2px; 0204 color: @inverse; 0205 padding: 5px 11px 7px; 0206 0207 &:hover, 0208 &:active, 0209 &:focus { 0210 background: mix(@base, black, 85%); 0211 } 0212 &.highlighted { 0213 background: mix(@base, @inverse, 85%); 0214 &:hover, 0215 &:focus { 0216 background: mix(@base, @inverse, 75%); 0217 } 0218 } 0219 } 0220 .divider { 0221 background-color: mix(@base, white, 85%); 0222 border-bottom-color: mix(@base, white, 85%); 0223 } 0224 } 0225 }