shared-components.less 19 KB

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