style.less 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. /*
  2. * Extension plugin styles
  3. *
  4. * @author Christopher Smith <chris@jalakai.co.uk>
  5. * @author Piyush Mishra <me@piyushmishra.com>
  6. * @author Håkan Sandell <sandell.hakan@gmail.com>
  7. * @author Anika Henke <anika@selfthinker.org>
  8. */
  9. /**
  10. * very simple lightbox
  11. * @link http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/super-simple-lightbox-with-css-and-jquery/
  12. */
  13. #plugin__extensionlightbox {
  14. position: fixed;
  15. top: 0;
  16. left: 0;
  17. width: 100%;
  18. height: 100%;
  19. background: url(images/overlay.png) repeat;
  20. text-align: center;
  21. cursor: pointer;
  22. z-index: 9999;
  23. p {
  24. text-align: right;
  25. color: #fff;
  26. margin-right: 20px;
  27. font-size: 12px;
  28. }
  29. img {
  30. box-shadow: 0 0 25px #111;
  31. max-width: 90%;
  32. max-height: 90%;
  33. }
  34. }
  35. /**
  36. * general styles
  37. */
  38. #extension__manager {
  39. // tab layout - most of it is in the main template
  40. ul.tabs li.active a {
  41. background-color: @ini_background_alt;
  42. border-bottom: solid 1px @ini_background_alt;
  43. z-index: 2;
  44. }
  45. .panelHeader {
  46. background-color: @ini_background_alt;
  47. margin: 0 0 10px 0;
  48. padding: 10px 10px 8px;
  49. overflow: hidden;
  50. }
  51. // message spacing
  52. div.msg {
  53. margin: 0.4em 0 0 0;
  54. }
  55. }
  56. /*
  57. * extensions table
  58. */
  59. #extension__list {
  60. ul.extensionList {
  61. margin-left: 0;
  62. margin-right: 0;
  63. padding: 0;
  64. list-style: none;
  65. }
  66. ul.extensionList li {
  67. margin: 0 0 .5em;
  68. padding: 0 0 .5em;
  69. color: @ini_text;
  70. border-bottom: 1px solid @ini_border;
  71. overflow: hidden;
  72. }
  73. button {
  74. margin-bottom: .3em;
  75. }
  76. }
  77. /**
  78. * extension table left column
  79. */
  80. #extension__list .legend {
  81. position: relative;
  82. width: 75%;
  83. float: left;
  84. // padding
  85. > div {
  86. padding: 0 .5em 0 132px;
  87. border-right: 1px solid @ini_background_alt;
  88. overflow: hidden;
  89. }
  90. // screenshot
  91. div.screenshot {
  92. margin-top: 4px;
  93. margin-left: -132px;
  94. max-width: 120px;
  95. float: left;
  96. position: relative;
  97. img {
  98. width: 120px;
  99. height: 70px;
  100. border-radius: 5px;
  101. box-shadow: 2px 2px 2px #666;
  102. }
  103. span {
  104. min-height: 24px;
  105. min-width: 24px;
  106. position: absolute;
  107. left: 0;
  108. top: 0;
  109. }
  110. }
  111. // plugin headline
  112. h2 {
  113. width: 100%;
  114. float: right;
  115. margin: 0.2em 0 0.5em;
  116. font-size: 100%;
  117. font-weight: normal;
  118. border: none;
  119. strong {
  120. font-size: 120%;
  121. font-weight: bold;
  122. vertical-align: baseline;
  123. }
  124. }
  125. // description
  126. p {
  127. margin: 0 0 0.6em 0;
  128. }
  129. // popularity bar
  130. div.popularity {
  131. background-color: @ini_background;
  132. border: 1px solid silver;
  133. height: .4em;
  134. margin: 0 auto;
  135. padding: 1px;
  136. width: 5.5em;
  137. position: absolute;
  138. right: .5em;
  139. top: 0.2em;
  140. div {
  141. background-color: @ini_border;
  142. height: 100%;
  143. }
  144. }
  145. // Docs, Bugs, Tags
  146. div.linkbar {
  147. font-size: 85%;
  148. span.tags {
  149. padding-left: 18px;
  150. background: transparent url(images/tag.png) no-repeat 0 0;
  151. }
  152. a.bugs {
  153. padding-left: 18px;
  154. background: transparent url(images/bug.gif) no-repeat 0 0;
  155. }
  156. }
  157. // more info button
  158. a.info {
  159. background: transparent url(images/down.png) no-repeat 0 0;
  160. border-width: 0;
  161. height: 13px;
  162. width: 13px;
  163. text-indent: -9999px;
  164. float: right;
  165. margin: .5em 0 0;
  166. overflow: hidden;
  167. &.close {
  168. background: transparent url(images/up.png) no-repeat 0 0;
  169. }
  170. }
  171. // detailed info box
  172. dl.details {
  173. margin: 0.4em 0 0 0;
  174. font-size: 85%;
  175. border-top: 1px solid @ini_background_alt;
  176. clear: both;
  177. dt {
  178. clear: left;
  179. float: left;
  180. width: 25%;
  181. margin: 0;
  182. text-align: right;
  183. font-weight: normal;
  184. padding: 0.2em 5px 0 0;
  185. font-weight: bold;
  186. }
  187. dd {
  188. margin-left: 25%;
  189. padding: 0.2em 0 0 5px;
  190. a.donate {
  191. padding-left: 18px;
  192. background: transparent url(images/donate.png) left center no-repeat;
  193. }
  194. }
  195. }
  196. }
  197. [dir=rtl] #extension__list .legend {
  198. float: right;
  199. > div {
  200. padding: 0 132px 0 .5em;
  201. border-left: 1px solid @ini_background_alt;
  202. border-right-width: 0;
  203. }
  204. div.screenshot {
  205. margin-left: 0;
  206. margin-right: -132px;
  207. float: right;
  208. span {
  209. left: auto;
  210. right: 0;
  211. }
  212. }
  213. h2 {
  214. float: left;
  215. }
  216. div.popularity {
  217. right: auto;
  218. left: .5em;
  219. }
  220. div.linkbar span.tags,
  221. dl.details dd a.donate {
  222. padding-left: 0;
  223. padding-right: 18px;
  224. background-position: top right;
  225. }
  226. a.info {
  227. float: left;
  228. }
  229. dl.details {
  230. dt {
  231. clear: right;
  232. float: right;
  233. text-align: left;
  234. padding-left: 5px;
  235. padding-right: 0;
  236. }
  237. dd {
  238. margin-left: 0;
  239. margin-right: 25%;
  240. padding-left: 0;
  241. padding-right: 5px;
  242. }
  243. }
  244. }
  245. /*
  246. * Enabled/Disabled overrides
  247. */
  248. #extension__list {
  249. &.hasDisplayOptions {
  250. .enabled,
  251. .disabled,
  252. .updatable {
  253. display: none;
  254. }
  255. &.enabled .enabled,
  256. &.disabled .disabled,
  257. &.updatable .updatable {
  258. display: block;
  259. }
  260. }
  261. .enabled div.screenshot span {
  262. background: transparent url(images/enabled.png) no-repeat 2px 2px;
  263. }
  264. .disabled div.screenshot span {
  265. background: transparent url(images/disabled.png) no-repeat 2px 2px;
  266. }
  267. .disabled .legend {
  268. opacity: 0.7;
  269. }
  270. }
  271. /**
  272. * extension table right column
  273. */
  274. #extension__manager .actions {
  275. padding: 0;
  276. font-size: 95%;
  277. width: 25%;
  278. float: right;
  279. text-align: right;
  280. .version {
  281. display: block;
  282. }
  283. p {
  284. margin: 0.2em 0;
  285. text-align: center;
  286. }
  287. p.permerror {
  288. margin-left: 0.4em;
  289. text-align: left;
  290. padding-left: 19px;
  291. background: transparent url(images/warning.png) center left no-repeat;
  292. line-height: 18px;
  293. font-size: 12px;
  294. }
  295. }
  296. [dir=rtl] #extension__manager .actions {
  297. float: left;
  298. text-align: left;
  299. p.permerror {
  300. margin-left: 0;
  301. margin-right: 0.4em;
  302. text-align: right;
  303. padding-left: 0;
  304. padding-right: 19px;
  305. background-position: center right;
  306. }
  307. }
  308. /**
  309. * Search form
  310. */
  311. #extension__manager form.search {
  312. display: block;
  313. margin-bottom: 2em;
  314. span {
  315. font-weight: bold;
  316. }
  317. input.edit {
  318. width: 25em;
  319. }
  320. }
  321. /**
  322. * Install form
  323. */
  324. #extension__manager form.install {
  325. text-align: center;
  326. display: block;
  327. width: 60%;
  328. }
  329. #extension__viewoptions label {
  330. margin-left: 1em;
  331. vertical-align: baseline;
  332. }