views-ui.pcss.css
Same filename in other branches
/** * Views styling */ /* @group Forms */ /** * Claro positions the summary absolutely, but does not have a way to ignore * details without a summary so we make one up. * * @todo Neither a fieldset without legend nor a details without summary is * valid HTML markup in any way. Refactor Views UI to not produce such invalid * markup. */ details.fieldset-no-legend { padding-top: 0; } /** * Being extra safe here and scoping this to the add view wizard form (where * a layout problem occurs for the Display format details if we don't fix its * padding), but it's probably safe to just let it apply everywhere. */ .views-ui-dialog input.form-submit, .views-admin a.button, .views-ui-dialog a.button { margin-top: 0; margin-right: 0; margin-bottom: 0; } [dir="rtl"] .views-ui-dialog input.form-submit, [dir="rtl"] .views-admin a.button, [dir="rtl"] .views-ui-dialog a.button { margin-right: 1em; margin-left: 0; } [dir="rtl"] .views-ui-dialog input.form-submit:first-child, [dir="rtl"] .views-admin a.button:first-child, [dir="rtl"] .views-ui-dialog a.button:first-child { margin-right: 0; } /* @group Dependent options */ /* This is necessary to supercede the Claro .form-item * reset declaration that sets the margin to zero. */ .form-item-options-expose-required, .form-item-options-expose-label, .form-item-options-expose-description { margin-left: 1.5em; /* LTR */ } [dir="rtl"] .form-item-options-expose-required, [dir="rtl"] .form-item-options-expose-label, [dir="rtl"] .form-item-options-expose-description { margin-right: 1.5em; margin-left: 0; } .views-admin-dependent .form-item .form-item, .views-admin-dependent .form-type-checkboxes, .views-admin-dependent .form-type-radios, .views-admin-dependent .form-item .form-item, .form-item-options-expose-required, .form-item-options-expose-label, .form-item-options-expose-description { margin-top: 6px; margin-bottom: 6px; } .views-admin-dependent .form-type-radio, .views-admin-dependent .form-radios .form-item { margin-top: 2px; margin-bottom: 2px; } /* @end */ /* @group Lists */ .views-admin ul.secondary, .views-admin .item-list ul { margin: 0; padding: 0; } .views-displays ul.secondary li a, .views-displays ul.secondary li.is-active a, .views-displays ul.secondary li.is-active a.is-active { padding: 2px 7px 3px; } .views-displays ul.secondary li a { color: #0074bd; } .views-displays ul.secondary li.is-active a, .views-displays ul.secondary li.is-active a.is-active { border: 1px solid transparent; } .views-admin .links li { padding-right: 0; /* LTR */ } [dir="rtl"] .views-admin .links li { padding-left: 0; } .views-admin .button .links li { padding-right: 12px; /* LTR */ } [dir="rtl"] .views-admin .button .links li { padding-left: 12px; } .views-display-top ul.secondary { float: left; /* LTR */ background-color: transparent; } [dir="rtl"] .views-display-top ul.secondary { float: right; } .views-display-top .secondary .action-list li { float: none; margin: 0; } /* @end */ /* @group Tables */ .views-ui-rearrange-filter-form table td, .views-ui-rearrange-filter-form table th { vertical-align: top; } /* @end */ /* @group Attachment details */ #edit-display-settings-title { color: #008bcb; } /* @end */ /* @group Attachment details tabs * * The tabs that switch between sections * * @todo this group contains lots of duplicates from core styles because Claro * has its custom markup for views tabs. Some of these could be removed after * https://www.drupal.org/node/3051605 has been solved. */ .views-tabs { overflow: visible; margin: 0 200px 0 0; /* LTR */ padding: 0; list-style: none; text-align: left; /* LTR */ border-bottom: 0 none; } [dir="rtl"] .views-tabs { margin-right: 0; margin-left: 200px; text-align: right; } .views-tabs > li { float: left; /* LTR */ padding: 0; border-right: 0 none; /* LTR */ } [dir="rtl"] .views-tabs > li { float: right; border-right: 1px solid #bfbfbf; border-left: 0 none; } .views-tabs .open > a { position: relative; z-index: 51; } .views-tabs .views-display-deleted-link { text-decoration: line-through; } .views-tabs .add { position: relative; } .views-tabs .action-list { position: absolute; z-index: 50; top: 23px; left: 0; /* LTR */ margin: 0; } [dir="rtl"] .views-tabs .action-list { right: 0; left: auto; } .views-tabs .action-list li { display: block; } .views-tab a:hover > .icon.add { background-position: center -25px; } .views-tab .open > a { border-radius: 7px 7px 0 0; } .views-tab .open > a:hover, .views-tab .open > a:focus { color: #008bcb; background-color: #f1f1f1; } .views-tab .action-list li:first-child { border-radius: 0 7px 0 0; /* LTR */ } [dir="rtl"] .views-tab .action-list li:first-child { border-radius: 7px 0 0 0; } .views-tab .action-list li:last-child { border-radius: 0 0 7px 7px; } .views-tab .action-list input.form-submit { color: #008bcb; } .views-tabs li, .views-tabs li.is-active { width: auto; padding: 0; border: 0; background: transparent; } .views-tabs li.add ul.action-list li { margin: 0; } .views-tabs li { margin: 0 5px 5px 6px; /* LTR */ } [dir="rtl"] .views-tabs li { margin-right: 6px; margin-left: 5px; } .views-tabs li + li { border-top: 0; } .views-tabs li:hover { padding-left: 0; /* LTR */ border: 0; } [dir="rtl"] .views-tabs li:hover { padding-right: 0; } .views-tabs a { display: inline-block; padding: 3px 7px; border: 1px solid #cbcbcb; border-radius: 7px; font-size: small; line-height: 1.3333; } /* Display a red border if the display doesn't validate. */ .views-tabs li.is-active a.is-active.error, .views-tabs .error { padding: 1px 6px; border: 2px solid #ed541d; } .views-tabs a:focus { outline: none; } .views-tabs li a { text-decoration: none; background-color: #fff; } .views-tabs li a:hover, .views-tabs li.is-active a, .views-tabs li.is-active a.is-active { color: #fff; background-color: #555; } .views-tabs .open > a { position: relative; border-bottom: 1px solid transparent; background-color: #f1f1f1; } .views-tabs .open > a:hover { color: #0074bd; background-color: #f1f1f1; } .views-tabs .action-list li { padding: 2px 9px; border-width: 0 1px; border-style: solid; border-color: #cbcbcb; background-color: #f1f1f1; } .views-tabs .action-list li:first-child { border-width: 1px 1px 0; } .views-displays .action-list li:last-child { border-width: 0 1px 1px; } .views-tabs .action-list li:last-child { border-width: 0 1px 1px; } .views-tabs .action-list input.form-submit { margin: 0; padding: 0; border: medium none; background: none repeat scroll 0 0 transparent; } .views-tabs .action-list input.form-submit:hover { box-shadow: none; } .views-tabs .action-list li:hover { background-color: #ddd; } .views-tabs a:hover > .icon.add { background-position: center -25px; } .views-tabs .open a:hover > .icon.add { background-position: center 3px; } /* @end */ /* @group Attachment buckets * * These are the individual "buckets," or boxes, inside the display settings area */ .views-ui-display-tab-bucket h3 { text-transform: uppercase; } .views-ui-display-tab-bucket .links { padding: 2px 6px 4px; } .views-ui-display-tab-bucket .links li + li { margin-left: 3px; /* LTR */ } [dir="rtl"] .views-ui-display-tab-bucket .links li + li { margin-right: 3px; margin-left: 0; } /* @end */ /* @group Rearrange filter criteria */ .views-ui-rearrange-filter-form .action-links { float: left; margin: 0 0 1em; padding: 0; } .views-ui-rearrange-filter-form .tabledrag-toggle-weight-wrapper { float: right; margin-bottom: 1em; } .views-ui-rearrange-filter-form table { border: medium none; } .views-ui-rearrange-filter-form [id^="views-row"] { border: medium none; } .views-ui-rearrange-filter-form tr td:last-child { border-right: medium none; /* LTR */ } [dir="rtl"] .views-ui-rearrange-filter-form tr td:last-child { border-right: initial; border-left: medium none; } .views-ui-rearrange-filter-form .filter-group-operator-row { border-right: 1px solid transparent !important; border-left: 1px solid transparent !important; } .views-ui-rearrange-filter-form tr.drag td { background-color: #fe7 !important; } .views-ui-rearrange-filter-form tr.drag-previous td { background-color: #ffb !important; } /* @end */ /* @group Live preview elements */ .views-query-info pre { margin-top: 0; margin-bottom: 0; } /* @group Query info table */ .views-query-info table { border-radius: 7px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; } .views-query-info table tr td:last-child { /* Fixes a Claro style that bleeds down into this table unnecessarily */ border-right: 0 none; /* LTR */ } [dir="rtl"] .views-query-info table tr td:last-child { border-right: initial; border-left: 0 none; } /* @end */ /* @end */ /* @group Add view */ .form-item-page-create, .form-item-block-create { margin-top: 13px; } /* @end */ /* @group Modal dialog box * * The contents of the popup dialog on the views edit form. */ .filterable-option .form-item.form-type-checkbox { padding-top: 4px; /* This selector is aggressive because Claro's reset for .form-items is aggressive. */ padding-bottom: 4px; padding-left: 4px; /* LTR */ } [dir="rtl"] .filterable-option .form-item.form-type-checkbox { padding-right: 4px; padding-left: 8px; } /* @end */
File
-
core/
themes/ claro/ css/ components/ views-ui.pcss.css
View source
- /**
- * Views styling
- */
-
- /* @group Forms */
-
- /**
- * Claro positions the summary absolutely, but does not have a way to ignore
- * details without a summary so we make one up.
- *
- * @todo Neither a fieldset without legend nor a details without summary is
- * valid HTML markup in any way. Refactor Views UI to not produce such invalid
- * markup.
- */
- details.fieldset-no-legend {
- padding-top: 0;
- }
-
- /**
- * Being extra safe here and scoping this to the add view wizard form (where
- * a layout problem occurs for the Display format details if we don't fix its
- * padding), but it's probably safe to just let it apply everywhere.
- */
- .views-ui-dialog input.form-submit,
- .views-admin a.button,
- .views-ui-dialog a.button {
- margin-top: 0;
- margin-right: 0;
- margin-bottom: 0;
- }
- [dir="rtl"] .views-ui-dialog input.form-submit,
- [dir="rtl"] .views-admin a.button,
- [dir="rtl"] .views-ui-dialog a.button {
- margin-right: 1em;
- margin-left: 0;
- }
- [dir="rtl"] .views-ui-dialog input.form-submit:first-child,
- [dir="rtl"] .views-admin a.button:first-child,
- [dir="rtl"] .views-ui-dialog a.button:first-child {
- margin-right: 0;
- }
-
- /* @group Dependent options
- */
-
- /* This is necessary to supercede the Claro .form-item
- * reset declaration that sets the margin to zero.
- */
- .form-item-options-expose-required,
- .form-item-options-expose-label,
- .form-item-options-expose-description {
- margin-left: 1.5em; /* LTR */
- }
- [dir="rtl"] .form-item-options-expose-required,
- [dir="rtl"] .form-item-options-expose-label,
- [dir="rtl"] .form-item-options-expose-description {
- margin-right: 1.5em;
- margin-left: 0;
- }
-
- .views-admin-dependent .form-item .form-item,
- .views-admin-dependent .form-type-checkboxes,
- .views-admin-dependent .form-type-radios,
- .views-admin-dependent .form-item .form-item,
- .form-item-options-expose-required,
- .form-item-options-expose-label,
- .form-item-options-expose-description {
- margin-top: 6px;
- margin-bottom: 6px;
- }
-
- .views-admin-dependent .form-type-radio,
- .views-admin-dependent .form-radios .form-item {
- margin-top: 2px;
- margin-bottom: 2px;
- }
-
- /* @end */
-
- /* @group Lists */
-
- .views-admin ul.secondary,
- .views-admin .item-list ul {
- margin: 0;
- padding: 0;
- }
-
- .views-displays ul.secondary li a,
- .views-displays ul.secondary li.is-active a,
- .views-displays ul.secondary li.is-active a.is-active {
- padding: 2px 7px 3px;
- }
-
- .views-displays ul.secondary li a {
- color: #0074bd;
- }
-
- .views-displays ul.secondary li.is-active a,
- .views-displays ul.secondary li.is-active a.is-active {
- border: 1px solid transparent;
- }
-
- .views-admin .links li {
- padding-right: 0; /* LTR */
- }
- [dir="rtl"] .views-admin .links li {
- padding-left: 0;
- }
-
- .views-admin .button .links li {
- padding-right: 12px; /* LTR */
- }
- [dir="rtl"] .views-admin .button .links li {
- padding-left: 12px;
- }
-
- .views-display-top ul.secondary {
- float: left; /* LTR */
- background-color: transparent;
- }
- [dir="rtl"] .views-display-top ul.secondary {
- float: right;
- }
-
- .views-display-top .secondary .action-list li {
- float: none;
- margin: 0;
- }
-
- /* @end */
-
- /* @group Tables */
-
- .views-ui-rearrange-filter-form table td,
- .views-ui-rearrange-filter-form table th {
- vertical-align: top;
- }
-
- /* @end */
-
- /* @group Attachment details */
-
- #edit-display-settings-title {
- color: #008bcb;
- }
-
- /* @end */
-
- /* @group Attachment details tabs
- *
- * The tabs that switch between sections
- *
- * @todo this group contains lots of duplicates from core styles because Claro
- * has its custom markup for views tabs. Some of these could be removed after
- * https://www.drupal.org/node/3051605 has been solved.
- */
-
- .views-tabs {
- overflow: visible;
- margin: 0 200px 0 0; /* LTR */
- padding: 0;
- list-style: none;
- text-align: left; /* LTR */
- border-bottom: 0 none;
- }
- [dir="rtl"] .views-tabs {
- margin-right: 0;
- margin-left: 200px;
- text-align: right;
- }
- .views-tabs > li {
- float: left; /* LTR */
- padding: 0;
- border-right: 0 none; /* LTR */
- }
- [dir="rtl"] .views-tabs > li {
- float: right;
- border-right: 1px solid #bfbfbf;
- border-left: 0 none;
- }
- .views-tabs .open > a {
- position: relative;
- z-index: 51;
- }
- .views-tabs .views-display-deleted-link {
- text-decoration: line-through;
- }
- .views-tabs .add {
- position: relative;
- }
- .views-tabs .action-list {
- position: absolute;
- z-index: 50;
- top: 23px;
- left: 0; /* LTR */
- margin: 0;
- }
- [dir="rtl"] .views-tabs .action-list {
- right: 0;
- left: auto;
- }
- .views-tabs .action-list li {
- display: block;
- }
-
- .views-tab a:hover > .icon.add {
- background-position: center -25px;
- }
-
- .views-tab .open > a {
- border-radius: 7px 7px 0 0;
- }
-
- .views-tab .open > a:hover,
- .views-tab .open > a:focus {
- color: #008bcb;
- background-color: #f1f1f1;
- }
-
- .views-tab .action-list li:first-child {
- border-radius: 0 7px 0 0; /* LTR */
- }
- [dir="rtl"] .views-tab .action-list li:first-child {
- border-radius: 7px 0 0 0;
- }
-
- .views-tab .action-list li:last-child {
- border-radius: 0 0 7px 7px;
- }
-
- .views-tab .action-list input.form-submit {
- color: #008bcb;
- }
-
- .views-tabs li,
- .views-tabs li.is-active {
- width: auto;
- padding: 0;
- border: 0;
- background: transparent;
- }
- .views-tabs li.add ul.action-list li {
- margin: 0;
- }
- .views-tabs li {
- margin: 0 5px 5px 6px; /* LTR */
- }
- [dir="rtl"] .views-tabs li {
- margin-right: 6px;
- margin-left: 5px;
- }
- .views-tabs li + li {
- border-top: 0;
- }
- .views-tabs li:hover {
- padding-left: 0; /* LTR */
- border: 0;
- }
- [dir="rtl"] .views-tabs li:hover {
- padding-right: 0;
- }
- .views-tabs a {
- display: inline-block;
- padding: 3px 7px;
- border: 1px solid #cbcbcb;
- border-radius: 7px;
- font-size: small;
- line-height: 1.3333;
- }
-
- /* Display a red border if the display doesn't validate. */
- .views-tabs li.is-active a.is-active.error,
- .views-tabs .error {
- padding: 1px 6px;
- border: 2px solid #ed541d;
- }
- .views-tabs a:focus {
- outline: none;
- }
- .views-tabs li a {
- text-decoration: none;
- background-color: #fff;
- }
- .views-tabs li a:hover,
- .views-tabs li.is-active a,
- .views-tabs li.is-active a.is-active {
- color: #fff;
- background-color: #555;
- }
- .views-tabs .open > a {
- position: relative;
- border-bottom: 1px solid transparent;
- background-color: #f1f1f1;
- }
- .views-tabs .open > a:hover {
- color: #0074bd;
- background-color: #f1f1f1;
- }
- .views-tabs .action-list li {
- padding: 2px 9px;
- border-width: 0 1px;
- border-style: solid;
- border-color: #cbcbcb;
- background-color: #f1f1f1;
- }
- .views-tabs .action-list li:first-child {
- border-width: 1px 1px 0;
- }
- .views-displays .action-list li:last-child {
- border-width: 0 1px 1px;
- }
- .views-tabs .action-list li:last-child {
- border-width: 0 1px 1px;
- }
- .views-tabs .action-list input.form-submit {
- margin: 0;
- padding: 0;
- border: medium none;
- background: none repeat scroll 0 0 transparent;
- }
- .views-tabs .action-list input.form-submit:hover {
- box-shadow: none;
- }
- .views-tabs .action-list li:hover {
- background-color: #ddd;
- }
-
- .views-tabs a:hover > .icon.add {
- background-position: center -25px;
- }
- .views-tabs .open a:hover > .icon.add {
- background-position: center 3px;
- }
-
- /* @end */
-
- /* @group Attachment buckets
- *
- * These are the individual "buckets," or boxes, inside the display settings area
- */
-
- .views-ui-display-tab-bucket h3 {
- text-transform: uppercase;
- }
-
- .views-ui-display-tab-bucket .links {
- padding: 2px 6px 4px;
- }
-
- .views-ui-display-tab-bucket .links li + li {
- margin-left: 3px; /* LTR */
- }
- [dir="rtl"] .views-ui-display-tab-bucket .links li + li {
- margin-right: 3px;
- margin-left: 0;
- }
-
- /* @end */
-
- /* @group Rearrange filter criteria */
-
- .views-ui-rearrange-filter-form .action-links {
- float: left;
- margin: 0 0 1em;
- padding: 0;
- }
- .views-ui-rearrange-filter-form .tabledrag-toggle-weight-wrapper {
- float: right;
- margin-bottom: 1em;
- }
-
- .views-ui-rearrange-filter-form table {
- border: medium none;
- }
-
- .views-ui-rearrange-filter-form [id^="views-row"] {
- border: medium none;
- }
-
- .views-ui-rearrange-filter-form tr td:last-child {
- border-right: medium none; /* LTR */
- }
- [dir="rtl"] .views-ui-rearrange-filter-form tr td:last-child {
- border-right: initial;
- border-left: medium none;
- }
-
- .views-ui-rearrange-filter-form .filter-group-operator-row {
- border-right: 1px solid transparent !important;
- border-left: 1px solid transparent !important;
- }
-
- .views-ui-rearrange-filter-form tr.drag td {
- background-color: #fe7 !important;
- }
-
- .views-ui-rearrange-filter-form tr.drag-previous td {
- background-color: #ffb !important;
- }
-
- /* @end */
-
- /* @group Live preview elements */
-
- .views-query-info pre {
- margin-top: 0;
- margin-bottom: 0;
- }
-
- /* @group Query info table */
-
- .views-query-info table {
- border-radius: 7px;
- -webkit-border-horizontal-spacing: 1px;
- -webkit-border-vertical-spacing: 1px;
- }
-
- .views-query-info table tr td:last-child {
- /* Fixes a Claro style that bleeds down into this table unnecessarily */
- border-right: 0 none; /* LTR */
- }
- [dir="rtl"] .views-query-info table tr td:last-child {
- border-right: initial;
- border-left: 0 none;
- }
-
- /* @end */
-
- /* @end */
-
- /* @group Add view */
-
- .form-item-page-create,
- .form-item-block-create {
- margin-top: 13px;
- }
-
- /* @end */
-
- /* @group Modal dialog box
- *
- * The contents of the popup dialog on the views edit form.
- */
-
- .filterable-option .form-item.form-type-checkbox {
- padding-top: 4px;
- /* This selector is aggressive because Claro's reset for .form-items is aggressive. */
- padding-bottom: 4px;
- padding-left: 4px; /* LTR */
- }
- [dir="rtl"] .filterable-option .form-item.form-type-checkbox {
- padding-right: 4px;
- padding-left: 8px;
- }
-
- /* @end */
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.