style.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. @import "colours.less";
  2. @import "animations.less";
  3. @import "contextMenu.less";
  4. @import url(http://fonts.googleapis.com/css?family=Roboto);
  5. * {
  6. box-sizing: border-box;
  7. outline: none;
  8. transition: all 0.2s ease;
  9. }
  10. html{
  11. width:100%;
  12. height:100%;
  13. }
  14. html,body,h1,h2, button {
  15. padding:0;
  16. margin:0;
  17. }
  18. html, button, input, textarea{
  19. font-family: 'Roboto', sans-serif;
  20. }
  21. body{
  22. width:100%;
  23. height:100%;
  24. background:@background;
  25. display:flex;
  26. }
  27. a {
  28. color:@accent;
  29. }
  30. nav {
  31. img{
  32. vertical-align: middle;
  33. margin-right: 5px;
  34. }
  35. dt, dd{
  36. &:hover, &.active{
  37. background: @control;
  38. cursor: pointer;
  39. cursor: hand;
  40. }
  41. }
  42. dt {
  43. padding: 10px 10px;
  44. }
  45. dd {
  46. margin: 0;
  47. padding: 10px 10px 10px 40px;
  48. }
  49. a{
  50. color: black;
  51. text-decoration: none;
  52. }
  53. }
  54. h2{
  55. margin-bottom:10px;
  56. a{
  57. color:inherit;
  58. }
  59. }
  60. h3{
  61. margin-bottom: 10px;
  62. &:first-child{
  63. margin-top: 0px;
  64. }
  65. }
  66. hr{
  67. border: 1px solid @control;
  68. }
  69. table{
  70. border-collapse: collapse;
  71. input[type=text], textarea{
  72. width: 100%;
  73. }
  74. }
  75. th{
  76. text-align: left;
  77. }
  78. td, th{
  79. padding:0 10px 5px 0;
  80. vertical-align: top;
  81. }
  82. button{
  83. border:none;
  84. background:@control;
  85. }
  86. form{
  87. button, input[type=submit]{
  88. border:none;
  89. background:@control;
  90. &:hover{
  91. background: @control2;
  92. }
  93. }
  94. }
  95. button:hover{
  96. cursor: pointer;
  97. cursor: hand;
  98. }
  99. img{
  100. max-width: 100%;
  101. }
  102. p{
  103. &:first-child{
  104. margin-top: 0;
  105. }
  106. &:last-child{
  107. margin-bottom:0;
  108. }
  109. }
  110. #menu{
  111. background:@background;
  112. width:280px;
  113. flex: 0 0 auto;
  114. display:flex;
  115. flex-direction: column;
  116. box-shadow: -2px 0px 0px 0px @control inset;
  117. z-index: 400;
  118. overflow-x: hidden;
  119. #nav-container{
  120. overflow: auto;
  121. width:100%;
  122. flex:1 1 auto;
  123. dl {
  124. margin: 5px 0 0 0;
  125. }
  126. }
  127. .header{
  128. z-index: 401;
  129. flex: 0 0 auto;
  130. overflow: auto;
  131. }
  132. }
  133. #main{
  134. flex: 1 1 auto;
  135. display:flex;
  136. flex-direction: column;
  137. overflow:hidden;
  138. height:100%;
  139. position:relative;
  140. .header{
  141. flex: 0 0 auto;
  142. z-index:1;
  143. #menu-button{
  144. display:none;
  145. }
  146. >*{
  147. padding-left: 20px !important;
  148. }
  149. }
  150. #content{
  151. flex: 1 1 auto;
  152. overflow:auto;
  153. z-index:0;
  154. #body{
  155. padding:20px;
  156. height:100%;
  157. }
  158. }
  159. }
  160. #buttons-left,#buttons-right{
  161. position:absolute;
  162. padding: 10px;
  163. bottom: 0px;
  164. button{
  165. margin:10px;
  166. border-radius: 50%;
  167. display: inline-block;
  168. text-align: center;
  169. box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.25);
  170. vertical-align: middle;
  171. border:none;
  172. background:@accent;
  173. width:40px;
  174. height:40px;
  175. color: white;
  176. font-size: 24px;
  177. line-height: 24px;
  178. }
  179. }
  180. #buttons-left{
  181. left: 0px;
  182. }
  183. #buttons-right{
  184. right: 0px;
  185. }
  186. #cookiePopup{
  187. position:absolute;
  188. background:black;
  189. top:50%;
  190. left:50%;
  191. padding:20px;
  192. border-radius: 30px;
  193. width:230px;
  194. height:230px;
  195. margin-top:-115px;
  196. margin-left:-115px;
  197. color:white;
  198. > div{
  199. margin-top:40px;
  200. text-align: center;
  201. }
  202. }
  203. #spinner{
  204. position:absolute;
  205. top: 0;
  206. bottom: 0;
  207. left: 0;
  208. right: 0;
  209. align-items: center;
  210. text-align: center;
  211. display: flex;
  212. z-index: 1000;
  213. transition: all ease-in-out 0.5s;
  214. &.ng-hide{
  215. opacity: 0;
  216. }
  217. >img{
  218. margin: auto;
  219. }
  220. }
  221. .scrollLock{
  222. overflow:hidden;
  223. }
  224. .header {
  225. height:64px;
  226. background:@primary;
  227. color:white;
  228. white-space:nowrap;
  229. padding:0 !important;
  230. overflow: hidden;
  231. box-shadow: 0 -9px 5px 10px rgba(50, 50, 50, 0.8);
  232. >*{
  233. line-height:64px;
  234. font-size:24px;
  235. font-weight:400;
  236. padding-left: 10px;
  237. white-space: nowrap;
  238. display: inline;
  239. vertical-align: middle;
  240. }
  241. >h2>span{
  242. display: inline-block;
  243. }
  244. >img{
  245. height:50%;
  246. }
  247. span{
  248. display: inline-block;
  249. &:not(:first-child):before{
  250. margin:2px 10px 0 10px;
  251. width:6px;
  252. float:left;
  253. height:62px;
  254. background: url("/images/chevron.png") no-repeat scroll right center / contain rgba(0, 0, 0, 0);
  255. content:"";
  256. }
  257. }
  258. }
  259. .circle{
  260. border-radius: 50%;
  261. display: inline-block;
  262. text-align: center;
  263. vertical-align: middle;
  264. overflow: hidden;
  265. }
  266. .go, .expand{
  267. display:none;
  268. float:right;
  269. }
  270. .backdrop{
  271. background: rgba(0,0,0,0.5);
  272. width: 100%;
  273. height:100%;
  274. position:absolute;
  275. top:0;
  276. left:0;
  277. z-index:100;
  278. display:none;
  279. transition:all ease-in-out 0.5s;
  280. &.ng-hide{
  281. opacity: 0;
  282. }
  283. }
  284. .errors{
  285. background: url(/images/error.svg) no-repeat scroll 10px 10px @Grey-800;
  286. margin:-20px;
  287. margin-bottom: 20px;
  288. padding:10px;
  289. padding-left:40px;
  290. color:#fff;
  291. ul{
  292. margin: 0;
  293. list-style: square;
  294. }
  295. }
  296. .row{
  297. width:100%;
  298. clear:both;
  299. >.col {
  300. width:100%;
  301. float:left;
  302. }
  303. &.col-lg-1, &.col-md-1, &.col-sm-1{
  304. >.col{
  305. width:100%;
  306. }
  307. }
  308. &.col-lg-2, &.col-md-2, &.col-sm-2{
  309. >.col{
  310. width:50%;
  311. }
  312. }
  313. &.col-lg-3, &.col-md-3, &.col-sm-3{
  314. >.col{
  315. width:33.3333%;
  316. }
  317. }
  318. &.col-lg-4, &.col-md-4, &.col-sm-4{
  319. >.col{
  320. width:25%;
  321. }
  322. }
  323. }
  324. table.alternatingRows{
  325. tr{
  326. &:nth-child(1n){
  327. background:@control;
  328. }
  329. &:nth-child(2n){
  330. background:@control2;
  331. }
  332. }
  333. }
  334. td, th{
  335. padding:3px;
  336. &.number{
  337. text-align: right;
  338. }
  339. }
  340. div.percentageBar{
  341. width:100%;
  342. height:20px;
  343. background:@LightGreen-400;
  344. overflow:hidden;
  345. >div{
  346. background:@Red-400;
  347. height:100%;
  348. transition: all 500ms ease-in-out;
  349. }
  350. }