shared-components.less 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170
  1. dl.flat {
  2. margin-bottom: 1em;
  3. }
  4. dl.flat dt {
  5. float: left;
  6. clear: left;
  7. width: 70px;
  8. padding-bottom: 5px;
  9. }
  10. dl.flat dd {
  11. padding-bottom: 5px;
  12. }
  13. /**
  14. * Flex
  15. * ============================================================================
  16. */
  17. .flex {
  18. display: flex;
  19. &.flex-container {
  20. padding-left: 30px;
  21. padding-right: 30px;
  22. }
  23. &.flex-justify-right {
  24. justify-content: flex-end;
  25. }
  26. &.flex-vertically-centered {
  27. align-items: center;
  28. }
  29. > * {
  30. flex-grow: 1;
  31. }
  32. }
  33. /**
  34. * Buttons
  35. * ============================================================================
  36. */
  37. .btn {
  38. border: 1px solid transparent;
  39. border-radius: 3px;
  40. font-weight: 600;
  41. padding: 8px 16px;
  42. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  43. transition: all 0.1s;
  44. &.disabled,
  45. &.disabled:hover {
  46. color: #ced3d6 !important;
  47. border-color: #e3e5e6 !important;
  48. box-shadow: none !important;
  49. pointer-events: none !important;
  50. background: none !important;
  51. }
  52. }
  53. /* Button sizes */
  54. .btn-sm {
  55. font-size: 12px;
  56. padding: 4px 9px;
  57. }
  58. .btn-lg {
  59. font-size: 16px;
  60. padding: 10px 20px;
  61. }
  62. .btn-xs {
  63. font-size: 85%;
  64. padding: 4px 10px;
  65. }
  66. /* Button types */
  67. .btn-default {
  68. color: @gray-dark;
  69. background: #fff;
  70. border-color: lighten(@gray-lighter, 7);
  71. box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
  72. &:hover {
  73. color: @gray-darker;
  74. border-color: @gray-lighter;
  75. box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  76. }
  77. &:hover:active,
  78. &:focus,
  79. &:active,
  80. &.active,
  81. &.active:hover {
  82. color: @gray-darker;
  83. background-color: @white-darker;
  84. border-color: @gray-lighter;
  85. box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.06);
  86. }
  87. }
  88. .open > .dropdown-toggle.btn-default,
  89. .open > .dropdown-toggle.btn-default:hover,
  90. .open > .dropdown-toggle.btn-default:active {
  91. background: @white-darker;
  92. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  93. }
  94. .btn-primary {
  95. color: #ffffff;
  96. background: @purple;
  97. border-color: darken(@purple, 18);
  98. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
  99. box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  100. &:hover {
  101. background-color: darken(@purple, 5);
  102. }
  103. &:hover:active,
  104. &:focus,
  105. &:active,
  106. &.active,
  107. &.active:hover {
  108. background: darken(@purple, 5);
  109. border-color: darken(@purple, 22);
  110. box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.12);
  111. outline: none;
  112. }
  113. }
  114. .btn-danger {
  115. background: @red;
  116. color: #fff;
  117. border-color: darken(@red, 18);
  118. box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
  119. &:hover,
  120. &:focus,
  121. &:active {
  122. box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.12);
  123. }
  124. }
  125. // Disabled buttons
  126. .btn-primary.disabled,
  127. .btn-primary[disabled],
  128. fieldset[disabled] .btn-primary,
  129. .btn-primary.disabled:hover,
  130. .btn-primary[disabled]:hover,
  131. fieldset[disabled] .btn-primary:hover,
  132. .btn-primary.disabled:focus,
  133. .btn-primary[disabled]:focus,
  134. fieldset[disabled] .btn-primary:focus,
  135. .btn-primary.disabled:active,
  136. .btn-primary[disabled]:active,
  137. fieldset[disabled] .btn-primary:active,
  138. .btn-primary.disabled.active,
  139. .btn-primary[disabled].active,
  140. fieldset[disabled] .btn-primary.active,
  141. .btn-danger.disabled,
  142. .btn-danger[disabled],
  143. fieldset[disabled] .btn-danger,
  144. .btn-danger.disabled:hover,
  145. .btn-danger[disabled]:hover,
  146. fieldset[disabled] .btn-danger:hover,
  147. .btn-danger.disabled:focus,
  148. .btn-danger[disabled]:focus,
  149. fieldset[disabled] .btn-danger:focus,
  150. .btn-danger.disabled:active,
  151. .btn-danger[disabled]:active,
  152. fieldset[disabled] .btn-danger:active,
  153. .btn-danger.disabled.active,
  154. .btn-danger[disabled].active,
  155. fieldset[disabled] .btn-danger.active,
  156. .btn-primary.btn-disabled,
  157. .btn-primary.btn-disabled:hover {
  158. color: @gray-light;
  159. border-color: @gray-lightest;
  160. background: #fff;
  161. opacity: 1;
  162. text-shadow: none;
  163. }
  164. /* Small button icons */
  165. .btn-sm {
  166. .icon-arrow-right,
  167. .icon-arrow-left,
  168. .icon-refresh {
  169. position: relative;
  170. font-size: 14px !important;
  171. display: block;
  172. line-height: 18px;
  173. top: 0;
  174. }
  175. }
  176. /**
  177. * Tables
  178. * ============================================================================
  179. */
  180. table.table {
  181. margin-bottom: 20px;
  182. // No overrideable variables available
  183. td,
  184. th {
  185. vertical-align: middle !important;
  186. line-height: 1 !important;
  187. }
  188. th {
  189. font-weight: 600 !important;
  190. border-width: 1px !important;
  191. }
  192. h5 {
  193. font-weight: 600;
  194. font-size: 15px;
  195. margin: 0;
  196. }
  197. .table-user-info {
  198. position: relative;
  199. padding-left: 65px !important;
  200. line-height: 1.2 !important;
  201. font-size: 13px;
  202. h5 {
  203. margin-bottom: 4px;
  204. }
  205. .avatar {
  206. position: absolute;
  207. left: 20px;
  208. }
  209. }
  210. &.closed {
  211. display: none;
  212. }
  213. }
  214. pre.plain {
  215. background-color: inherit;
  216. padding: 0;
  217. border: 0;
  218. white-space: pre-wrap;
  219. word-break: break-all;
  220. box-shadow: none;
  221. }
  222. .external-icon {
  223. transition: 0.1s linear color;
  224. font-size: 11px;
  225. margin: 0 5px;
  226. color: @gray-light;
  227. line-height: 1;
  228. vertical-align: middle;
  229. &:hover {
  230. color: @gray;
  231. }
  232. }
  233. .box-header a:hover .external-icon {
  234. color: @gray;
  235. }
  236. table.table.key-value {
  237. border: none;
  238. td {
  239. padding: 0 !important;
  240. max-width: 500px;
  241. border: 0 !important;
  242. vertical-align: top !important;
  243. pre {
  244. box-sizing: border-box;
  245. white-space: pre-wrap;
  246. margin-top: 2px;
  247. margin-bottom: 2px;
  248. word-break: break-word;
  249. padding: 8px 10px;
  250. font-size: 12px;
  251. overflow: visible;
  252. .val-string:first-child {
  253. padding-left: 0;
  254. }
  255. }
  256. }
  257. td.key {
  258. font-weight: 600;
  259. font-size: 13px;
  260. width: 175px;
  261. max-width: 175px;
  262. word-wrap: break-word;
  263. padding: 10px 15px 10px 0 !important;
  264. line-height: 1.4 !important;
  265. }
  266. }
  267. .event-list {
  268. border: 1px solid @trim;
  269. overflow-x: scroll;
  270. border-radius: 3px;
  271. .table {
  272. border: 0;
  273. margin-bottom: 0;
  274. & > thead > tr > th,
  275. & > tbody > tr > td {
  276. padding: 10px 15px;
  277. }
  278. h5 {
  279. margin-bottom: 0;
  280. font-size: 16px;
  281. small {
  282. margin-top: 5px;
  283. display: block;
  284. color: @gray;
  285. }
  286. }
  287. th {
  288. text-transform: uppercase;
  289. font-size: 14px;
  290. color: #95899f;
  291. }
  292. th,
  293. td {
  294. white-space: nowrap;
  295. }
  296. .table-user-info {
  297. padding-left: 54px !important;
  298. position: relative;
  299. .avatar {
  300. top: 50%;
  301. margin-top: -12px;
  302. }
  303. p {
  304. margin-bottom: 0;
  305. }
  306. }
  307. time {
  308. white-space: nowrap;
  309. }
  310. }
  311. }
  312. /**
  313. * Avatar
  314. * ============================================================================
  315. */
  316. .avatar {
  317. width: 20px;
  318. height: 20px;
  319. vertical-align: middle;
  320. position: relative;
  321. display: inline-block;
  322. }
  323. .org-avatar {
  324. width: 30px;
  325. height: 30px;
  326. background: @red url(../images/sentry-avatar.png);
  327. background-size: cover;
  328. border-radius: 3px;
  329. }
  330. /**
  331. * Loading Indicator
  332. * ============================================================================
  333. */
  334. @loader-size: 64px;
  335. .loading {
  336. margin: 6em auto;
  337. position: relative;
  338. &.overlay {
  339. position: absolute;
  340. top: 0;
  341. bottom: 0;
  342. left: 0;
  343. right: 0;
  344. background-color: rgba(255, 255, 255, 0.8);
  345. display: flex;
  346. align-items: center;
  347. justify-content: center;
  348. margin: 0;
  349. &.dark {
  350. background-color: rgba(0, 0, 0, 0.6);
  351. }
  352. }
  353. .loading-indicator {
  354. position: relative;
  355. border: 6px solid @white-darkest;
  356. border-left-color: @purple;
  357. -webkit-animation: loading 0.5s infinite linear;
  358. animation: loading 0.55s infinite linear;
  359. margin: 0 auto;
  360. }
  361. .loading-indicator,
  362. .loading-indicator:after {
  363. border-radius: 50%;
  364. width: @loader-size;
  365. height: @loader-size;
  366. }
  367. .loading-message {
  368. margin-top: 20px;
  369. text-align: center;
  370. }
  371. }
  372. .theme-dark .loading .loading-indicator {
  373. // theme.surface200
  374. background: #1A141F;
  375. }
  376. @-webkit-keyframes loading {
  377. 0% {
  378. -webkit-transform: rotate(0deg);
  379. transform: rotate(0deg);
  380. }
  381. 100% {
  382. -webkit-transform: rotate(360deg);
  383. transform: rotate(360deg);
  384. }
  385. }
  386. @keyframes loading {
  387. 0% {
  388. -webkit-transform: rotate(0deg);
  389. transform: rotate(0deg);
  390. }
  391. 100% {
  392. -webkit-transform: rotate(360deg);
  393. transform: rotate(360deg);
  394. }
  395. }
  396. // mini
  397. .loading.mini {
  398. margin: 4px 0;
  399. font-size: 13px;
  400. height: 24px;
  401. .loading-indicator {
  402. margin: 0;
  403. border-radius: 50%;
  404. width: 24px;
  405. height: 24px;
  406. border-width: 2px;
  407. position: absolute;
  408. left: 0;
  409. top: 0;
  410. &.relative {
  411. position: relative;
  412. left: auto;
  413. top: auto;
  414. }
  415. }
  416. .loading-message {
  417. padding-left: 30px;
  418. margin-top: 1px;
  419. display: inline-block;
  420. }
  421. }
  422. // Spinning logo icon loader
  423. .loading.triangle {
  424. position: absolute;
  425. top: 50%;
  426. left: 50%;
  427. width: 500px;
  428. margin-top: -200px;
  429. margin-left: -250px;
  430. // Nerf the styles of other loading indicators
  431. .loading-indicator {
  432. height: 150px;
  433. width: 150px;
  434. display: flex;
  435. align-items: center;
  436. justify-content: center;
  437. background: #fff;
  438. animation: none;
  439. -webkit-animation: none;
  440. border: 0;
  441. overflow: hidden;
  442. border-radius: 50%;
  443. }
  444. }
  445. .theme-dark .loading.triangle .loading-indicator {
  446. filter: invert(100%);
  447. opacity: 0.8;
  448. }
  449. body.theme-system {
  450. @media (prefers-color-scheme: dark) {
  451. .loading.triangle .loading-indicator {
  452. filter: invert(100%);
  453. opacity: 0.8;
  454. }
  455. }
  456. }
  457. /**
  458. * Box
  459. * ============================================================================
  460. */
  461. .box {
  462. background: #fff;
  463. border: 1px solid @trim;
  464. border-radius: 3px;
  465. margin: 0 0 20px;
  466. .box-header {
  467. background: @white-dark;
  468. color: @gray-darker;
  469. line-height: 1;
  470. padding: 0 20px;
  471. border-radius: 3px 3px 0 0;
  472. border-bottom: 1px solid @trim;
  473. padding-top: 9px;
  474. padding-bottom: 8px;
  475. position: relative;
  476. .clearfix;
  477. &:hover .permalink {
  478. display: inline-block;
  479. }
  480. .permalink {
  481. font-size: 12px;
  482. line-height: 27px;
  483. display: none;
  484. position: absolute;
  485. top: -1.5px;
  486. left: -22px;
  487. color: @40;
  488. padding: 2px 5px;
  489. }
  490. a {
  491. color: @gray-dark;
  492. &:hover {
  493. color: @gray-darker;
  494. }
  495. }
  496. h3,
  497. h4,
  498. h5 {
  499. font-size: 14px;
  500. margin: 0;
  501. font-weight: 600;
  502. line-height: inherit;
  503. padding-top: 6px;
  504. padding-bottom: 5px;
  505. max-width: 80%;
  506. line-height: 1.2;
  507. small {
  508. color: @gray-dark;
  509. font-size: 14px;
  510. }
  511. }
  512. .pull-right {
  513. a,
  514. .btn {
  515. margin-left: 6px;
  516. }
  517. }
  518. .nav-tabs {
  519. float: right;
  520. line-height: inherit;
  521. li {
  522. margin: 0 0 0 20px;
  523. font-weight: 400;
  524. &.active a {
  525. font-weight: 600;
  526. border: 0;
  527. box-shadow: inset 0 -3px 0 @blue;
  528. }
  529. }
  530. a {
  531. font-weight: 400;
  532. padding: 0;
  533. font-size: 14px;
  534. line-height: inherit;
  535. }
  536. }
  537. .nav-pills {
  538. position: relative;
  539. right: -6px;
  540. a {
  541. padding: 2px 8px;
  542. font-size: 12px;
  543. border-radius: 4px;
  544. }
  545. .active {
  546. a {
  547. background: @blue;
  548. }
  549. }
  550. }
  551. .checkbox {
  552. margin-top: -4px;
  553. }
  554. }
  555. .box-content {
  556. &.with-padding {
  557. padding: 20px 20px 0;
  558. }
  559. .form-actions {
  560. padding-left: 20px;
  561. padding-right: 20px;
  562. margin-left: -20px;
  563. margin-right: -20px;
  564. margin: 0 -20px 20px;
  565. }
  566. h1,
  567. h2,
  568. h3,
  569. h4,
  570. h5,
  571. h6 {
  572. color: @gray-darker;
  573. }
  574. }
  575. &.box-modal {
  576. box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
  577. border-color: darken(@trim, 9);
  578. }
  579. &.empty {
  580. padding: 20px;
  581. text-align: center;
  582. }
  583. &.box-mini {
  584. .box-header {
  585. padding: 10px;
  586. line-height: normal;
  587. height: auto;
  588. font-size: 14px;
  589. }
  590. .with-padding {
  591. padding: 10px 10px 0;
  592. }
  593. }
  594. }
  595. /**
  596. * Global Messages
  597. * ============================================================================
  598. */
  599. .messages-container {
  600. .alert {
  601. color: #fff;
  602. font-weight: bold;
  603. background: darken(@yellow-orange, 2);
  604. border: 0;
  605. .container {
  606. padding: 0;
  607. }
  608. .close {
  609. color: rgba(255, 255, 255, 0.7);
  610. &:hover {
  611. color: rgba(255, 255, 255, 0.9);
  612. }
  613. }
  614. }
  615. .alert-warning {
  616. .icon:before {
  617. content: '\e615';
  618. }
  619. }
  620. .alert-success {
  621. background: @green-light;
  622. }
  623. .alert-info {
  624. background: @blue-light;
  625. }
  626. .alert-error {
  627. background: @red;
  628. }
  629. }
  630. /**
  631. * Alerts
  632. * ============================================================================
  633. */
  634. header + .alert {
  635. margin-top: -31px;
  636. position: relative;
  637. z-index: 2;
  638. border-radius: 0;
  639. }
  640. .alert {
  641. background: @alert-warning-bg-color;
  642. color: rgba(0, 0, 0, 0.7);
  643. border: 1px solid @alert-warning-border-color;
  644. font-weight: 400;
  645. padding: 10px 20px;
  646. border-radius: 0;
  647. margin: 0;
  648. font-size: 15px;
  649. line-height: 1.4;
  650. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  651. p:last-child {
  652. margin: 0;
  653. }
  654. .icon {
  655. float: left;
  656. margin: 3px 8px 0 3px;
  657. display: block;
  658. font-size: 15px;
  659. opacity: 0.65;
  660. }
  661. .icon-sentry-logo {
  662. display: block;
  663. }
  664. .close {
  665. font-weight: 600;
  666. position: absolute;
  667. top: -6px;
  668. right: 8px;
  669. box-shadow: none;
  670. transition: color 0.15s;
  671. color: rgba(0, 0, 0, 0.25);
  672. background: 0;
  673. border: 0;
  674. font-size: 22px;
  675. float: right;
  676. &:hover {
  677. box-shadow: none;
  678. color: rgba(0, 0, 0, 0.5);
  679. }
  680. }
  681. a {
  682. color: inherit;
  683. text-decoration: underline;
  684. &:hover {
  685. text-decoration: underline;
  686. }
  687. }
  688. & + .alert {
  689. box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
  690. }
  691. &.alert-block {
  692. margin-bottom: 20px;
  693. border-radius: 3px;
  694. }
  695. .btn-default {
  696. border-color: desaturate(darken(@alert-warning-border-color, 10), 10);
  697. }
  698. }
  699. .alert-block {
  700. .btn {
  701. float: right;
  702. position: relative;
  703. top: -3px;
  704. right: -6px;
  705. }
  706. }
  707. .alert-block ul {
  708. padding-left: 20px;
  709. }
  710. // ugh this is awful
  711. .alert-block p + ul,
  712. .alert-block p + p,
  713. .alert-block ul + p {
  714. margin-top: 10px !important;
  715. }
  716. .alert-error,
  717. .alert-danger {
  718. background: @alert-danger-bg-color;
  719. border-color: @alert-danger-border-color;
  720. .icon:before {
  721. content: '\e615';
  722. }
  723. .btn-default {
  724. border-color: darken(@alert-danger-border-color, 10);
  725. }
  726. }
  727. .alert-info {
  728. background: @alert-info-bg-color;
  729. border-color: @alert-info-border-color;
  730. color: @gray-dark;
  731. .icon {
  732. display: none;
  733. }
  734. .btn-default {
  735. border-color: desaturate(darken(@alert-info-border-color, 10), 10);
  736. }
  737. }
  738. .alert-success {
  739. background: @alert-success-bg-color;
  740. border-color: @alert-success-border-color;
  741. .icon:before {
  742. content: '\e60a';
  743. }
  744. .btn-default {
  745. border-color: darken(@alert-success-border-color, 5);
  746. }
  747. }
  748. /**
  749. * Dropdowns
  750. * ============================================================================
  751. */
  752. .dropdown-menu {
  753. top: 32px;
  754. border: none;
  755. border-radius: 2px;
  756. box-shadow:
  757. 0 0 0 1px rgba(52, 60, 69, 0.2),
  758. 0 1px 3px rgba(70, 82, 98, 0.25);
  759. -webkit-background-clip: padding-box;
  760. -moz-background-clip: padding;
  761. background-clip: padding-box;
  762. color: @gray-darker;
  763. &.inverted {
  764. top: auto;
  765. bottom: 32px;
  766. }
  767. &:after {
  768. width: 0;
  769. height: 0;
  770. border-left: 8px solid transparent;
  771. border-right: 8px solid transparent;
  772. border-bottom: 8px solid #fff;
  773. content: '';
  774. display: block;
  775. position: absolute;
  776. top: -8px;
  777. left: 12px;
  778. z-index: -1;
  779. }
  780. &.inverted:after {
  781. border-top: 8px solid #fff;
  782. border-bottom: 8px solid transparent;
  783. top: auto;
  784. bottom: -16px;
  785. }
  786. &:before {
  787. width: 0;
  788. height: 0;
  789. border-left: 9px solid transparent;
  790. border-right: 9px solid transparent;
  791. border-bottom: 9px solid rgba(52, 60, 69, 0.35);
  792. content: '';
  793. display: block;
  794. position: absolute;
  795. top: -9px;
  796. left: 11px;
  797. z-index: -2;
  798. }
  799. &.inverted:before {
  800. border-top: 9px solid rgba(52, 60, 69, 0.35);
  801. border-bottom: 9px solid transparent;
  802. top: auto;
  803. bottom: -18px;
  804. }
  805. &.dropdown-menu-right {
  806. &:before {
  807. right: 12px;
  808. left: auto;
  809. }
  810. &:after {
  811. right: 13px;
  812. left: auto;
  813. }
  814. }
  815. li.active a,
  816. li.active a:hover {
  817. background: @purple;
  818. color: #fff !important;
  819. }
  820. .disabled {
  821. opacity: 0.4;
  822. cursor: default;
  823. &:hover {
  824. background: #fff;
  825. color: #7a8188;
  826. }
  827. }
  828. }
  829. .anchor-right {
  830. .dropdown-menu {
  831. left: auto;
  832. right: 0;
  833. &:after {
  834. left: auto;
  835. right: 12px;
  836. }
  837. &:before {
  838. // top caret
  839. left: auto;
  840. right: 11px;
  841. }
  842. }
  843. }
  844. .anchor-middle {
  845. .dropdown-menu {
  846. left: auto;
  847. right: 50%;
  848. transform: translateX(calc(50%));
  849. &:after {
  850. left: calc(50% - 5px);
  851. right: auto;
  852. }
  853. &:before {
  854. // top caret
  855. left: calc(50% - 6px);
  856. right: auto;
  857. }
  858. }
  859. }
  860. .dropdown-actor-title {
  861. display: flex;
  862. align-items: center;
  863. height: 100%;
  864. min-height: 18px;
  865. }
  866. /**
  867. * Navs
  868. * ============================================================================
  869. */
  870. .nav {
  871. margin-bottom: 20px;
  872. .open > a,
  873. .open > a:hover,
  874. .open > a:active {
  875. background: none;
  876. }
  877. }
  878. .nav-pills > li.active > a {
  879. background-color: @blue;
  880. }
  881. /**
  882. * Nav stacked
  883. * ============================================================================
  884. */
  885. .nav-header {
  886. margin-bottom: 8px;
  887. text-transform: uppercase;
  888. font-size: 12px;
  889. color: @gray-light;
  890. letter-spacing: 0.1px;
  891. .clearfix;
  892. a.help-link,
  893. span.help-link a {
  894. color: inherit;
  895. }
  896. .view-more {
  897. color: @gray-dark;
  898. float: right;
  899. text-transform: none;
  900. &:hover {
  901. color: @gray-darkest;
  902. }
  903. }
  904. .btn-xs {
  905. font-size: 11px;
  906. line-height: 14px;
  907. padding: 0 5px;
  908. margin-left: 5px;
  909. }
  910. }
  911. /**
  912. * Nav tabs
  913. * ============================================================================
  914. */
  915. .nav-tabs {
  916. border-bottom: 0;
  917. margin: 0 0 20px;
  918. > li {
  919. margin-right: 20px;
  920. > li.pull-right {
  921. float: right;
  922. }
  923. > a {
  924. display: flex;
  925. align-items: center;
  926. justify-content: center;
  927. padding: 0 0 10px;
  928. margin: 0;
  929. border: 0;
  930. background: none;
  931. color: @60;
  932. min-width: 30px;
  933. text-align: center;
  934. &:hover,
  935. &:active,
  936. &:focus {
  937. background: none;
  938. color: @gray-darker;
  939. }
  940. &:focus-visible {
  941. text-decoration: underline;
  942. outline: none;
  943. }
  944. }
  945. .dropdown-menu {
  946. border-radius: 3px;
  947. }
  948. &.active {
  949. a,
  950. a:hover,
  951. a:focus {
  952. cursor: pointer;
  953. border: 0;
  954. border-bottom: 4px solid @purple;
  955. background: none;
  956. color: @gray-darkest;
  957. font-weight: 400;
  958. }
  959. }
  960. }
  961. &.border-bottom {
  962. border-bottom: 1px solid @trim;
  963. }
  964. &.anchor-right {
  965. li {
  966. margin: 0 0 0 30px;
  967. }
  968. }
  969. }
  970. /**
  971. * Responsive small screens
  972. * ============================================================================
  973. */
  974. @media (max-width: 767px) {
  975. .flex.flex-container {
  976. padding-left: 10px;
  977. padding-right: 10px;
  978. }
  979. }
  980. @media (max-width: 629px) {
  981. .table-user-info {
  982. .avatar {
  983. top: 24px;
  984. }
  985. }
  986. }