layout.less 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  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. /* Discover has a 100% height based layout with no footer */
  11. &.body-discover {
  12. padding-top: 0;
  13. padding-bottom: 0;
  14. overflow: hidden;
  15. footer {
  16. display: none;
  17. }
  18. }
  19. &.scroll-lock {
  20. overflow: hidden;
  21. position: fixed;
  22. width: 100%;
  23. }
  24. }
  25. #blk_router {
  26. min-height: 100vh;
  27. }
  28. #login_as {
  29. z-index: 1000000;
  30. }
  31. /**
  32. * body.auth
  33. * ============================================================================
  34. */
  35. body.narrow {
  36. padding: 0;
  37. background: #fff;
  38. &.body-sidebar {
  39. padding-left: @sidebar-expanded-width;
  40. &.collapsed {
  41. padding-left: @sidebar-collapsed-width;
  42. }
  43. }
  44. &.dialog {
  45. padding-top: 0;
  46. }
  47. h3,
  48. h4 {
  49. line-height: 1.2;
  50. }
  51. .app > .container {
  52. padding-top: 40px;
  53. max-width: 860px;
  54. .box-header {
  55. padding: 15px 30px 12px;
  56. .logo-with-action {
  57. display: flex;
  58. align-items: center;
  59. }
  60. a {
  61. font-size: 20px;
  62. &:hover {
  63. color: @gray-dark;
  64. }
  65. }
  66. .back-to,
  67. .pull-right a {
  68. font-size: 16px;
  69. }
  70. .back-to {
  71. border-left: 1px solid @trim;
  72. padding: 2px 10px;
  73. display: inline-block;
  74. margin-left: 7px;
  75. position: relative;
  76. top: -3px;
  77. }
  78. }
  79. .with-padding {
  80. padding: 20px 30px 0;
  81. .form-actions {
  82. margin: 20px 0 0;
  83. padding: 20px 0;
  84. a.pull-right {
  85. font-size: 15px;
  86. color: @50;
  87. &:hover {
  88. color: @80;
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. /* Integration templates use body.auth! */
  96. body.auth {
  97. .app > .container {
  98. padding-top: 5vh;
  99. max-width: 740px;
  100. }
  101. .box {
  102. border: 0;
  103. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.1);
  104. border-radius: 4px;
  105. display: flex;
  106. width: 100%;
  107. }
  108. .box-modal {
  109. display: flex;
  110. flex-direction: column;
  111. }
  112. .auth-sidebar {
  113. padding-top: 20px;
  114. width: 60px;
  115. background: #564f64;
  116. background-image: linear-gradient(
  117. -180deg,
  118. rgba(52, 44, 62, 0) 0%,
  119. rgba(52, 44, 62, 0.5) 100%
  120. );
  121. box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1);
  122. border-radius: 4px 0 0 4px;
  123. margin-top: -1px;
  124. margin-bottom: -1px;
  125. text-align: center;
  126. a {
  127. color: #fff;
  128. font-size: 22px;
  129. line-height: 1.5;
  130. }
  131. }
  132. .org-login {
  133. flex: 1;
  134. }
  135. .auth-container {
  136. padding-left: 40px;
  137. padding-right: 40px;
  138. &.border-bottom {
  139. border-bottom: 1px solid @trim;
  140. }
  141. ul,
  142. ol,
  143. p,
  144. blockquote {
  145. &:last-child {
  146. margin-bottom: 0;
  147. }
  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. }
  220. .container {
  221. position: relative;
  222. padding-left: 30px;
  223. padding-right: 30px;
  224. width: 100% !important;
  225. flex: 1;
  226. }
  227. .content-with-margin {
  228. margin-top: 20px;
  229. }
  230. // So loader can take up full height so that footer is fixed to bottom of screen
  231. .loading-full-layout {
  232. flex: 1;
  233. display: flex;
  234. align-items: center;
  235. }
  236. /**
  237. * Content sidebar
  238. * ============================================================================
  239. */
  240. .content .sidebar {
  241. float: right;
  242. }
  243. /**
  244. * Windowed
  245. * ============================================================================
  246. */
  247. .windowed-small {
  248. .app > .container {
  249. padding-top: 60px !important;
  250. max-width: 600px !important;
  251. margin: 0 auto;
  252. .box-header h3 {
  253. max-width: 100%;
  254. font-size: 16px;
  255. }
  256. }
  257. footer {
  258. display: none;
  259. }
  260. }
  261. /**
  262. * Pattern background / backdrop
  263. * ============================================================================
  264. */
  265. .pattern-bg {
  266. background: #f2f1f3 url(../images/pattern/sentry-pattern.png);
  267. background-size: 340px;
  268. position: fixed;
  269. top: 0;
  270. left: 0;
  271. right: 0;
  272. bottom: 0;
  273. z-index: -1;
  274. opacity: 0.4;
  275. }
  276. /**
  277. * Print
  278. * ============================================================================
  279. */
  280. @media print {
  281. body {
  282. color: @gray-darkest;
  283. }
  284. header {
  285. display: none;
  286. }
  287. .toolbar {
  288. display: none;
  289. }
  290. .content {
  291. padding: 0 !important;
  292. }
  293. footer {
  294. display: none;
  295. }
  296. }
  297. /**
  298. * Responsive Desktop
  299. * ============================================================================
  300. */
  301. @media (max-width: 1200px) {
  302. .container {
  303. width: 100% !important;
  304. }
  305. }
  306. @media (max-width: 992px) {
  307. body {
  308. &.body-sidebar {
  309. padding-left: 0;
  310. padding-top: @sidebar-mobile-height;
  311. &.collapsed {
  312. padding-left: 0;
  313. }
  314. }
  315. }
  316. .messages-container {
  317. margin-top: 0;
  318. margin-bottom: 0;
  319. }
  320. }
  321. /**
  322. * Responsive small screens
  323. * ============================================================================
  324. */
  325. @media (max-width: 767px) {
  326. body {
  327. padding-top: 0;
  328. // Hide fake sidebar on mobile
  329. background: none;
  330. // Account for there being no footer on mobile
  331. padding-bottom: 20px;
  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. }