tabs.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. .sm {
  2. position: relative;
  3. z-index: 9999
  4. }
  5. .sm,.sm li,.sm ul {
  6. list-style: none;
  7. margin: 0;
  8. padding: 0;
  9. line-height: normal;
  10. direction: ltr;
  11. text-align: left;
  12. -webkit-tap-highlight-color: transparent
  13. }
  14. .sm,.sm li {
  15. display: block
  16. }
  17. .sm-rtl,.sm-rtl li,.sm-rtl ul {
  18. direction: rtl;
  19. text-align: right
  20. }
  21. .sm>li>h1,.sm>li>h2,.sm>li>h3,.sm>li>h4,.sm>li>h5,.sm>li>h6 {
  22. margin: 0;
  23. padding: 0
  24. }
  25. .sm ul {
  26. display: none
  27. }
  28. .sm a,.sm li {
  29. position: relative
  30. }
  31. .sm a,.sm:after {
  32. display: block
  33. }
  34. .sm a.disabled {
  35. cursor: not-allowed
  36. }
  37. .sm:after {
  38. content: " ";
  39. height: 0;
  40. font: 0/0 serif;
  41. clear: both;
  42. visibility: hidden;
  43. overflow: hidden
  44. }
  45. .sm,.sm *,.sm :after,.sm :before {
  46. -moz-box-sizing: border-box;
  47. -webkit-box-sizing: border-box;
  48. box-sizing: border-box
  49. }
  50. .main-menu-btn {
  51. position: relative;
  52. display: inline-block;
  53. width: 36px;
  54. height: 36px;
  55. text-indent: 36px;
  56. margin-left: 8px;
  57. white-space: nowrap;
  58. overflow: hidden;
  59. cursor: pointer;
  60. -webkit-tap-highlight-color: transparent
  61. }
  62. .main-menu-btn-icon {
  63. top: 50%;
  64. left: 2px
  65. }
  66. .main-menu-btn-icon,.main-menu-btn-icon:after,.main-menu-btn-icon:before {
  67. position: absolute;
  68. height: 2px;
  69. width: 24px;
  70. background: var(--nav-menu-button-color);
  71. -webkit-transition: all .25s;
  72. transition: all .25s
  73. }
  74. .main-menu-btn-icon:before {
  75. content: "";
  76. top: -7px;
  77. left: 0
  78. }
  79. .main-menu-btn-icon:after {
  80. content: "";
  81. top: 7px;
  82. left: 0
  83. }
  84. #main-menu-state:checked~.main-menu-btn .main-menu-btn-icon {
  85. height: 0
  86. }
  87. #main-menu-state:checked~.main-menu-btn .main-menu-btn-icon:before {
  88. top: 0;
  89. -webkit-transform: rotate(-45deg);
  90. transform: rotate(-45deg)
  91. }
  92. #main-menu-state:checked~.main-menu-btn .main-menu-btn-icon:after {
  93. top: 0;
  94. -webkit-transform: rotate(45deg);
  95. transform: rotate(45deg)
  96. }
  97. #main-menu-state {
  98. position: absolute;
  99. width: 1px;
  100. height: 1px;
  101. margin: -1px;
  102. border: 0;
  103. padding: 0;
  104. overflow: hidden;
  105. clip: rect(1px,1px,1px,1px)
  106. }
  107. #main-menu-state:not(:checked)~#main-menu {
  108. display: none
  109. }
  110. #main-menu-state:checked~#main-menu {
  111. display: block
  112. }
  113. @media (min-width:768px) {
  114. .main-menu-btn {
  115. position: absolute;
  116. top: -99999px
  117. }
  118. #main-menu-state:not(:checked)~#main-menu {
  119. display: block
  120. }
  121. }
  122. .sm-dox {
  123. background-color: var(--nav-menu-background-color)
  124. }
  125. .sm-dox a,.sm-dox a:active,.sm-dox a:focus,.sm-dox a:hover {
  126. padding: 0 43px 0 12px;
  127. font-family: var(--font-family-nav);
  128. font-size: 13px;
  129. line-height: 36px;
  130. text-decoration: none;
  131. color: var(--nav-text-normal-color);
  132. outline: 0
  133. }
  134. .sm-dox a:hover {
  135. background-color: var(--nav-menu-active-bg);
  136. border-radius: 5px
  137. }
  138. .sm-dox a.current {
  139. color: #d23600
  140. }
  141. .sm-dox a.disabled {
  142. color: #bbb
  143. }
  144. .sm-dox a span.sub-arrow {
  145. position: absolute;
  146. top: 50%;
  147. margin-top: -14px;
  148. left: auto;
  149. right: 3px;
  150. width: 28px;
  151. height: 28px;
  152. overflow: hidden;
  153. font: 700 12px/28px monospace!important;
  154. text-align: center;
  155. text-shadow: none;
  156. -moz-border-radius: 5px;
  157. -webkit-border-radius: 5px;
  158. border-radius: 5px
  159. }
  160. .sm-dox a span.sub-arrow:before {
  161. display: block;
  162. content: "+"
  163. }
  164. .sm-dox a.highlighted span.sub-arrow:before {
  165. display: block;
  166. content: "-"
  167. }
  168. .sm-dox>li:first-child>:not(ul) a,.sm-dox>li:first-child>a {
  169. -moz-border-radius: 5px 5px 0 0;
  170. -webkit-border-radius: 5px;
  171. border-radius: 5px 5px 0 0
  172. }
  173. .sm-dox>li:last-child>:not(ul) a,.sm-dox>li:last-child>a,.sm-dox>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul {
  174. -moz-border-radius: 0 0 5px 5px;
  175. -webkit-border-radius: 0;
  176. border-radius: 0 0 5px 5px
  177. }
  178. .sm-dox>li:last-child>:not(ul) a.highlighted,.sm-dox>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted {
  179. -moz-border-radius: 0;
  180. -webkit-border-radius: 0;
  181. border-radius: 0
  182. }
  183. .sm-dox ul {
  184. background: var(--nav-menu-background-color)
  185. }
  186. .sm-dox ul a,.sm-dox ul a:active,.sm-dox ul a:focus,.sm-dox ul a:hover {
  187. font-size: 12px;
  188. border-left: 8px solid transparent;
  189. line-height: 36px;
  190. text-shadow: none;
  191. background-color: var(--nav-menu-background-color);
  192. background-image: none
  193. }
  194. .sm-dox ul a:hover {
  195. background-color: var(--nav-menu-active-bg);
  196. border-radius: 5px
  197. }
  198. .sm-dox ul ul a,.sm-dox ul ul a:active,.sm-dox ul ul a:focus,.sm-dox ul ul a:hover {
  199. border-left: 16px solid transparent
  200. }
  201. .sm-dox ul ul ul a,.sm-dox ul ul ul a:active,.sm-dox ul ul ul a:focus,.sm-dox ul ul ul a:hover {
  202. border-left: 24px solid transparent
  203. }
  204. .sm-dox ul ul ul ul a,.sm-dox ul ul ul ul a:active,.sm-dox ul ul ul ul a:focus,.sm-dox ul ul ul ul a:hover {
  205. border-left: 32px solid transparent
  206. }
  207. .sm-dox ul ul ul ul ul a,.sm-dox ul ul ul ul ul a:active,.sm-dox ul ul ul ul ul a:focus,.sm-dox ul ul ul ul ul a:hover {
  208. border-left: 40px solid transparent
  209. }
  210. @media (min-width:768px) {
  211. .sm-dox ul {
  212. position: absolute;
  213. width: 12em;
  214. border: 1px solid #bbb;
  215. padding: 5px 0;
  216. background: var(--nav-menu-background-color);
  217. -moz-border-radius: 5px!important;
  218. -webkit-border-radius: 5px;
  219. border-radius: 5px!important;
  220. -moz-box-shadow: 0 5px 9px rgba(0,0,0,.2);
  221. -webkit-box-shadow: 0 5px 9px rgba(0,0,0,.2);
  222. box-shadow: 0 5px 9px rgba(0,0,0,.2)
  223. }
  224. .sm-dox li {
  225. float: left;
  226. border-top: 0;
  227. padding: 3px
  228. }
  229. .sm-dox.sm-rtl li {
  230. float: right
  231. }
  232. .sm-dox ul li,.sm-dox.sm-rtl ul li,.sm-dox.sm-vertical li {
  233. float: none
  234. }
  235. .sm-dox a {
  236. white-space: nowrap
  237. }
  238. .sm-dox ul a,.sm-dox.sm-vertical a {
  239. white-space: normal
  240. }
  241. .sm-dox .sm-nowrap>li>:not(ul) a,.sm-dox .sm-nowrap>li>a {
  242. white-space: nowrap
  243. }
  244. .sm-dox,.sm-dox a span.sub-arrow {
  245. background-color: var(--nav-menu-background-color)
  246. }
  247. .sm-dox {
  248. padding: 0 10px;
  249. line-height: 36px
  250. }
  251. .sm-dox a span.sub-arrow {
  252. top: 15px;
  253. right: 10px;
  254. box-sizing: content-box;
  255. padding: 0;
  256. margin: 0;
  257. display: inline-block;
  258. width: 5px;
  259. height: 5px;
  260. border-right: 2px solid var(--nav-arrow-color);
  261. border-bottom: 2px solid var(--nav-arrow-color);
  262. transform: rotate(45deg);
  263. -moz-border-radius: 0;
  264. -webkit-border-radius: 0;
  265. border-radius: 0
  266. }
  267. .sm-dox a,.sm-dox a.highlighted,.sm-dox a:active,.sm-dox a:focus,.sm-dox a:hover {
  268. padding: 0 6px
  269. }
  270. .sm-dox a:hover {
  271. background-color: var(--nav-menu-active-bg);
  272. border-radius: 5px!important
  273. }
  274. .sm-dox a:hover span.sub-arrow {
  275. background-color: var(--nav-menu-active-bg);
  276. border-right: 2px solid var(--nav-arrow-selected-color);
  277. border-bottom: 2px solid var(--nav-arrow-selected-color)
  278. }
  279. .sm-dox a.has-submenu {
  280. padding-right: 24px
  281. }
  282. .sm-dox>li>ul:after,.sm-dox>li>ul:before {
  283. content: "";
  284. position: absolute;
  285. top: -18px;
  286. left: 30px;
  287. width: 0;
  288. height: 0;
  289. overflow: hidden;
  290. border-width: 9px;
  291. border-style: dashed dashed solid;
  292. border-color: transparent transparent #bbb
  293. }
  294. .sm-dox>li>ul:after {
  295. top: -16px;
  296. left: 31px;
  297. border-width: 8px;
  298. border-color: transparent transparent var(--nav-menu-background-color) transparent
  299. }
  300. .sm-dox ul a span.sub-arrow {
  301. transform: rotate(-45deg);
  302. top: 3px;
  303. }
  304. .sm-dox ul a,.sm-dox ul a.highlighted,.sm-dox ul a:active,.sm-dox ul a:focus,.sm-dox ul a:hover {
  305. color: var(--nav-menu-foreground-color);
  306. background-image: none;
  307. line-height: normal;
  308. border: 0!important
  309. }
  310. .sm-dox ul a:hover {
  311. background-color: var(--nav-menu-active-bg);
  312. border-radius: 5px
  313. }
  314. .sm-dox span.scroll-down,.sm-dox span.scroll-up {
  315. position: absolute;
  316. display: none;
  317. visibility: hidden;
  318. overflow: hidden;
  319. background: var(--nav-menu-background-color);
  320. height: 36px
  321. }
  322. .sm-dox span.scroll-down:hover,.sm-dox span.scroll-up:hover {
  323. background: #eee
  324. }
  325. .sm-dox span.scroll-up:hover span.scroll-down-arrow,.sm-dox span.scroll-up:hover span.scroll-up-arrow {
  326. border-color: transparent transparent #d23600
  327. }
  328. .sm-dox span.scroll-down:hover span.scroll-down-arrow {
  329. border-color: #d23600 transparent transparent
  330. }
  331. .sm-dox span.scroll-down-arrow,.sm-dox span.scroll-up-arrow {
  332. position: absolute;
  333. top: 0;
  334. left: 50%;
  335. margin-left: -6px;
  336. width: 0;
  337. height: 0;
  338. overflow: hidden;
  339. border-width: 6px;
  340. border-style: dashed dashed solid;
  341. border-color: transparent transparent var(--nav-menu-foreground-color) transparent
  342. }
  343. .sm-dox span.scroll-down-arrow {
  344. top: 8px;
  345. border-style: solid dashed dashed;
  346. border-color: var(--nav-menu-foreground-color) transparent transparent transparent
  347. }
  348. .sm-dox.sm-rtl a.has-submenu {
  349. padding-right: 6px;
  350. padding-left: 24px
  351. }
  352. .sm-dox.sm-rtl a span.sub-arrow {
  353. right: auto;
  354. left: 6px
  355. }
  356. .sm-dox.sm-rtl.sm-vertical a.has-submenu,.sm-dox.sm-vertical a,.sm-dox.sm-vertical ul a {
  357. padding: 10px 20px
  358. }
  359. .sm-dox.sm-rtl ul a span.sub-arrow,.sm-dox.sm-rtl.sm-vertical a span.sub-arrow {
  360. right: auto;
  361. left: 8px;
  362. border-style: dashed solid dashed dashed;
  363. border-color: transparent #555 transparent transparent
  364. }
  365. .sm-dox.sm-rtl>li>ul:before {
  366. left: auto;
  367. right: 30px
  368. }
  369. .sm-dox.sm-rtl>li>ul:after {
  370. left: auto;
  371. right: 31px
  372. }
  373. .sm-dox.sm-rtl ul a.has-submenu {
  374. padding: 10px 20px!important
  375. }
  376. .sm-dox.sm-vertical {
  377. padding: 10px 0;
  378. -moz-border-radius: 5px;
  379. -webkit-border-radius: 5px;
  380. border-radius: 5px
  381. }
  382. .sm-dox.sm-vertical a.highlighted,.sm-dox.sm-vertical a:active,.sm-dox.sm-vertical a:focus,.sm-dox.sm-vertical a:hover {
  383. background: #fff
  384. }
  385. .sm-dox.sm-vertical a span.sub-arrow {
  386. right: 8px;
  387. top: 50%;
  388. margin-top: -5px;
  389. border-width: 5px;
  390. border-style: dashed dashed dashed solid;
  391. border-color: transparent transparent transparent #555
  392. }
  393. .sm-dox.sm-vertical>li>ul:after,.sm-dox.sm-vertical>li>ul:before {
  394. display: none
  395. }
  396. .sm-dox.sm-vertical ul a.highlighted,.sm-dox.sm-vertical ul a:active,.sm-dox.sm-vertical ul a:focus,.sm-dox.sm-vertical ul a:hover {
  397. background: #eee
  398. }
  399. .sm-dox.sm-vertical ul a.disabled {
  400. background: var(--nav-menu-background-color)
  401. }
  402. }