style.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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. #main-header{
  133. flex: 0 0 auto;
  134. #menu-button{
  135. display:none;
  136. }
  137. .header>*{
  138. padding-left: 20px !important;
  139. }
  140. }
  141. #content{
  142. flex: 1 1 auto;
  143. overflow:auto;
  144. #body{
  145. padding:20px;
  146. margin-bottom:60px;
  147. }
  148. }
  149. }
  150. #buttons{
  151. #buttons-left,#buttons-right{
  152. position:fixed;
  153. padding: 10px;
  154. bottom: 0px;
  155. }
  156. #buttons-left{
  157. left: 0px;
  158. }
  159. #buttons-right{
  160. right: 0px;
  161. }
  162. button{
  163. margin:10px;
  164. border-radius: 50%;
  165. display: inline-block;
  166. text-align: center;
  167. box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.25);
  168. vertical-align: middle;
  169. border:none;
  170. background:@accent;
  171. width:40px;
  172. height:40px;
  173. color: white;
  174. font-size: 24px;
  175. line-height: 24px;
  176. }
  177. }
  178. #cookiePopup{
  179. position:absolute;
  180. background:black;
  181. top:50%;
  182. left:50%;
  183. padding:20px;
  184. border-radius: 30px;
  185. width:230px;
  186. height:230px;
  187. margin-top:-115px;
  188. margin-left:-115px;
  189. color:white;
  190. > div{
  191. margin-top:40px;
  192. text-align: center;
  193. }
  194. }
  195. #spinner{
  196. position:absolute;
  197. top: 0;
  198. bottom: 0;
  199. left: 0;
  200. right: 0;
  201. align-items: center;
  202. text-align: center;
  203. display: flex;
  204. z-index: 1000;
  205. transition: all ease-in-out 0.5s;
  206. &.ng-hide{
  207. opacity: 0;
  208. }
  209. >img{
  210. margin: auto;
  211. }
  212. }
  213. .scrollLock{
  214. overflow:hidden;
  215. }
  216. .header {
  217. height:64px;
  218. background:@primary;
  219. color:white;
  220. white-space:nowrap;
  221. padding:0 !important;
  222. overflow: hidden;
  223. box-shadow: 0 -9px 5px 10px rgba(50, 50, 50, 0.8);
  224. >*{
  225. line-height:64px;
  226. font-size:24px;
  227. font-weight:400;
  228. padding-left: 10px;
  229. white-space: nowrap;
  230. display: inline;
  231. vertical-align: middle;
  232. }
  233. >h2>span{
  234. display: inline-block;
  235. }
  236. >img{
  237. height:50%;
  238. }
  239. span{
  240. display: inline-block;
  241. &:not(:first-child):before{
  242. margin:2px 10px 0 10px;
  243. width:6px;
  244. float:left;
  245. height:62px;
  246. background: url("/images/chevron.png") no-repeat scroll right center / contain rgba(0, 0, 0, 0);
  247. content:"";
  248. }
  249. }
  250. }
  251. .circle{
  252. border-radius: 50%;
  253. display: inline-block;
  254. text-align: center;
  255. vertical-align: middle;
  256. overflow: hidden;
  257. }
  258. .go, .expand{
  259. display:none;
  260. float:right;
  261. }
  262. .backdrop{
  263. background: rgba(0,0,0,0.5);
  264. width: 100%;
  265. height:100%;
  266. position:fixed;
  267. top:0;
  268. left:0;
  269. z-index:100;
  270. display:none;
  271. transition:all ease-in-out 0.5s;
  272. &.ng-hide{
  273. opacity: 0;
  274. }
  275. }
  276. .errors{
  277. background: url(/images/error.svg) no-repeat scroll 10px 10px #424242;
  278. margin:-20px;
  279. margin-bottom: 20px;
  280. padding:10px;
  281. padding-left:40px;
  282. color:#fff;
  283. ul{
  284. margin: 0;
  285. list-style: square;
  286. }
  287. }
  288. .row{
  289. width:100%;
  290. clear:both;
  291. >.col {
  292. width:100%;
  293. float:left;
  294. }
  295. &.col-lg-1, &.col-md-1, &.col-sm-1{
  296. >.col{
  297. width:100%;
  298. }
  299. }
  300. &.col-lg-2, &.col-md-2, &.col-sm-2{
  301. >.col{
  302. width:50%;
  303. }
  304. }
  305. &.col-lg-3, &.col-md-3, &.col-sm-3{
  306. >.col{
  307. width:33.3333%;
  308. }
  309. }
  310. &.col-lg-4, &.col-md-4, &.col-sm-4{
  311. >.col{
  312. width:25%;
  313. }
  314. }
  315. }
  316. table.alternatingRows{
  317. tr{
  318. &:nth-child(1n){
  319. background:@control;
  320. }
  321. &:nth-child(2n){
  322. background:@control2;
  323. }
  324. }
  325. }
  326. td, th{
  327. padding:3px;
  328. &.number{
  329. text-align: right;
  330. }
  331. }
  332. div.percentageBar{
  333. width:100%;
  334. height:20px;
  335. background:@LightGreen-400;
  336. overflow:hidden;
  337. >div{
  338. background:@Red-400;
  339. height:100%;
  340. transition: all 500ms ease-in-out;
  341. }
  342. }