style.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. form{
  75. button, input[type=submit]{
  76. border:none;
  77. background:@control;
  78. &:hover{
  79. background: @control2;
  80. }
  81. }
  82. }
  83. button:hover{
  84. cursor: pointer;
  85. cursor: hand;
  86. }
  87. img{
  88. max-width: 100%;
  89. }
  90. p:first-child{
  91. margin-top: 0;
  92. }
  93. #menu{
  94. background:@background;
  95. width:280px;
  96. left:0;
  97. position:fixed;
  98. height:100%;
  99. box-shadow: -2px 0px 0px 0px @control inset;
  100. z-index: 400;
  101. overflow-x: hidden;
  102. .header{
  103. z-index: 401;
  104. }
  105. }
  106. #menu-button{
  107. display:none;
  108. }
  109. #nav-container{
  110. overflow: auto;
  111. width:100%;
  112. dl {
  113. margin: 5px 0 0 0;
  114. }
  115. }
  116. #main{
  117. padding-left:280px;
  118. padding-top:64px;
  119. >*{
  120. padding-left:20px !important;
  121. }
  122. }
  123. #main-header{
  124. position: fixed;
  125. padding-left: 280px;
  126. left:0;
  127. right:0;
  128. z-index: 1;
  129. .header>*{
  130. padding-left: 20px !important;
  131. }
  132. }
  133. #content{
  134. padding:20px;
  135. margin-bottom:60px;
  136. }
  137. #buttons{
  138. position:fixed;
  139. bottom: 20px;
  140. right: 20px;
  141. left:280px;
  142. vertical-align: bottom;
  143. >table{
  144. width: 100%;
  145. tr>td{
  146. vertical-align: bottom;
  147. padding:0;
  148. &:last-child{
  149. text-align: right;
  150. }
  151. >*:not(:first-child){
  152. margin-top:20px;
  153. }
  154. }
  155. }
  156. button{
  157. border-radius: 50%;
  158. display: inline-block;
  159. text-align: center;
  160. box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.25);
  161. vertical-align: middle;
  162. border:none;
  163. background:@accent;
  164. width:40px;
  165. height:40px;
  166. color: white;
  167. font-size: 24px;
  168. line-height: 24px;
  169. }
  170. }
  171. #cookiePopup{
  172. position:absolute;
  173. background:black;
  174. top:50%;
  175. left:50%;
  176. padding:20px;
  177. border-radius: 30px;
  178. width:230px;
  179. height:230px;
  180. margin-top:-115px;
  181. margin-left:-115px;
  182. color:white;
  183. > div{
  184. margin-top:40px;
  185. text-align: center;
  186. }
  187. }
  188. .header {
  189. height:64px;
  190. background:@primary;
  191. color:white;
  192. white-space:nowrap;
  193. padding:0 !important;
  194. overflow: hidden;
  195. box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.8);
  196. >*{
  197. line-height:64px;
  198. font-size:24px;
  199. font-weight:400;
  200. padding-left: 10px;
  201. white-space: nowrap;
  202. display: inline;
  203. vertical-align: middle;
  204. }
  205. >h2>span{
  206. display: inline-block;
  207. }
  208. >img{
  209. height:50%;
  210. }
  211. span{
  212. display: inline-block;
  213. &:not(:first-child):before{
  214. margin:2px 10px 0 10px;
  215. width:6px;
  216. float:left;
  217. height:62px;
  218. background: url("/images/chevron.png") no-repeat scroll right center / contain rgba(0, 0, 0, 0);
  219. content:"";
  220. }
  221. }
  222. }
  223. .circle{
  224. border-radius: 50%;
  225. display: inline-block;
  226. text-align: center;
  227. vertical-align: middle;
  228. }
  229. .go, .expand{
  230. display:none;
  231. float:right;
  232. }
  233. .backdrop{
  234. background: rgba(0,0,0,0.5);
  235. width: 100%;
  236. height:100%;
  237. position:fixed;
  238. top:0;
  239. left:0;
  240. z-index:100;
  241. display:none;
  242. }
  243. .errors{
  244. background: url(/images/error.svg) no-repeat scroll 10px 10px #424242;
  245. margin:-20px;
  246. margin-bottom: 20px;
  247. padding:10px;
  248. padding-left:40px;
  249. color:#fff;
  250. ul{
  251. margin: 0;
  252. list-style: square;
  253. }
  254. }
  255. .row{
  256. width:100%;
  257. clear:both;
  258. >.col {
  259. width:100%;
  260. float:left;
  261. }
  262. &.col-lg-1, &.col-md-1, &.col-sm-1{
  263. >.col{
  264. width:100%;
  265. }
  266. }
  267. &.col-lg-2, &.col-md-2, &.col-sm-2{
  268. >.col{
  269. width:50%;
  270. }
  271. }
  272. &.col-lg-3, &.col-md-3, &.col-sm-3{
  273. >.col{
  274. width:33.3333%;
  275. }
  276. }
  277. &.col-lg-4, &.col-md-4, &.col-sm-4{
  278. >.col{
  279. width:25%;
  280. }
  281. }
  282. }
  283. table.alternatingRows{
  284. tr{
  285. &:nth-child(1n){
  286. background:@control;
  287. }
  288. &:nth-child(2n){
  289. background:@control2;
  290. }
  291. }
  292. }
  293. td, th{
  294. padding:3px;
  295. &.number{
  296. text-align: right;
  297. }
  298. }
  299. div.percentageBar{
  300. width:100%;
  301. height:20px;
  302. background:@Green-500;
  303. >div{
  304. background:@Red-700;
  305. height:100%;
  306. }
  307. }