style.less 5.0 KB

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