layout.less 7.7 KB

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