style.less 5.0 KB

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