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