shared-components.less 19 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138
  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. @-webkit-keyframes loading {
  373. 0% {
  374. -webkit-transform: rotate(0deg);
  375. transform: rotate(0deg);
  376. }
  377. 100% {
  378. -webkit-transform: rotate(360deg);
  379. transform: rotate(360deg);
  380. }
  381. }
  382. @keyframes loading {
  383. 0% {
  384. -webkit-transform: rotate(0deg);
  385. transform: rotate(0deg);
  386. }
  387. 100% {
  388. -webkit-transform: rotate(360deg);
  389. transform: rotate(360deg);
  390. }
  391. }
  392. // mini
  393. .loading.mini {
  394. margin: 4px 0;
  395. font-size: 13px;
  396. height: 24px;
  397. .loading-indicator {
  398. margin: 0;
  399. border-radius: 50%;
  400. width: 24px;
  401. height: 24px;
  402. border-width: 2px;
  403. position: absolute;
  404. left: 0;
  405. top: 0;
  406. &.relative {
  407. position: relative;
  408. left: auto;
  409. top: auto;
  410. }
  411. }
  412. .loading-message {
  413. padding-left: 30px;
  414. margin-top: 1px;
  415. display: inline-block;
  416. }
  417. }
  418. // Spinning logo icon loader
  419. .loading.triangle {
  420. position: absolute;
  421. top: 50%;
  422. left: 50%;
  423. width: 500px;
  424. margin-top: -200px;
  425. margin-left: -250px;
  426. // Nerf the styles of other loading indicators
  427. .loading-indicator {
  428. height: 150px;
  429. width: 150px;
  430. display: flex;
  431. align-items: center;
  432. justify-content: center;
  433. background: #fff;
  434. animation: none;
  435. -webkit-animation: none;
  436. border: 0;
  437. overflow: hidden;
  438. border-radius: 50%;
  439. }
  440. }
  441. /**
  442. * Box
  443. * ============================================================================
  444. */
  445. .box {
  446. background: #fff;
  447. border: 1px solid @trim;
  448. border-radius: 3px;
  449. margin: 0 0 20px;
  450. box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  451. .box-header {
  452. background: @white-dark;
  453. color: @gray-darker;
  454. line-height: 1;
  455. padding: 0 20px;
  456. border-radius: 3px 3px 0 0;
  457. border-bottom: 1px solid @trim;
  458. padding-top: 9px;
  459. padding-bottom: 8px;
  460. position: relative;
  461. .clearfix;
  462. &:hover .permalink {
  463. display: inline-block;
  464. }
  465. .permalink {
  466. font-size: 12px;
  467. line-height: 27px;
  468. display: none;
  469. position: absolute;
  470. top: -1.5px;
  471. left: -22px;
  472. color: @40;
  473. padding: 2px 5px;
  474. }
  475. a {
  476. color: @gray-dark;
  477. &:hover {
  478. color: @gray-darker;
  479. }
  480. }
  481. h3,
  482. h4,
  483. h5 {
  484. font-size: 14px;
  485. margin: 0;
  486. font-weight: 600;
  487. line-height: inherit;
  488. padding-top: 6px;
  489. padding-bottom: 5px;
  490. max-width: 80%;
  491. line-height: 1.2;
  492. small {
  493. color: @gray-dark;
  494. font-size: 14px;
  495. }
  496. }
  497. .pull-right {
  498. a,
  499. .btn {
  500. margin-left: 6px;
  501. }
  502. }
  503. .nav-tabs {
  504. float: right;
  505. line-height: inherit;
  506. li {
  507. margin: 0 0 0 20px;
  508. font-weight: 400;
  509. &.active a {
  510. font-weight: 600;
  511. border: 0;
  512. box-shadow: inset 0 -3px 0 @blue;
  513. }
  514. }
  515. a {
  516. font-weight: 400;
  517. padding: 0;
  518. font-size: 14px;
  519. line-height: inherit;
  520. }
  521. }
  522. .nav-pills {
  523. position: relative;
  524. right: -6px;
  525. a {
  526. padding: 2px 8px;
  527. font-size: 12px;
  528. border-radius: 4px;
  529. }
  530. .active {
  531. a {
  532. background: @blue;
  533. }
  534. }
  535. }
  536. .checkbox {
  537. margin-top: -4px;
  538. }
  539. }
  540. .box-content {
  541. &.with-padding {
  542. padding: 20px 20px 0;
  543. }
  544. .form-actions {
  545. padding-left: 20px;
  546. padding-right: 20px;
  547. margin-left: -20px;
  548. margin-right: -20px;
  549. margin: 0 -20px 20px;
  550. }
  551. h1,
  552. h2,
  553. h3,
  554. h4,
  555. h5,
  556. h6 {
  557. color: @gray-darker;
  558. }
  559. }
  560. &.box-modal {
  561. box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
  562. border-color: darken(@trim, 9);
  563. }
  564. &.empty {
  565. padding: 20px;
  566. text-align: center;
  567. }
  568. &.box-mini {
  569. .box-header {
  570. padding: 10px;
  571. line-height: normal;
  572. height: auto;
  573. font-size: 14px;
  574. }
  575. .with-padding {
  576. padding: 10px 10px 0;
  577. }
  578. }
  579. }
  580. /**
  581. * Global Messages
  582. * ============================================================================
  583. */
  584. .messages-container {
  585. .alert {
  586. color: #fff;
  587. font-weight: bold;
  588. background: darken(@yellow-orange, 2);
  589. border: 0;
  590. .container {
  591. padding: 0;
  592. }
  593. .close {
  594. color: rgba(255, 255, 255, 0.7);
  595. &:hover {
  596. color: rgba(255, 255, 255, 0.9);
  597. }
  598. }
  599. }
  600. .alert-warning {
  601. .icon:before {
  602. content: '\e615';
  603. }
  604. }
  605. .alert-success {
  606. background: @green-light;
  607. }
  608. .alert-info {
  609. background: @blue-light;
  610. }
  611. .alert-error {
  612. background: @red;
  613. }
  614. }
  615. /**
  616. * Alerts
  617. * ============================================================================
  618. */
  619. header + .alert {
  620. margin-top: -31px;
  621. position: relative;
  622. z-index: 2;
  623. border-radius: 0;
  624. }
  625. .alert {
  626. background: @alert-warning-bg-color;
  627. color: rgba(0, 0, 0, 0.7);
  628. border: 1px solid @alert-warning-border-color;
  629. font-weight: 400;
  630. padding: 10px 20px;
  631. border-radius: 0;
  632. margin: 0;
  633. font-size: 15px;
  634. line-height: 1.4;
  635. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  636. p:last-child {
  637. margin: 0;
  638. }
  639. .icon {
  640. float: left;
  641. margin: 3px 8px 0 3px;
  642. display: block;
  643. font-size: 15px;
  644. opacity: 0.65;
  645. }
  646. .icon-sentry-logo {
  647. display: block;
  648. }
  649. .close {
  650. font-weight: 600;
  651. position: absolute;
  652. top: -6px;
  653. right: 8px;
  654. box-shadow: none;
  655. transition: color 0.15s;
  656. color: rgba(0, 0, 0, 0.25);
  657. background: 0;
  658. border: 0;
  659. font-size: 22px;
  660. float: right;
  661. &:hover {
  662. box-shadow: none;
  663. color: rgba(0, 0, 0, 0.5);
  664. }
  665. }
  666. a {
  667. color: inherit;
  668. text-decoration: underline;
  669. &:hover {
  670. text-decoration: underline;
  671. }
  672. }
  673. & + .alert {
  674. box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
  675. }
  676. &.alert-block {
  677. margin-bottom: 20px;
  678. border-radius: 3px;
  679. }
  680. .btn-default {
  681. border-color: desaturate(darken(@alert-warning-border-color, 10), 10);
  682. }
  683. }
  684. .alert-block {
  685. .btn {
  686. float: right;
  687. position: relative;
  688. top: -3px;
  689. right: -6px;
  690. }
  691. }
  692. .alert-block ul {
  693. padding-left: 20px;
  694. }
  695. // ugh this is awful
  696. .alert-block p + ul,
  697. .alert-block p + p,
  698. .alert-block ul + p {
  699. margin-top: 10px !important;
  700. }
  701. .alert-error,
  702. .alert-danger {
  703. background: @alert-danger-bg-color;
  704. border-color: @alert-danger-border-color;
  705. .icon:before {
  706. content: '\e615';
  707. }
  708. .btn-default {
  709. border-color: darken(@alert-danger-border-color, 10);
  710. }
  711. }
  712. .alert-info {
  713. background: @alert-info-bg-color;
  714. border-color: @alert-info-border-color;
  715. color: @gray-dark;
  716. .icon {
  717. display: none;
  718. }
  719. .btn-default {
  720. border-color: desaturate(darken(@alert-info-border-color, 10), 10);
  721. }
  722. }
  723. .alert-success {
  724. background: @alert-success-bg-color;
  725. border-color: @alert-success-border-color;
  726. .icon:before {
  727. content: '\e60a';
  728. }
  729. .btn-default {
  730. border-color: darken(@alert-success-border-color, 5);
  731. }
  732. }
  733. /**
  734. * Dropdowns
  735. * ============================================================================
  736. */
  737. .dropdown-menu {
  738. top: 32px;
  739. border: none;
  740. border-radius: 2px;
  741. box-shadow: 0 0 0 1px rgba(52, 60, 69, 0.2), 0 1px 3px rgba(70, 82, 98, 0.25);
  742. -webkit-background-clip: padding-box;
  743. -moz-background-clip: padding;
  744. background-clip: padding-box;
  745. color: @gray-darker;
  746. &.inverted {
  747. top: auto;
  748. bottom: 32px;
  749. }
  750. &:after {
  751. width: 0;
  752. height: 0;
  753. border-left: 8px solid transparent;
  754. border-right: 8px solid transparent;
  755. border-bottom: 8px solid #fff;
  756. content: '';
  757. display: block;
  758. position: absolute;
  759. top: -8px;
  760. left: 12px;
  761. z-index: -1;
  762. }
  763. &.inverted:after {
  764. border-top: 8px solid #fff;
  765. border-bottom: 8px solid transparent;
  766. top: auto;
  767. bottom: -16px;
  768. }
  769. &:before {
  770. width: 0;
  771. height: 0;
  772. border-left: 9px solid transparent;
  773. border-right: 9px solid transparent;
  774. border-bottom: 9px solid rgba(52, 60, 69, 0.35);
  775. content: '';
  776. display: block;
  777. position: absolute;
  778. top: -9px;
  779. left: 11px;
  780. z-index: -2;
  781. }
  782. &.inverted:before {
  783. border-top: 9px solid rgba(52, 60, 69, 0.35);
  784. border-bottom: 9px solid transparent;
  785. top: auto;
  786. bottom: -18px;
  787. }
  788. &.dropdown-menu-right {
  789. &:before {
  790. right: 12px;
  791. left: auto;
  792. }
  793. &:after {
  794. right: 13px;
  795. left: auto;
  796. }
  797. }
  798. li.active a,
  799. li.active a:hover {
  800. background: @purple;
  801. color: #fff !important;
  802. }
  803. .disabled {
  804. opacity: 0.4;
  805. cursor: default;
  806. &:hover {
  807. background: #fff;
  808. color: #7a8188;
  809. }
  810. }
  811. }
  812. .anchor-right {
  813. .dropdown-menu {
  814. left: auto;
  815. right: 0;
  816. &:after {
  817. left: auto;
  818. right: 12px;
  819. }
  820. &:before {
  821. // top caret
  822. left: auto;
  823. right: 11px;
  824. }
  825. }
  826. }
  827. .anchor-middle {
  828. .dropdown-menu {
  829. left: auto;
  830. right: 50%;
  831. transform: translateX(calc(50%));
  832. &:after {
  833. left: calc(50% - 5px);
  834. right: auto;
  835. }
  836. &:before {
  837. // top caret
  838. left: calc(50% - 6px);
  839. right: auto;
  840. }
  841. }
  842. }
  843. .dropdown-actor-title {
  844. display: flex;
  845. align-items: center;
  846. height: 100%;
  847. min-height: 18px;
  848. }
  849. /**
  850. * Navs
  851. * ============================================================================
  852. */
  853. .nav {
  854. margin-bottom: 20px;
  855. .open > a,
  856. .open > a:hover,
  857. .open > a:active {
  858. background: none;
  859. }
  860. }
  861. .nav-pills > li.active > a {
  862. background-color: @blue;
  863. }
  864. /**
  865. * Nav stacked
  866. * ============================================================================
  867. */
  868. .nav-header {
  869. margin-bottom: 8px;
  870. text-transform: uppercase;
  871. font-size: 12px;
  872. color: @gray-light;
  873. letter-spacing: 0.1px;
  874. .clearfix;
  875. a.help-link,
  876. span.help-link a {
  877. color: inherit;
  878. }
  879. .view-more {
  880. color: @gray-dark;
  881. float: right;
  882. text-transform: none;
  883. &:hover {
  884. color: @gray-darkest;
  885. }
  886. }
  887. .btn-xs {
  888. font-size: 11px;
  889. line-height: 14px;
  890. padding: 0 5px;
  891. margin-left: 5px;
  892. }
  893. }
  894. /**
  895. * Nav tabs
  896. * ============================================================================
  897. */
  898. .nav-tabs {
  899. border-bottom: 0;
  900. margin: 0 0 20px;
  901. > li {
  902. margin-right: 20px;
  903. > li.pull-right {
  904. float: right;
  905. }
  906. > a {
  907. display: flex;
  908. align-items: center;
  909. justify-content: center;
  910. padding: 0 0 10px;
  911. margin: 0;
  912. border: 0;
  913. background: none;
  914. color: @60;
  915. min-width: 30px;
  916. text-align: center;
  917. &:hover,
  918. &:active,
  919. &:focus {
  920. background: none;
  921. color: @gray-darker;
  922. }
  923. &.focus-visible {
  924. text-decoration: underline;
  925. outline: none;
  926. }
  927. }
  928. .dropdown-menu {
  929. border-radius: 3px;
  930. }
  931. &.active {
  932. a,
  933. a:hover,
  934. a:focus {
  935. cursor: pointer;
  936. border: 0;
  937. border-bottom: 4px solid @purple;
  938. background: none;
  939. color: @gray-darkest;
  940. font-weight: 400;
  941. }
  942. }
  943. }
  944. &.border-bottom {
  945. border-bottom: 1px solid @trim;
  946. }
  947. &.anchor-right {
  948. li {
  949. margin: 0 0 0 30px;
  950. }
  951. }
  952. }
  953. /**
  954. * Responsive small screens
  955. * ============================================================================
  956. */
  957. @media (max-width: 767px) {
  958. .flex.flex-container {
  959. padding-left: 10px;
  960. padding-right: 10px;
  961. }
  962. }
  963. @media (max-width: 629px) {
  964. .table-user-info {
  965. .avatar {
  966. top: 24px;
  967. }
  968. }
  969. }