layout.less 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. body {
  2. &.body-sidebar {
  3. @media (min-width: 993px) {
  4. padding-left: @sidebar-expanded-width;
  5. }
  6. &.collapsed {
  7. padding-left: @sidebar-collapsed-width;
  8. }
  9. }
  10. &.scroll-lock {
  11. overflow: hidden;
  12. position: fixed;
  13. width: 100%;
  14. }
  15. }
  16. #blk_router {
  17. min-height: 100vh;
  18. }
  19. #login_as {
  20. z-index: 1000000;
  21. }
  22. /**
  23. * body.auth
  24. * ============================================================================
  25. */
  26. body.narrow {
  27. padding: 0;
  28. background: #fff;
  29. &.body-sidebar {
  30. padding-left: @sidebar-expanded-width;
  31. &.collapsed {
  32. padding-left: @sidebar-collapsed-width;
  33. }
  34. }
  35. &.dialog {
  36. padding-top: 0;
  37. }
  38. h3,
  39. h4 {
  40. line-height: 1.2;
  41. }
  42. .app > .container {
  43. padding-top: 40px;
  44. max-width: 860px;
  45. .box-header {
  46. padding: 15px 30px 12px;
  47. .logo-with-action {
  48. display: flex;
  49. align-items: center;
  50. }
  51. a {
  52. font-size: 20px;
  53. &:hover {
  54. color: @gray-dark;
  55. }
  56. }
  57. .back-to,
  58. .pull-right a {
  59. font-size: 16px;
  60. }
  61. .back-to {
  62. border-left: 1px solid @trim;
  63. padding: 2px 10px;
  64. display: inline-block;
  65. margin-left: 7px;
  66. position: relative;
  67. top: -3px;
  68. }
  69. }
  70. .with-padding {
  71. padding: 20px 30px 0;
  72. .form-actions {
  73. margin: 20px 0 0;
  74. padding: 20px 0;
  75. a.pull-right {
  76. font-size: 15px;
  77. color: @50;
  78. &:hover {
  79. color: @80;
  80. }
  81. }
  82. }
  83. }
  84. }
  85. }
  86. /* Integration templates use body.auth! */
  87. body.auth {
  88. .app > .container {
  89. padding-top: 5vh;
  90. max-width: 740px;
  91. }
  92. .box {
  93. border: 0;
  94. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  95. border-radius: 4px;
  96. display: flex;
  97. width: 100%;
  98. }
  99. .box-modal {
  100. display: flex;
  101. flex-direction: column;
  102. }
  103. .auth-sidebar {
  104. padding-top: 20px;
  105. width: 60px;
  106. background: #564f64;
  107. background-image: linear-gradient(
  108. -180deg,
  109. rgba(52, 44, 62, 0) 0%,
  110. rgba(52, 44, 62, 0.5) 100%
  111. );
  112. box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1);
  113. border-radius: 4px 0 0 4px;
  114. margin-top: -1px;
  115. margin-bottom: -1px;
  116. text-align: center;
  117. a {
  118. color: #fff;
  119. font-size: 22px;
  120. line-height: 1.5;
  121. }
  122. }
  123. .org-login {
  124. flex: 1;
  125. }
  126. .auth-container {
  127. padding-left: 40px;
  128. padding-right: 40px;
  129. &.border-bottom {
  130. border-bottom: 1px solid @trim;
  131. }
  132. ul,
  133. ol,
  134. p,
  135. blockquote {
  136. &:last-child {
  137. margin-bottom: 0;
  138. }
  139. }
  140. }
  141. .tab-content .auth-container {
  142. padding-top: 30px;
  143. padding-bottom: 40px;
  144. display: flex;
  145. }
  146. .auth-form-column {
  147. flex: 1;
  148. }
  149. .auth-provider-column {
  150. width: 46%;
  151. padding-left: 30px;
  152. margin-left: 30px;
  153. border-left: 1px solid @trim;
  154. p {
  155. margin-bottom: 15px;
  156. &:first-child {
  157. margin-top: 28px;
  158. }
  159. }
  160. .btn-default {
  161. display: block;
  162. text-align: left;
  163. padding: 8px 8px;
  164. .provider-logo {
  165. top: 0;
  166. }
  167. }
  168. }
  169. .auth-footer {
  170. display: flex;
  171. align-items: center;
  172. margin-top: 20px;
  173. > .btn {
  174. margin-right: 6px;
  175. }
  176. .secondary {
  177. flex: 1;
  178. text-align: right;
  179. color: @gray-light;
  180. &:hover {
  181. color: @gray-dark;
  182. }
  183. }
  184. }
  185. .auth-toggle {
  186. display: flex;
  187. }
  188. .join-request {
  189. margin-left: auto;
  190. margin-right: 0;
  191. > a {
  192. display: flex;
  193. align-items: center;
  194. > svg {
  195. height: 17px;
  196. width: 20px;
  197. margin-right: 5px;
  198. }
  199. }
  200. }
  201. }
  202. /**
  203. * Container / Content
  204. * ============================================================================
  205. */
  206. .app {
  207. display: flex;
  208. flex-direction: column;
  209. flex-grow: 1;
  210. // Necessary for the correct positioning of dropdown menus/overlays
  211. position: relative;
  212. }
  213. .container {
  214. position: relative;
  215. padding-left: 30px;
  216. padding-right: 30px;
  217. width: 100% !important;
  218. flex: 1;
  219. }
  220. .content-with-margin {
  221. margin-top: 20px;
  222. }
  223. // So loader can take up full height so that footer is fixed to bottom of screen
  224. .loading-full-layout {
  225. flex: 1;
  226. display: flex;
  227. align-items: center;
  228. }
  229. /**
  230. * Content sidebar
  231. * ============================================================================
  232. */
  233. .content .sidebar {
  234. float: right;
  235. }
  236. /**
  237. * Windowed
  238. * ============================================================================
  239. */
  240. .windowed-small {
  241. .app > .container {
  242. padding-top: 60px !important;
  243. max-width: 600px !important;
  244. margin: 0 auto;
  245. .box-header h3 {
  246. max-width: 100%;
  247. font-size: 16px;
  248. }
  249. }
  250. footer {
  251. display: none;
  252. }
  253. }
  254. /**
  255. * Pattern background / backdrop
  256. * ============================================================================
  257. */
  258. .pattern-bg {
  259. background: #f2f1f3 url(../images/pattern/sentry-pattern.png);
  260. background-size: 340px;
  261. position: fixed;
  262. top: 0;
  263. left: 0;
  264. right: 0;
  265. bottom: 0;
  266. z-index: -1;
  267. opacity: 0.4;
  268. }
  269. /**
  270. * Print
  271. * ============================================================================
  272. */
  273. @media print {
  274. body {
  275. color: @gray-darkest;
  276. }
  277. header {
  278. display: none;
  279. }
  280. .toolbar {
  281. display: none;
  282. }
  283. .content {
  284. padding: 0 !important;
  285. }
  286. footer {
  287. display: none;
  288. }
  289. }
  290. /**
  291. * Responsive Desktop
  292. * ============================================================================
  293. */
  294. @media (max-width: 1200px) {
  295. .container {
  296. width: 100% !important;
  297. }
  298. }
  299. @media (max-width: 992px) {
  300. body {
  301. &.body-sidebar {
  302. padding-left: 0;
  303. padding-top: @sidebar-mobile-height;
  304. &.collapsed {
  305. padding-left: 0;
  306. }
  307. }
  308. }
  309. .messages-container {
  310. margin-top: 0;
  311. margin-bottom: 0;
  312. }
  313. }
  314. /**
  315. * Responsive small screens
  316. * ============================================================================
  317. */
  318. @media (max-width: 767px) {
  319. body {
  320. padding-top: 0;
  321. // Hide fake sidebar on mobile
  322. background: none;
  323. }
  324. .app {
  325. overflow-x: hidden;
  326. overflow-y: hidden;
  327. }
  328. .container {
  329. padding: 0 14px;
  330. }
  331. .narrow .app > .container,
  332. .narrow.windowed-small .app > .container {
  333. padding-top: 30px !important;
  334. }
  335. .narrow.dialog .app > .container,
  336. .narrow.dialog.windowed-small .app > .container {
  337. padding-top: 10px !important;
  338. }
  339. .nav-tabs {
  340. > li {
  341. text-transform: capitalize;
  342. margin-right: 11px;
  343. &:last-child {
  344. margin: 0;
  345. }
  346. a {
  347. font-size: 14px;
  348. margin-right: 0;
  349. .badge {
  350. padding: 0;
  351. min-width: 15px;
  352. height: 15px;
  353. line-height: 17px;
  354. }
  355. }
  356. }
  357. }
  358. body.auth {
  359. .brand-flag {
  360. left: 0;
  361. right: 0;
  362. top: 0;
  363. font-size: 20px;
  364. background: @sidebar-bg-color;
  365. padding-left: 30px;
  366. }
  367. .app > .container {
  368. .box-content.with-padding {
  369. padding: 20px 20px 10px;
  370. }
  371. }
  372. .box {
  373. flex-direction: column;
  374. }
  375. .auth-sidebar {
  376. width: 100%;
  377. text-align: left;
  378. padding: 20px;
  379. border-radius: 4px 4px 0 0;
  380. a {
  381. line-height: 1;
  382. position: relative;
  383. top: 3px;
  384. }
  385. }
  386. .auth-container {
  387. flex-wrap: wrap;
  388. padding-left: 20px;
  389. padding-right: 20px;
  390. > div {
  391. width: 100%;
  392. padding: 0;
  393. margin: 0;
  394. border: 0;
  395. &.auth-provider-column {
  396. border-top: 1px solid @trim;
  397. padding-top: 20px;
  398. margin-top: 20px;
  399. p {
  400. margin-top: 0;
  401. }
  402. }
  403. }
  404. }
  405. .join-request {
  406. margin-left: auto;
  407. > a > svg {
  408. height: 16px;
  409. width: 19px;
  410. margin-right: 4px;
  411. }
  412. }
  413. .tab-pane {
  414. .auth-container {
  415. padding: 20px;
  416. }
  417. }
  418. }
  419. }