Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

views_ui.admin.theme.css

Same filename in this branch
  1. 11.1.x core/themes/stable9/css/views_ui/views_ui.admin.theme.css
  2. 11.1.x core/modules/views_ui/css/views_ui.admin.theme.css

View UI admin theme.

Replaces the styles provided by the views_ui module.

File

core/themes/claro/css/theme/views_ui.admin.theme.css

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal