| // Copyright (C) 2025 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| @import "../../../assets/theme"; |
| |
| // Common styles for inputs |
| .pf-exp-input { |
| width: 100%; |
| padding: 0.75rem; |
| margin-bottom: 1rem; |
| border: 1px solid var(--pf-color-border); |
| border-radius: 0.375rem; |
| font-size: 1em; |
| transition: border-color 0.2s ease-in-out; |
| background: var(--pf-color-background); |
| |
| &:focus { |
| border-color: var(--pf-color-primary); |
| outline: none; |
| } |
| } |
| |
| // Common styles for query builder nodes |
| .pf-exp-node { |
| border: 1px solid var(--pf-color-border); |
| border-radius: 8px; |
| background-color: var(--pf-color-background); |
| box-shadow: 0 2px 4px var(--pf-color-box-shadow); |
| max-width: 300px; |
| |
| &--selected { |
| border-color: var(--pf-color-primary); |
| } |
| |
| &--dragging { |
| opacity: 0.4; |
| } |
| } |
| |
| // Common editor style |
| .pf-exp-editor { |
| padding: 1rem; |
| border-radius: 6px; |
| border: 1px solid var(--pf-color-border); |
| } |
| |
| .pf-exp-section { |
| display: flex; |
| flex-direction: column; |
| gap: 0.5rem; |
| padding: 1rem; |
| border: 1px solid var(--pf-color-border); |
| border-radius: 8px; |
| } |