|
| 1 | +/*! |
| 2 | +Copyright 2024 Adobe. All rights reserved. |
| 3 | +This file is licensed to you under the Apache License, Version 2.0 (the "License"); |
| 4 | +you may not use this file except in compliance with the License. You may obtain a copy |
| 5 | +of the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | +
|
| 7 | +Unless required by applicable law or agreed to in writing, software distributed under |
| 8 | +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS |
| 9 | +OF ANY KIND, either express or implied. See the License for the specific language |
| 10 | +governing permissions and limitations under the License. |
| 11 | +*/ |
| 12 | + |
| 13 | +@import "../../../components/commons/dropshadow.css"; |
| 14 | + |
| 15 | +.spectrum-Foundations-Example-DropShadow-swatch { |
| 16 | + block-size: 150px; |
| 17 | + inline-size: 150px; |
| 18 | + background-color: var(--spectrum-gray-25); |
| 19 | + border-radius: var(--spectrum-corner-radius-large-default); |
| 20 | + border: transparent; |
| 21 | +} |
| 22 | + |
| 23 | +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch { |
| 24 | + background-color: var(--spectrum-gray-75); /* matches dark mode design spec rgb(34, 34, 34) */ |
| 25 | +} |
| 26 | + |
| 27 | +.spectrum-Foundations-Example-DropShadow-swatch--emphasized-default { |
| 28 | + @extend %spectrum-DropShadow-emphasized-default; |
| 29 | +} |
| 30 | + |
| 31 | +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--emphasized-default { |
| 32 | + /* override with correct color for dark mode in this example page only */ |
| 33 | + --mod-drop-shadow-emphasized-default-color: var(--spectrum-drop-shadow-color-100); |
| 34 | +} |
| 35 | + |
| 36 | +.spectrum-Foundations-Example-DropShadow-swatch--emphasized-hover { |
| 37 | + @extend %spectrum-DropShadow-emphasized-hover; |
| 38 | +} |
| 39 | + |
| 40 | +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--emphasized-hover { |
| 41 | + /* override with correct color for dark mode in this example page only */ |
| 42 | + --mod-drop-shadow-emphasized-hover-color: var(--spectrum-drop-shadow-color-200); |
| 43 | +} |
| 44 | + |
| 45 | +.spectrum-Foundations-Example-DropShadow-swatch--elevated { |
| 46 | + @extend %spectrum-DropShadow-elevated; |
| 47 | +} |
| 48 | + |
| 49 | +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--elevated { |
| 50 | + /* override with correct color for dark mode in this example page only */ |
| 51 | + --mod-drop-shadow-elevated-color: var(--spectrum-drop-shadow-color-200); |
| 52 | +} |
| 53 | + |
| 54 | +.spectrum-Foundations-Example-swatch-container { |
| 55 | + background-color: var(--spectrum-gray-50); |
| 56 | + block-size: 200px; |
| 57 | + inline-size: 300px; |
| 58 | + display: flex; |
| 59 | + align-items: center; |
| 60 | + justify-content: center; |
| 61 | +} |
| 62 | + |
| 63 | +.spectrum-Foundations-Example-variant-container { |
| 64 | + display: flex; |
| 65 | + flex-direction: row; |
| 66 | +} |
0 commit comments