superset.less 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. @import './less/index.less';
  20. @import './less/variables.less';
  21. @import './less/index.less';
  22. @datasource-sql-expression-width: 450px;
  23. .alert.alert-danger > .debugger {
  24. color: @danger;
  25. }
  26. .label {
  27. font-size: 100%;
  28. }
  29. .no-wrap {
  30. white-space: nowrap;
  31. }
  32. input.form-control {
  33. background-color: @lightest;
  34. }
  35. .chart-header a.danger {
  36. color: @danger;
  37. }
  38. .disabledButton {
  39. pointer-events: none;
  40. }
  41. .col-left-fixed {
  42. width: 350px;
  43. position: absolute;
  44. float: left;
  45. }
  46. .col-offset {
  47. margin-left: 365px;
  48. }
  49. .slice_description {
  50. padding: 8px;
  51. margin: 5px 0;
  52. border: 1px solid @gray-light;
  53. background-color: @gray-bg;
  54. border-radius: @border-radius-large;
  55. font-size: @font-size-s;
  56. }
  57. .slice_info {
  58. cursor: pointer;
  59. }
  60. .padded {
  61. padding: 10px;
  62. }
  63. .intable-longtext {
  64. max-height: 200px;
  65. overflow: auto;
  66. }
  67. .container-fluid {
  68. text-align: left;
  69. }
  70. input[type='checkbox'] {
  71. display: inline-block;
  72. width: 16px;
  73. height: 16px;
  74. }
  75. .widget-is-cached {
  76. display: none;
  77. }
  78. .header span.label {
  79. margin-left: 5px;
  80. margin-right: 5px;
  81. }
  82. #timer {
  83. width: 80px;
  84. text-align: right;
  85. }
  86. .notbtn {
  87. cursor: default;
  88. box-shadow: none;
  89. border: 1px solid @gray;
  90. }
  91. hr {
  92. margin-top: 15px;
  93. margin-bottom: 15px;
  94. }
  95. span.title-block {
  96. background-color: @gray-bg;
  97. border-radius: @border-radius-large;
  98. padding: 6px 12px;
  99. margin: 0px 10px;
  100. font-size: @font-size-xl;
  101. }
  102. .nvtooltip {
  103. table td {
  104. font-size: @font-size-s !important;
  105. }
  106. }
  107. div.navbar {
  108. .dropdown-menu .fineprint {
  109. line-height: 1.5rem;
  110. padding: 10px 20px 5px 20px;
  111. color: @gray-light;
  112. font-size: @font-size-m;
  113. div {
  114. white-space: nowrap;
  115. }
  116. }
  117. }
  118. .datasource {
  119. form {
  120. div.form-control,
  121. input.form-control {
  122. margin-bottom: 5px !important;
  123. }
  124. }
  125. .tooltip-inner {
  126. max-width: 350px;
  127. }
  128. }
  129. img.loading {
  130. width: 40px;
  131. position: relative;
  132. margin: 10px;
  133. }
  134. img.viz-thumb-option {
  135. width: 100px;
  136. border: 1px solid @gray;
  137. margin-right: 5px;
  138. border-radius: @border-radius-large;
  139. }
  140. .select2-drop.bigdrop .select2-results {
  141. max-height: 700px;
  142. }
  143. .chart-header .header-text {
  144. font-size: @font-size-xl;
  145. line-height: 22px;
  146. padding-bottom: 8px;
  147. border-bottom: 1px solid @gray;
  148. margin-top: 10px;
  149. margin-left: 10px;
  150. margin-right: 10px;
  151. }
  152. #is_cached {
  153. display: none;
  154. }
  155. .slice_container.faded {
  156. opacity: 0.2;
  157. }
  158. .navbar .alert {
  159. padding: 5px 10px;
  160. margin-top: 8px;
  161. margin-bottom: 0;
  162. }
  163. .table-condensed {
  164. font-size: @font-size-s;
  165. }
  166. .table-condensed input[type='checkbox'] {
  167. float: left;
  168. }
  169. table.table-no-hover tr:hover {
  170. background-color: initial;
  171. }
  172. .editable-title input {
  173. outline: none;
  174. background: transparent;
  175. border: none;
  176. box-shadow: none;
  177. padding: 0;
  178. cursor: initial;
  179. }
  180. .editable-title textarea {
  181. outline: none;
  182. background: transparent;
  183. box-shadow: none;
  184. cursor: initial;
  185. border: 1px solid @gray;
  186. border-radius: @border-radius-normal;
  187. }
  188. .editable-title input[type='text'] {
  189. border: 1px solid @gray;
  190. border-radius: @border-radius-normal;
  191. padding: 2px;
  192. }
  193. .editable-title.datasource-sql-expression {
  194. font-family: @font-family-monospace;
  195. display: inline-block;
  196. min-width: @datasource-sql-expression-width;
  197. }
  198. .editable-title.datasource-sql-expression input {
  199. width: 95%;
  200. padding-bottom: 5px;
  201. }
  202. .editable-title.datasource-sql-expression textarea {
  203. width: 95%;
  204. }
  205. .editable-title input[type='button'] {
  206. border-color: transparent;
  207. background: transparent;
  208. font-size: inherit;
  209. white-space: normal;
  210. text-align: left;
  211. cursor: initial;
  212. }
  213. .editable-title.editable-title--editable input[type='button'] {
  214. cursor: pointer;
  215. }
  216. .editable-title.editable-title--editing input[type='button'] {
  217. cursor: text;
  218. }
  219. .anchor-link-container {
  220. position: absolute;
  221. .btn.btn-sm,
  222. .btn.btn-sm:active {
  223. border: none;
  224. padding-top: 0;
  225. padding-bottom: 0;
  226. background: none;
  227. box-shadow: none;
  228. }
  229. .fa.fa-link {
  230. position: relative;
  231. top: 2px;
  232. right: 0;
  233. visibility: hidden;
  234. font-size: @font-size-s;
  235. text-align: center;
  236. vertical-align: middle;
  237. }
  238. }
  239. .nav.nav-tabs li .anchor-link-container {
  240. top: 0;
  241. right: -32px;
  242. }
  243. .dashboard-component.dashboard-component-header .anchor-link-container {
  244. .fa.fa-link {
  245. font-size: @font-size-l;
  246. }
  247. }
  248. .nav.nav-tabs li:hover,
  249. .dashboard-component.dashboard-component-header:hover {
  250. .anchor-link-container {
  251. cursor: pointer;
  252. .fa.fa-link {
  253. visibility: visible;
  254. }
  255. }
  256. }
  257. .m-r-5 {
  258. margin-right: 5px;
  259. }
  260. .m-r-3 {
  261. margin-right: 3px;
  262. }
  263. .m-t-4 {
  264. margin-top: 4px;
  265. }
  266. .m-t-5 {
  267. margin-top: 5px;
  268. }
  269. .m-t-10 {
  270. margin-top: 10px;
  271. }
  272. .m-b-10 {
  273. margin-bottom: 10px;
  274. }
  275. .m-l-5 {
  276. margin-left: 5px;
  277. }
  278. .m-l-10 {
  279. margin-left: 10px;
  280. }
  281. .m-l-25 {
  282. margin-left: 25px;
  283. }
  284. .p-l-0 {
  285. padding-left: 0;
  286. }
  287. .p-t-8 {
  288. padding-top: 8;
  289. }
  290. .p-r-2 {
  291. padding-right: 2;
  292. }
  293. .Select-menu-outer {
  294. z-index: @z-index-dropdown !important;
  295. }
  296. /** not found record **/
  297. .panel b {
  298. display: inline-block;
  299. width: 98%;
  300. padding: 2rem;
  301. margin: 0 1% 20px 1%;
  302. background: @gray-bg;
  303. }
  304. /** table on both sides of the gap **/
  305. .panel .table-responsive {
  306. padding: 0 1%;
  307. }
  308. @media screen and (max-width: 767px) {
  309. .panel .table-responsive {
  310. width: 98%;
  311. }
  312. }
  313. .list-container {
  314. position: relative;
  315. }
  316. .list-search-container {
  317. position: relative;
  318. }
  319. .list-search-container .dropdown-toggle {
  320. position: absolute;
  321. top: -43px;
  322. right: 25px;
  323. border: 0;
  324. padding: 0 18px;
  325. }
  326. .list-search-container .fa-filter {
  327. position: relative;
  328. left: -8px;
  329. }
  330. .list-search-container .dropdown-menu {
  331. top: -19px;
  332. right: 0;
  333. left: auto;
  334. float: none;
  335. }
  336. .list-container .pagination-container {
  337. display: flex;
  338. flex-direction: row;
  339. flex-wrap: wrap;
  340. justify-content: center;
  341. align-items: center;
  342. padding-bottom: 20px;
  343. }
  344. .list-container .pagination-container .pagination {
  345. margin: 0 15px;
  346. }
  347. .list-container .pagination-container strong {
  348. margin-right: 5px;
  349. }
  350. .list-container .list-add-action {
  351. position: absolute;
  352. top: -30px;
  353. right: 15px;
  354. }
  355. .list-container .form-actions-container {
  356. padding: 0 0 20px 10px;
  357. display: inline;
  358. }
  359. .form-actions-container button {
  360. display: flex;
  361. .caret {
  362. margin: 0 8px;
  363. }
  364. }
  365. .list-container .filter-action {
  366. margin: 10px 10px 0 10px;
  367. padding-bottom: 15px;
  368. }
  369. .list-add-action .btn.btn-sm {
  370. padding: 5px 6px;
  371. font-size: @font-size-xs;
  372. line-height: 2px;
  373. border-radius: 50%;
  374. box-shadow: 2px 2px 4px -1px fade(@darkest, @opacity-light);
  375. }
  376. iframe {
  377. border: none;
  378. width: 100%;
  379. }
  380. .text-transparent {
  381. color: transparent;
  382. }
  383. .dimmed {
  384. opacity: 0.5;
  385. }
  386. .pointer {
  387. cursor: pointer;
  388. }
  389. .PopoverSection {
  390. padding-bottom: 10px;
  391. }
  392. .popover {
  393. max-width: 500px;
  394. }
  395. .float-left {
  396. float: left;
  397. }
  398. .float-right {
  399. float: right;
  400. }
  401. g.annotation-container {
  402. line {
  403. stroke: @brand-primary;
  404. }
  405. rect.annotation {
  406. stroke: @brand-primary;
  407. fill-opacity: 0.1;
  408. stroke-width: 1;
  409. }
  410. }
  411. .stroke-primary {
  412. stroke: @brand-primary;
  413. }
  414. .reactable-header-sortable {
  415. position: relative;
  416. padding-right: 40px;
  417. &::after {
  418. font: normal normal normal 14px/1 FontAwesome;
  419. content: '\f0dc';
  420. margin-left: 10px;
  421. color: @brand-primary;
  422. }
  423. }
  424. .reactable-header-sort-asc::after {
  425. content: '\f0de';
  426. color: @brand-primary;
  427. }
  428. .reactable-header-sort-desc::after {
  429. content: '\f0dd';
  430. color: @brand-primary;
  431. }
  432. tr.reactable-column-header th.reactable-header-sortable {
  433. padding-right: 17px;
  434. }
  435. .explore-chart-overlay {
  436. position: absolute;
  437. z-index: @z-index-above-dashboard-charts;
  438. display: flex;
  439. align-items: center;
  440. justify-content: center;
  441. text-align: center;
  442. }
  443. .refresh-overlay-btn {
  444. font-weight: @font-weight-bold;
  445. margin-right: 10px;
  446. }
  447. .dismiss-overlay-btn {
  448. font-weight: @font-weight-bold;
  449. background: @lightest;
  450. color: @brand-primary;
  451. border-color: @brand-primary;
  452. }
  453. .fave-unfave-icon {
  454. .fa-star-o,
  455. .fa-star {
  456. &,
  457. &:hover,
  458. &:active {
  459. color: @almost-black;
  460. }
  461. }
  462. }
  463. .metric-edit-popover-label-input {
  464. border-radius: @border-radius-large;
  465. height: 30px;
  466. padding-left: 10px;
  467. }
  468. .align-right {
  469. text-align: right;
  470. }
  471. td.filtered {
  472. background-color: lighten(desaturate(@brand-primary, 50%), 50%);
  473. }
  474. .table-name {
  475. font-size: @font-size-l;
  476. }