shared-components.less 19 KB

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