shared-components.less 21 KB

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