style.less 4.9 KB

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