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. }
  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. a {
  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. }