layout.less 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  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-terms {
  186. color: @gray-light;
  187. }
  188. .auth-toggle {
  189. display: flex;
  190. }
  191. .join-request {
  192. margin-left: auto;
  193. margin-right: 0;
  194. > a {
  195. display: flex;
  196. align-items: center;
  197. > svg {
  198. height: 17px;
  199. width: 20px;
  200. margin-right: 5px;
  201. }
  202. }
  203. }
  204. }
  205. /**
  206. * Container / Content
  207. * ============================================================================
  208. */
  209. .app {
  210. display: flex;
  211. flex-direction: column;
  212. flex-grow: 1;
  213. // Necessary for the correct positioning of dropdown menus/overlays
  214. position: relative;
  215. }
  216. .container {
  217. position: relative;
  218. padding-left: 30px;
  219. padding-right: 30px;
  220. width: 100% !important;
  221. flex: 1;
  222. }
  223. .content-with-margin {
  224. margin-top: 20px;
  225. }
  226. // So loader can take up full height so that footer is fixed to bottom of screen
  227. .loading-full-layout {
  228. flex: 1;
  229. display: flex;
  230. align-items: center;
  231. }
  232. /**
  233. * Content sidebar
  234. * ============================================================================
  235. */
  236. .content .sidebar {
  237. float: right;
  238. }
  239. /**
  240. * Windowed
  241. * ============================================================================
  242. */
  243. .windowed-small {
  244. .app > .container {
  245. padding-top: 60px !important;
  246. max-width: 600px !important;
  247. margin: 0 auto;
  248. .box-header h3 {
  249. max-width: 100%;
  250. font-size: 16px;
  251. }
  252. }
  253. footer {
  254. display: none;
  255. }
  256. }
  257. /**
  258. * Pattern background / backdrop
  259. * ============================================================================
  260. */
  261. .pattern-bg {
  262. background: #f2f1f3 url(../images/pattern/sentry-pattern.png);
  263. background-size: 340px;
  264. position: fixed;
  265. top: 0;
  266. left: 0;
  267. right: 0;
  268. bottom: 0;
  269. z-index: -1;
  270. opacity: 0.4;
  271. }
  272. /**
  273. * Print
  274. * ============================================================================
  275. */
  276. @media print {
  277. body {
  278. color: @gray-darkest;
  279. }
  280. header {
  281. display: none;
  282. }
  283. .toolbar {
  284. display: none;
  285. }
  286. .content {
  287. padding: 0 !important;
  288. }
  289. footer {
  290. display: none;
  291. }
  292. }
  293. /**
  294. * Responsive Desktop
  295. * ============================================================================
  296. */
  297. @media (max-width: 1200px) {
  298. .container {
  299. width: 100% !important;
  300. }
  301. }
  302. @media (max-width: 992px) {
  303. body {
  304. &.body-sidebar {
  305. padding-left: 0;
  306. padding-top: @sidebar-mobile-height;
  307. &.collapsed {
  308. padding-left: 0;
  309. }
  310. }
  311. }
  312. .messages-container {
  313. margin-top: 0;
  314. margin-bottom: 0;
  315. }
  316. }
  317. /**
  318. * Responsive small screens
  319. * ============================================================================
  320. */
  321. @media (max-width: 767px) {
  322. body {
  323. padding-top: 0;
  324. // Hide fake sidebar on mobile
  325. background: none;
  326. }
  327. .app {
  328. overflow-x: hidden;
  329. overflow-y: hidden;
  330. }
  331. .container {
  332. padding: 0 14px;
  333. }
  334. .narrow .app > .container,
  335. .narrow.windowed-small .app > .container {
  336. padding-top: 30px !important;
  337. }
  338. .narrow.dialog .app > .container,
  339. .narrow.dialog.windowed-small .app > .container {
  340. padding-top: 10px !important;
  341. }
  342. .nav-tabs {
  343. > li {
  344. text-transform: capitalize;
  345. margin-right: 11px;
  346. &:last-child {
  347. margin: 0;
  348. }
  349. a {
  350. font-size: 14px;
  351. margin-right: 0;
  352. .badge {
  353. padding: 0;
  354. min-width: 15px;
  355. height: 15px;
  356. line-height: 17px;
  357. }
  358. }
  359. }
  360. }
  361. body.auth {
  362. .brand-flag {
  363. left: 0;
  364. right: 0;
  365. top: 0;
  366. font-size: 20px;
  367. background: @sidebar-bg-color;
  368. padding-left: 30px;
  369. }
  370. .app > .container {
  371. .box-content.with-padding {
  372. padding: 20px 20px 10px;
  373. }
  374. }
  375. .box {
  376. flex-direction: column;
  377. }
  378. .auth-sidebar {
  379. width: 100%;
  380. text-align: left;
  381. padding: 20px;
  382. border-radius: 4px 4px 0 0;
  383. a {
  384. line-height: 1;
  385. position: relative;
  386. top: 3px;
  387. }
  388. }
  389. .auth-container {
  390. flex-wrap: wrap;
  391. padding-left: 20px;
  392. padding-right: 20px;
  393. > div {
  394. width: 100%;
  395. padding: 0;
  396. margin: 0;
  397. border: 0;
  398. &.auth-provider-column {
  399. border-top: 1px solid @trim;
  400. padding-top: 20px;
  401. margin-top: 20px;
  402. p {
  403. margin-top: 0;
  404. }
  405. }
  406. }
  407. }
  408. .join-request {
  409. margin-left: auto;
  410. > a > svg {
  411. height: 16px;
  412. width: 19px;
  413. margin-right: 4px;
  414. }
  415. }
  416. .tab-pane {
  417. .auth-container {
  418. padding: 20px;
  419. }
  420. }
  421. }
  422. }