layout.less 7.9 KB

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