You are here

views_ui.admin.theme.pcss.css in Drupal 10

View UI admin theme.

Replaces the styles provided by the views_ui module.

File

core/themes/claro/css/theme/views_ui.admin.theme.pcss.css
View source
  1. /**
  2. * @file
  3. * View UI admin theme.
  4. *
  5. * Replaces the styles provided by the views_ui module.
  6. */
  7. .views-admin .links {
  8. margin: 0;
  9. list-style: none outside none;
  10. }
  11. .views-admin a:hover {
  12. text-decoration: none;
  13. }
  14. .views-admin .icon {
  15. width: 16px;
  16. height: 16px;
  17. }
  18. .views-admin .icon,
  19. .views-admin .icon-text {
  20. background-image: url(../../../../modules/views_ui/images/sprites.png);
  21. background-repeat: no-repeat;
  22. background-attachment: scroll;
  23. background-position: left top; /* LTR */
  24. }
  25. [dir="rtl"] .views-admin .icon,
  26. [dir="rtl"] .views-admin .icon-text {
  27. background-position: right top;
  28. }
  29. .views-admin a.icon {
  30. border: 1px solid #ddd;
  31. border-radius: 4px;
  32. background: linear-gradient(-90deg, #fff 0, #e8e8e8 100%) no-repeat, repeat-y;
  33. box-shadow: 0 0 0 rgba(0, 0, 0, 0.3333) inset;
  34. }
  35. .views-admin a.icon:hover {
  36. border-color: #d0d0d0;
  37. box-shadow: 0 0 1px rgba(0, 0, 0, 0.3333) inset;
  38. }
  39. .views-admin a.icon:active {
  40. border-color: #c0c0c0;
  41. }
  42. .views-admin span.icon {
  43. position: relative;
  44. float: left; /* LTR */
  45. }
  46. [dir="rtl"] .views-admin span.icon {
  47. float: right;
  48. }
  49. .views-admin .icon.compact {
  50. display: block;
  51. overflow: hidden;
  52. text-indent: -9999px;
  53. direction: ltr;
  54. }
  55. /* Targets any element with an icon -> text combo */
  56. .views-admin .icon-text {
  57. padding-left: 19px; /* LTR */
  58. }
  59. [dir="rtl"] .views-admin .icon-text {
  60. padding-right: 19px;
  61. padding-left: 0;
  62. }
  63. .views-admin .icon.linked {
  64. background-position: center -153px;
  65. }
  66. .views-admin .icon.unlinked {
  67. background-position: center -195px;
  68. }
  69. .views-admin .icon.delete {
  70. background-position: center -52px;
  71. }
  72. .views-admin a.icon.delete {
  73. background-position: center -52px, left top; /* LTR */
  74. }
  75. [dir="rtl"] .views-admin a.icon.delete {
  76. background-position: center -52px, right top;
  77. }
  78. .views-admin .icon.rearrange {
  79. background-position: center -111px;
  80. }
  81. .views-admin a.icon.rearrange {
  82. background-position: center -111px, left top; /* LTR */
  83. }
  84. [dir="rtl"] .views-admin a.icon.rearrange {
  85. background-position: center -111px, right top;
  86. }
  87. details.box-padding {
  88. border: none;
  89. }
  90. .views-admin details details {
  91. margin-bottom: 0;
  92. }
  93. .form-item {
  94. margin-top: 9px;
  95. padding-top: 0;
  96. padding-bottom: 0;
  97. }
  98. .form-type-checkbox {
  99. margin-top: 6px;
  100. }
  101. .form-checkbox,
  102. .form-radio {
  103. vertical-align: baseline;
  104. }
  105. /* Indent form elements so they're directly underneath the label of the checkbox that reveals them */
  106. .views-admin .form-type-checkbox + .form-wrapper {
  107. margin-left: 16px; /* LTR */
  108. }
  109. [dir="rtl"] .views-admin .form-type-checkbox + .form-wrapper {
  110. margin-right: 16px;
  111. margin-left: 0;
  112. }
  113. /* Hide 'remove' checkboxes. */
  114. .views-remove-checkbox {
  115. display: none;
  116. }
  117. /* sizes the labels of checkboxes and radio button to the height of the text */
  118. .views-admin .form-type-checkbox label,
  119. .views-admin .form-type-radio label {
  120. line-height: 2;
  121. }
  122. .views-admin-dependent .form-item {
  123. margin-top: 6px;
  124. margin-bottom: 6px;
  125. }
  126. .views-ui-view-name h3 {
  127. margin: 0.25em 0;
  128. font-weight: bold;
  129. }
  130. .view-changed {
  131. margin-bottom: 21px;
  132. }
  133. .views-admin .unit-title {
  134. margin-top: 18px;
  135. margin-bottom: 0;
  136. font-size: 15px;
  137. line-height: 1.6154;
  138. }
  139. .views-ui-view-displays ul {
  140. margin-left: 0; /* LTR */
  141. padding-left: 0; /* LTR */
  142. list-style: none;
  143. }
  144. [dir="rtl"] .views-ui-view-displays ul {
  145. margin-right: 0;
  146. margin-left: inherit;
  147. padding-right: 0;
  148. padding-left: inherit;
  149. }
  150. /* These header classes are ambiguous and should be scoped to th elements */
  151. .views-ui-name {
  152. width: 20%;
  153. }
  154. .views-ui-description {
  155. width: 30%;
  156. }
  157. .views-ui-machine-name {
  158. width: 15%;
  159. }
  160. .views-ui-displays {
  161. width: 25%;
  162. }
  163. .views-ui-operations {
  164. width: 10%;
  165. }
  166. /**
  167. * I wish this didn't have to be so specific
  168. */
  169. .form-item-description-enable + .form-item-description {
  170. margin-top: 0;
  171. }
  172. .form-item-description-enable label {
  173. font-weight: bold;
  174. }
  175. .form-item-page-create,
  176. .form-item-block-create {
  177. margin-top: 13px;
  178. }
  179. .form-item-page-create label,
  180. .form-item-block-create label,
  181. .form-item-rest-export-create label {
  182. font-weight: bold;
  183. }
  184. /* This makes the form elements after the "Display Format" label flow underneath the label */
  185. .form-item-page-style-style-plugin > label,
  186. .form-item-block-style-style-plugin > label {
  187. display: block;
  188. }
  189. .views-attachment .options-set label {
  190. font-weight: normal;
  191. }
  192. /* Styling for the form that allows views filters to be rearranged. */
  193. .group-populated {
  194. display: none;
  195. }
  196. td.group-title {
  197. font-weight: bold;
  198. }
  199. .views-ui-dialog td.group-title {
  200. height: 1px;
  201. margin: 0;
  202. padding: 0;
  203. }
  204. .views-ui-dialog td.group-title span {
  205. display: block;
  206. overflow: hidden;
  207. height: 1px;
  208. }
  209. .group-message .form-submit,
  210. .views-remove-group-link,
  211. .views-add-group {
  212. float: right; /* LTR */
  213. clear: both;
  214. }
  215. [dir="rtl"] .group-message .form-submit,
  216. [dir="rtl"] .views-remove-group-link,
  217. [dir="rtl"] .views-add-group {
  218. float: left;
  219. }
  220. .views-operator-label {
  221. position: absolute;
  222. z-index: 1;
  223. bottom: -13px;
  224. padding: 0.5px 6px;
  225. text-transform: uppercase;
  226. border: 1px solid var(--color-gray-200);
  227. background: #fff;
  228. font-weight: bold;
  229. font-style: italic;
  230. }
  231. .grouped-description,
  232. .exposed-description {
  233. float: left; /* LTR */
  234. padding-top: 3px;
  235. padding-right: 10px; /* LTR */
  236. }
  237. [dir="rtl"] .grouped-description,
  238. [dir="rtl"] .exposed-description {
  239. float: right;
  240. padding-right: 0;
  241. padding-left: 10px;
  242. }
  243. .views-displays {
  244. padding-bottom: 36px;
  245. border-top: 1px solid var(--color-gray-200-o-80);
  246. border-right: 1px solid var(--color-gray-200-o-80);
  247. border-left: 1px solid var(--color-gray-200-o-80);
  248. }
  249. .views-display-top {
  250. position: relative;
  251. display: flex;
  252. flex-wrap: wrap;
  253. justify-content: space-between;
  254. padding: var(--space-s) var(--space-s) calc(var(--space-s) - 5px);
  255. border-bottom: 1px solid var(--color-gray-200-o-80);
  256. background-color: var(--color-gray-050);
  257. }
  258. .form-edit .form-actions {
  259. margin-top: 0;
  260. padding: var(--space-s) var(--space-m);
  261. border-right: 1px solid var(--color-gray-200-o-80);
  262. border-bottom: 1px solid var(--color-gray-200-o-80);
  263. border-left: 1px solid var(--color-gray-200-o-80);
  264. background-color: var(--color-gray-050);
  265. }
  266. .edit-display-settings {
  267. margin: var(--space-l) var(--space-l) 0 var(--space-l);
  268. }
  269. .edit-display-settings-top.views-ui-display-tab-bucket.views-ui-display-tab-bucket {
  270. position: relative;
  271. display: flex;
  272. flex-wrap: wrap;
  273. justify-content: space-between;
  274. margin: 0 0 var(--space-l);
  275. padding: 0;
  276. border-bottom: none;
  277. line-height: 20px;
  278. }
  279. .edit-display-settings-top.views-ui-display-tab-bucket .views-display-setting {
  280. padding: 0.125rem 0 0;
  281. }
  282. .views-display-column {
  283. border: 1px solid var(--color-gray-200-o-80);
  284. border-radius: var(--base-border-radius);
  285. box-shadow: var(--details-box-shadow);
  286. }
  287. .views-display-column + .views-display-column {
  288. margin-top: 0;
  289. }
  290. .view-preview-form .form-item--view-args,
  291. .view-preview-form .form-actions {
  292. margin-top: 5px;
  293. }
  294. .view-preview-form .arguments-preview {
  295. font-size: 1em;
  296. }
  297. .view-preview-form .form-item--view-args {
  298. margin-top: var(--space-m);
  299. }
  300. .view-preview-form .arguments-preview,
  301. .view-preview-form .form-item--view-args {
  302. margin-right: var(--space-m);
  303. margin-left: var(--space-m);
  304. }
  305. .preview-submit-wrapper {
  306. display: inline-block;
  307. }
  308. .form-item--live-preview,
  309. .view-preview-form .form-actions {
  310. vertical-align: top;
  311. }
  312. @media screen and (min-width: 45em) { /* 720px */
  313. .view-preview-form .form-type-textfield .description {
  314. white-space: nowrap;
  315. }
  316. }
  317. /* These are the individual "buckets," or boxes, inside the display settings area */
  318. .views-ui-display-tab-bucket.views-ui-display-tab-bucket {
  319. position: relative;
  320. margin: 0 0 var(--space-xs);
  321. padding-top: var(--space-xs);
  322. padding-bottom: var(--space-xs);
  323. border-bottom: 1px solid var(--color-gray-200-o-80);
  324. line-height: 20px;
  325. }
  326. .views-ui-display-tab-bucket:last-of-type {
  327. margin-bottom: 0;
  328. border-bottom: none;
  329. }
  330. .views-ui-display-tab-bucket + .views-ui-display-tab-bucket {
  331. border-top: medium none;
  332. }
  333. .views-ui-display-tab-bucket__header {
  334. display: inline-flex;
  335. justify-content: space-between;
  336. box-sizing: border-box;
  337. width: 100%;
  338. padding: var(--space-s) var(--space-m) calc(var(--space-s) + 2px);
  339. }
  340. .views-ui-display-tab-bucket__title {
  341. margin: 0;
  342. font-size: var(--font-size-base);
  343. }
  344. .views-ui-display-tab-bucket.access {
  345. padding-top: 0;
  346. }
  347. .views-ui-display-tab-bucket.page-settings {
  348. border-bottom: medium none;
  349. }
  350. /** Applies an overridden(italics) font style to overridden buckets.
  351. * The better way to implement this would be to add the overridden class
  352. * to the bucket header when the bucket is overridden and style it as a
  353. * generic icon classed element. For the moment, we'll style the bucket
  354. * header specifically with the overridden font style.
  355. */
  356. .views-ui-display-tab-setting.overridden,
  357. .views-ui-display-tab-bucket.overridden .views-ui-display-tab-bucket__title {
  358. font-style: italic;
  359. }
  360. /* This is each row within one of the "boxes." */
  361. .views-ui-display-tab-bucket .views-display-setting {
  362. display: flex;
  363. flex-wrap: wrap;
  364. padding: var(--space-xs) var(--space-m);
  365. color: #666;
  366. font-size: var(--font-size-s);
  367. }
  368. .views-ui-display-tab-actions.views-ui-display-tab-bucket .views-display-setting {
  369. background-color: transparent;
  370. }
  371. .views-ui-display-tab-bucket .views-group-text {
  372. margin-top: 6px;
  373. margin-bottom: 6px;
  374. }
  375. .views-ui-display-tab-bucket__actions {
  376. margin-left: var(--space-xs); /* LTR */
  377. }
  378. [dir="rtl"] .views-ui-display-tab-bucket__actions {
  379. margin-right: var(--space-xs);
  380. margin-left: 0;
  381. }
  382. .views-display-setting .label {
  383. margin-right: var(--space-xs); /* LTR */
  384. white-space: nowrap;
  385. }
  386. [dir="rtl"] .views-display-setting .label {
  387. margin-right: 0;
  388. margin-left: var(--space-xs);
  389. }
  390. .label--separator.label--separator {
  391. margin-right: var(--space-xs);
  392. margin-left: var(--space-xs);
  393. }
  394. .views-edit-view {
  395. margin-bottom: 15px;
  396. }
  397. /* The contents of the popup dialog on the views edit form. */
  398. .views-filterable-options .form-type-checkbox {
  399. padding: 5px 8px;
  400. border-top: none;
  401. }
  402. .filterable-option .form-item {
  403. margin-top: 0;
  404. margin-bottom: 0;
  405. }
  406. .views-filterable-options .form-type-checkbox .description {
  407. margin-top: 0;
  408. margin-bottom: 0;
  409. }
  410. .views-filterable-options-controls .form-item {
  411. width: 30%;
  412. margin: 0 0 0 2%; /* LTR */
  413. }
  414. [dir="rtl"] .views-filterable-options-controls .form-item {
  415. margin: 0 2% 0 0;
  416. }
  417. .views-filterable-options-controls input,
  418. .views-filterable-options-controls select {
  419. width: 100%;
  420. }
  421. .views-ui-dialog.views-ui-dialog > .ui-dialog-content {
  422. padding: 0;
  423. }
  424. .views-ui-dialog .views-filterable-options {
  425. margin-bottom: 10px;
  426. }
  427. [id^="views-ui-add-handler-form"] .scroll {
  428. padding-top: 0;
  429. padding-bottom: 0;
  430. }
  431. .views-ui-dialog .views-add-form-selected {
  432. padding: 0 1rem;
  433. }
  434. .views-ui-dialog .views-add-form-selected > div {
  435. display: block;
  436. margin: 0;
  437. padding: 0.3rem 0.8rem;
  438. border: 1px solid #dedfe4;
  439. border-radius: 2px 2px 0 0;
  440. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  441. }
  442. .views-ui-dialog .form-item-selected {
  443. margin: 0;
  444. padding: 6px 16px;
  445. }
  446. .views-ui-dialog .views-add-form-selected .views-selected-options {
  447. display: inline;
  448. }
  449. .views-ui-dialog.views-ui-dialog-scroll .ui-dialog-titlebar {
  450. border: none;
  451. }
  452. .views-ui-dialog .views-offset-top:not(:empty) {
  453. position: relative;
  454. padding: var(--space-s) var(--space-m) var(--space-xs);
  455. background-color: var(--color-gray-050);
  456. }
  457. .views-ui-dialog .views-offset-top:not(:empty):after {
  458. position: absolute;
  459. bottom: 0;
  460. left: 0;
  461. width: 100%;
  462. height: 3px;
  463. content: "";
  464. background: linear-gradient(to bottom, rgba(80, 81, 86, 0.11) 0%, rgba(18, 19, 20, 0.02) 49%, rgba(18, 19, 20, 0) 100%);
  465. }
  466. .views-ui-dialog .views-offset-top > * {
  467. margin: 0;
  468. }
  469. .views-ui-dialog .views-offset-top .form-item {
  470. max-width: 40%;
  471. margin: 0 var(--space-s) var(--space-s) 0;
  472. }
  473. .views-ui-dialog .tabledrag-toggle-weight-wrapper {
  474. margin: 0 0 var(--space-m) 0;
  475. }
  476. .views-ui-dialog details .item-list {
  477. padding-left: 2em; /* LTR */
  478. }
  479. [dir="rtl"] .views-ui-dialog details .item-list {
  480. padding-right: 2em;
  481. padding-left: 0;
  482. }
  483. .views-display-columns .details-wrapper {
  484. margin: 0;
  485. }
  486. .views-ui-rearrange-filter-form table {
  487. border-collapse: collapse;
  488. }
  489. .views-ui-rearrange-filter-form tr td[rowspan] {
  490. border: 1px solid var(--color-gray-200);
  491. }
  492. .views-ui-rearrange-filter-form tr[id^="views-row"] {
  493. border-right: 1px solid #cdcdcd; /* LTR */
  494. }
  495. [dir="rtl"] .views-ui-rearrange-filter-form tr[id^="views-row"] {
  496. border-right: 0;
  497. border-left: 1px solid #cdcdcd;
  498. }
  499. .views-ui-rearrange-filter-form .draggable td {
  500. border-bottom: 0.0625rem solid var(--color-gray-200);
  501. }
  502. .views-ui-rearrange-filter-form .group-empty {
  503. border-bottom: 1px solid #cdcdcd;
  504. }
  505. .form-item-options-expose-required,
  506. .form-item-options-expose-label,
  507. .form-item-options-expose-field-identifier,
  508. .form-item-options-expose-description {
  509. margin-top: 6px;
  510. margin-bottom: 6px;
  511. margin-left: 18px; /* LTR */
  512. }
  513. [dir="rtl"] .form-item-options-expose-required,
  514. [dir="rtl"] .form-item-options-expose-label,
  515. [dir="rtl"] .form-item-options-expose-field-identifier,
  516. [dir="rtl"] .form-item-options-expose-description {
  517. margin-right: 18px;
  518. margin-left: 0;
  519. }
  520. .views-preview-wrapper {
  521. border: 1px solid #ccc;
  522. }
  523. .view-preview-form {
  524. position: relative;
  525. }
  526. .view-preview-form__title {
  527. margin-top: 0;
  528. padding: 8px 12px;
  529. border-bottom: 1px solid #ccc;
  530. background-color: var(--color-gray-050);
  531. }
  532. .view-preview-form .form-item--live-preview {
  533. position: absolute;
  534. top: 0.6875rem;
  535. right: var(--space-s);
  536. margin-top: 2px;
  537. margin-left: 2px; /* LTR */
  538. }
  539. [dir="rtl"] .view-preview-form .form-item--live-preview {
  540. right: auto;
  541. left: var(--space-s);
  542. margin-right: 2px;
  543. margin-left: 0;
  544. }
  545. .views-live-preview {
  546. padding: var(--space-m);
  547. }
  548. .views-live-preview .views-query-info {
  549. overflow: auto;
  550. }
  551. .views-live-preview .section-title {
  552. display: inline-block;
  553. margin-top: 0;
  554. margin-bottom: 0;
  555. color: var(--color-gray-800);
  556. font-size: 13px;
  557. font-weight: normal;
  558. line-height: 1.6154;
  559. }
  560. .views-live-preview .view > * {
  561. margin-top: var(--space-m);
  562. }
  563. .views-live-preview .preview-section {
  564. margin: 0 -5px;
  565. padding: 3px 5px;
  566. border: 1px dashed #dedede;
  567. }
  568. .views-live-preview li.views-row + li.views-row {
  569. margin-top: 18px;
  570. }
  571. /* The div.views-row is intentional and excludes li.views-row, for example */
  572. .views-live-preview div.views-row + div.views-row {
  573. margin-top: 36px;
  574. }
  575. .views-query-info table {
  576. margin: 10px 0;
  577. border-spacing: 0;
  578. border-collapse: separate;
  579. border-color: var(--color-bg);
  580. }
  581. .views-query-info table tr {
  582. background-color: var(--color-gray-050);
  583. }
  584. .views-query-info table th,
  585. .views-query-info table td {
  586. padding: var(--space-xs) var(--space-l);
  587. font-size: var(--font-size-s);
  588. }
  589. .messages {
  590. margin-bottom: 18px;
  591. line-height: 1.4555;
  592. }
  593. .js .dropbutton-wrapper .dropbutton .dropbutton-action > .ajax-progress-throbber {
  594. position: absolute;
  595. z-index: 2;
  596. top: -1px;
  597. right: -5px; /* LTR */
  598. }
  599. [dir="rtl"].js .dropbutton-wrapper .dropbutton .dropbutton-action > .ajax-progress-throbber {
  600. right: auto;
  601. left: -5px;
  602. }
  603. /**
  604. * Position dropbuttons with flexbox instead after the dropbuttons have been
  605. * converted to splitbuttons.
  606. *
  607. * @see https://www.drupal.org/project/drupal/issues/3134107
  608. * @see https://www.drupal.org/project/drupal/issues/1899236
  609. */
  610. .edit-display-settings-top.views-ui-display-tab-bucket .dropbutton-wrapper {
  611. top: 0.8125rem;
  612. right: var(--space-s); /* LTR */
  613. }
  614. [dir="rtl"] .edit-display-settings-top.views-ui-display-tab-bucket .dropbutton-wrapper {
  615. right: auto;
  616. left: var(--space-s);
  617. }
  618. .views-list-section {
  619. margin-bottom: 2em;
  620. }
  621. .form-textarea-wrapper,
  622. .form-item-options-content {
  623. width: 100%;
  624. }
  625. .views-messages .messages-list,
  626. .views-messages .messages-list__item {
  627. margin-top: 0;
  628. margin-bottom: 0;
  629. }
  630. /**
  631. * Styles on devices with touchevents.
  632. */
  633. html:not(.no-touchevents) .views-ui-display-tab-bucket__header--actions {
  634. padding: var(--space-l) var(--space-xs);
  635. }
  636. html:not(.no-touchevents) .edit-display-settings-top.views-ui-display-tab-bucket {
  637. padding: var(--space-m) var(--space-xs);
  638. }