You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

420 lines
11 KiB

  1. /**
  2. * This file provides the design styles for the metatabbox
  3. */
  4. #spr__meta-box {
  5. .display-flex();
  6. .flex-direction();
  7. .justify-content(flex-end);
  8. position: relative;
  9. float: right;
  10. max-width: 40%;
  11. margin-top: -(@page_padding-top); // reverse padding-top of .page container
  12. margin-right: -1px;
  13. // >= 1024
  14. @media @screen_min-md {
  15. height: @page-header_height;
  16. border: 1px solid transparent;
  17. }
  18. // < 1024
  19. @media @screen_max-md {
  20. position: relative;
  21. top: .2rem;
  22. right: auto;
  23. float: none;
  24. max-width: 100%;
  25. min-height: @page-header_height;
  26. height: auto;
  27. border: 0 none;
  28. }
  29. &.sticky {
  30. position: fixed;
  31. top: 0;
  32. ul.meta-tabs > li > a {
  33. border-top-color: @ini_background_site;
  34. border-bottom-color: @noopentasks-border;
  35. border-radius: 0 0 @ini_default_border_radius @ini_default_border_radius;
  36. }
  37. .meta-content .tab-pane.active {
  38. max-height: 80vh;
  39. overflow: auto;
  40. }
  41. }
  42. + .msg-area + a {
  43. clear: right;
  44. margin-top: 20px;
  45. }
  46. .tab-container {
  47. display: table;
  48. @media @screen_max-md {
  49. display: block;
  50. width: 100%;
  51. }
  52. }
  53. .box-content {
  54. position: relative;
  55. height: 0;
  56. overflow-y: visible;
  57. }
  58. /* + + + + + tab controls + + + + + */
  59. ul.meta-tabs {
  60. list-style: none;
  61. line-height: 160%;
  62. margin: 0;
  63. padding: 0;
  64. @media @screen_min-md {
  65. white-space: nowrap;
  66. text-align: right;
  67. }
  68. &::before,
  69. &::after {
  70. content: '';
  71. clear: both;
  72. display: table;
  73. box-sizing: border-box;
  74. }
  75. > li:first-child {
  76. > a {
  77. margin-left: 0;
  78. }
  79. }
  80. > li {
  81. position: relative;
  82. display: inline-block;
  83. vertical-align: bottom;
  84. margin: 0;
  85. @media @screen_min-md {
  86. margin-left: .3rem;
  87. }
  88. @media @screen_max-md {
  89. margin-right: .4rem;
  90. margin-bottom: .2rem;
  91. }
  92. > a {
  93. cursor: pointer;
  94. position: relative;
  95. display: block;
  96. font-size: @font-size-small;
  97. transition: @transition background-color, @transition border-color, @transition color;
  98. @media @screen_min-md {
  99. background-color: @ini_background_site;
  100. border: 1px solid @noopentasks-border;
  101. border-bottom-color: @ini_background_site;
  102. border-radius: @ini_default_border_radius @ini_default_border_radius 0 0; // @ini_default_border_radius vs. @fix_border-radius
  103. color: @ini_nav_menu_color;
  104. margin-left: 4px;
  105. padding: .3em 1rem .1em;
  106. }
  107. @media @screen_max-md {
  108. background-color: @ini_background;
  109. top: 0;
  110. border: 1px solid @ini_existing;
  111. color: @ini_existing;
  112. margin-top: .2rem;
  113. margin-left: 0;
  114. padding: .2em .3rem;
  115. }
  116. * {
  117. cursor: pointer;
  118. color: inherit;
  119. font-size: inherit;
  120. }
  121. .prefix {
  122. position: relative;
  123. color: inherit;
  124. font-size: @font-size-small;
  125. }
  126. &:hover,
  127. &:focus,
  128. &:active {
  129. text-decoration: none;
  130. @media @screen_min-md {
  131. background-color: @ini_background;
  132. border-color: @ini_existing;
  133. color: @ini_existing;
  134. }
  135. @media @screen_max-md {
  136. background-color: @ini_existing;
  137. border-color: @ini_background;
  138. color: @ini_background;
  139. }
  140. }
  141. }
  142. &.active {
  143. > a {
  144. cursor: default;
  145. background-color: @ini_background;
  146. border-color: @ini_existing;
  147. border-bottom-color: @ini_background;
  148. color: @ini_existing;
  149. @media @screen_max-md {
  150. background-color: @ini_existing;
  151. border-bottom-color: @ini_existing;
  152. border-radius: 0;
  153. color: @ini_background;
  154. }
  155. }
  156. }
  157. }
  158. }
  159. /* + + + + + toggle content + + + + + */
  160. .meta-content {
  161. margin-top: -1px;
  162. @media @screen_max-md {
  163. clear: both;
  164. margin-top: 2px;
  165. }
  166. .tab-pane {
  167. position: absolute;
  168. top: 0;
  169. right: 0;
  170. display: none;
  171. width: 100%;
  172. background-color: @ini_background;
  173. border: 1px solid @ini_existing;
  174. @media @screen_min-xs {
  175. min-width: 20em;
  176. }
  177. @media @screen_min-md {
  178. border-radius: 0 0 @fix_border-radius @fix_border-radius; // @ini_default_border_radius vs. @fix_border-radius
  179. }
  180. &.active {
  181. display: block;
  182. }
  183. a {
  184. color: @ini_existing;
  185. }
  186. > div {
  187. font-size: @font-size-small;
  188. padding: .8rem .5rem .5rem;
  189. * {
  190. font-size: inherit;
  191. }
  192. p {
  193. padding-left: 1em;
  194. }
  195. ul {
  196. list-style: none;
  197. padding-left: 0;
  198. }
  199. li {
  200. list-style-image: none; // overwrite universally styles
  201. margin-left: 0;
  202. padding-left: 1em;
  203. }
  204. }
  205. &#spr__tab-tags {
  206. > div {
  207. ul {
  208. li {
  209. padding-left: 0;
  210. }
  211. }
  212. }
  213. }
  214. #dw__toc {
  215. width: auto;
  216. float: none;
  217. margin: 0;
  218. padding: .6rem .5rem .5rem .8rem;
  219. background: transparent;
  220. border: 0 none;
  221. h3 {
  222. display: none;
  223. }
  224. > div {
  225. padding: 0;
  226. }
  227. > div ul.toc {
  228. font-size: @font-size-small;
  229. padding-left: .5em;
  230. a {
  231. font-size: @font-size-small;
  232. display: inline-block;
  233. padding-left: 10px;
  234. position: relative;
  235. }
  236. div.li {
  237. position: relative;
  238. padding: .15em 0;
  239. &::before {
  240. content: '';
  241. position: absolute;
  242. top: .6em;
  243. left: 0;
  244. display: inline-block;
  245. width: 4px;
  246. height: 4px;
  247. overflow: hidden;
  248. background-color: @ini_existing;
  249. }
  250. }
  251. }
  252. > div > ul.toc {
  253. padding: 0;
  254. }
  255. }
  256. }
  257. }
  258. /* + + + + + tab issues + + + + + */
  259. #spr__tab-issues {
  260. ul.mmissuelist {
  261. padding-left: 0;
  262. margin-top: 1rem;
  263. li {
  264. &.noissue {
  265. font-size: @font-size-small;
  266. list-style-type: none;
  267. margin-left: 0;
  268. .li {
  269. font-size: @font-size-small;
  270. margin-left: .5rem;
  271. }
  272. }
  273. a {
  274. display: inline-block;
  275. }
  276. }
  277. img {
  278. vertical-align: bottom;
  279. margin-right: .3rem;
  280. }
  281. .mm__status {
  282. padding-left: .3rem;
  283. padding-right: .3rem;
  284. }
  285. form {
  286. vertical-align: text-top;
  287. }
  288. }
  289. }
  290. /* + + + + + tab issues + + + + + */
  291. /* see plugins/magic-matcher.less */
  292. #spr__tab-issues {
  293. ul.mmissuelist {
  294. padding-left: 0;
  295. margin-top: .5rem;
  296. margin-bottom: .6rem;
  297. li {
  298. list-style-type: none;
  299. margin-top: .3rem;
  300. margin-left: .5rem;
  301. &.noissue {
  302. list-style-type: none;
  303. margin-left: 0;
  304. }
  305. }
  306. a {
  307. display: inline-block;
  308. font-size: @font-size-small;
  309. * {
  310. font-size: inherit;
  311. }
  312. }
  313. img {
  314. vertical-align: bottom;
  315. margin-right: .3rem;
  316. }
  317. .mm__status {
  318. display: inline-block;
  319. text-decoration: none;
  320. padding-left: .3rem;
  321. padding-right: .3rem;
  322. }
  323. form {
  324. vertical-align: text-top;
  325. button {
  326. background: @ini_button_background;
  327. border-color: @ini_button_background;
  328. color: @ini_button_color;
  329. font-size: @font-size-small;
  330. padding: .2em .3em;
  331. &[name="removeIssue"] {
  332. min-width: 20px;
  333. font-size: .94rem;
  334. font-weight: bold;
  335. line-height: 95%;
  336. text-align: center;
  337. padding: 0 .1rem .1rem;
  338. margin-left: .5rem;
  339. }
  340. &:hover,
  341. &:focus,
  342. &:active {
  343. background: @ini_button_color;
  344. color: @ini_button_background;
  345. }
  346. }
  347. }
  348. }
  349. }
  350. }