dialog.css
Same filename in this branch
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/css/classy/components/dialog.css
- 9 core/themes/seven/css/components/dialog.css
- 9 core/themes/claro/css/components/dialog.css
- 9 core/themes/bartik/css/classy/components/dialog.css
- 9 core/themes/starterkit_theme/css/components/dialog.css
- 9 core/themes/classy/css/components/dialog.css
- 9 core/assets/vendor/jquery.ui/themes/base/dialog.css
- 9 core/assets/vendor/ckeditor/skins/moono-lisa/dialog.css
- 9 core/assets/vendor/ckeditor/plugins/dialog/styles/dialog.css
- 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/dialog.css
- 8.9.x core/themes/seven/css/components/dialog.css
- 8.9.x core/themes/claro/css/components/dialog.css
- 8.9.x core/themes/bartik/css/classy/components/dialog.css
- 8.9.x core/themes/classy/css/components/dialog.css
- 8.9.x core/assets/vendor/jquery.ui/themes/base/dialog.css
- 8.9.x core/assets/vendor/ckeditor/skins/moono-lisa/dialog.css
- 8.9.x core/assets/vendor/ckeditor/plugins/dialog/styles/dialog.css
- 10 core/profiles/demo_umami/themes/umami/css/classy/components/dialog.css
- 10 core/themes/claro/css/components/dialog.css
- 10 core/themes/starterkit_theme/css/components/dialog.css
- 10 core/assets/vendor/jquery.ui/themes/base/dialog.css
Presentational styles for Drupal dialogs.
File
-
core/
themes/ claro/ css/ components/ dialog.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Presentational styles for Drupal dialogs.
- */
-
- .ui-dialog {
- position: absolute;
- top: 0;
- left: 0;
- padding: 0;
- border: 0;
- border-radius: var(--jui-dialog-border-radius);
- background: transparent;
- box-shadow: var(--jui-dialog-box-shadow);
- }
-
- @media (forced-colors: active) {
- .ui-dialog {
- border: 1px solid transparent;
- }
- }
-
- .ui-dialog:focus {
- outline: var(--jui-dialog--focus-outline);
- box-shadow: var(--jui-dialog--focus-box-shadow);
- }
-
- @media all and (max-width: 48em) {
- /* 768px */
- .ui-dialog:not(.ui-dialog-off-canvas) {
- min-width: 92%;
- max-width: 92%;
- }
- }
-
- .ui-dialog .ui-dialog-titlebar {
- position: relative;
- box-sizing: border-box;
- padding: var(--space-m) var(--jui-dialog-close-button-reserved-space) var(--space-m) var(--space-l); /* LTR */
- color: var(--jui-dialog-title-color);
- border-top-left-radius: var(--jui-dialog-border-radius);
- border-top-right-radius: var(--jui-dialog-border-radius);
- background: var(--jui-dialog-title-bg-color);
- line-height: calc(var(--space-m) * 2);
- }
-
- [dir="rtl"] .ui-dialog .ui-dialog-titlebar {
- padding-right: var(--space-l);
- padding-left: var(--jui-dialog-close-button-reserved-space);
- }
-
- .ui-dialog .ui-dialog-title {
- -webkit-font-smoothing: antialiased;
- font-size: var(--jui-dialog-title-font-size);
- font-weight: bold;
- }
-
- .ui-dialog .ui-dialog-titlebar-close {
- position: absolute;
- top: 50%;
- right: 0; /* LTR */
- box-sizing: border-box;
- width: var(--jui-dialog-close-button-size);
- height: var(--jui-dialog-close-button-size);
- margin: 0 var(--space-l);
- padding: 0;
- transition: all 0.1s;
- transform: translateY(-50%);
- border: 2px solid transparent;
- border-radius: var(--jui-dialog-close-button-border-radius);
- background: none;
- }
-
- [dir="rtl"] .ui-dialog .ui-dialog-titlebar-close {
- right: auto;
- left: 0;
- }
-
- .ui-dialog .ui-dialog-titlebar-close:hover {
- border-color: var(--color-white);
- }
-
- .ui-dialog .ui-dialog-titlebar-close:focus {
- border-color: var(--color-focus);
- outline: var(--jui-dialog--focus-outline);
- box-shadow: none;
- }
-
- .ui-dialog .ui-icon.ui-icon-closethick {
- width: 100%;
- height: 100%;
- margin: 0;
- transform: translate(-50%, -50%);
- background: url("data:image/svg+xml,%3csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 1.318l-10 10M11 11.318l-10-10' stroke='%23D3D4D9' stroke-width='1.5'/%3e%3c/svg%3e") no-repeat 50%;
- }
-
- @media (forced-colors: active) {
- .ui-dialog .ui-icon.ui-icon-closethick {
- background: url("data:image/svg+xml,%3csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 1.318l-10 10M11 11.318l-10-10' stroke='buttonText' stroke-width='1.5'/%3e%3c/svg%3e") no-repeat 50%;
- }
- }
-
- .ui-dialog > .ui-dialog-content {
- overflow: auto;
- padding: var(--space-m) var(--space-l);
- color: var(--color-text);
- background: var(--color-white);
- }
-
- .ui-dialog > .ui-dialog-buttonpane {
- color: var(--color-text);
- border-bottom-right-radius: var(--jui-dialog-border-radius);
- border-bottom-left-radius: var(--jui-dialog-border-radius);
- background: var(--color-gray-050);
- }
-
- .ui-dialog-buttonpane .ui-dialog-buttonset {
- display: flex;
- gap: var(--space-s);
- justify-content: flex-end;
- margin-block: var(--space-m);
- margin-inline-end: var(--space-l);
- }
-
- .ui-dialog-buttonpane .ui-dialog-buttonset > * {
- margin: 0;
- }
-
- .ui-dialog .ui-dialog-buttonpane .ui-button-text-only .ui-button-text {
- padding: 0;
- }
-
- .ui-dialog .ui-dialog-content {
- position: static;
- }
-
- /* Form action buttons are moved in dialogs. Remove empty space. */
-
- .ui-dialog .ui-dialog-content .form-actions,
- .ui-dialog .ui-dialog-content .field-actions {
- margin: 0;
- padding: 0;
- }
-
- /**
- * Off-canvas styles.
- */
-
- .ui-dialog.ui-dialog-off-canvas .ui-widget-content.ui-dialog-content {
- background: none;
- }
-
- #drupal-off-canvas .form-type--boolean {
- margin-left: 0;
- }
-
- #drupal-off-canvas .form-item .form-item__description {
- color: var(--color-gray-050);
- font-size: 0.75rem;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.