style.less 4.8 KB

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