waveterm/frontend/app/element/input.scss
Copilot 6c8df20bd8
Remove ellipsis mixin and delete mixins.scss (#2480)
The `ellipsis()` mixin in `mixins.scss` was only used in two files.
Replaced with plain CSS and removed the file entirely.

## Changes

- **Converted mixin usage to plain CSS** in `flyoutmenu.scss` and
`expandablemenu.scss`:
  ```scss
  // Before
  .label {
      @include mixins.ellipsis();
  }
  
  // After
  .label {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  ```

- **Removed unused imports** from 8 SCSS files that imported
`mixins.scss` but didn't use it

- **Deleted** `frontend/app/mixins.scss`

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> in mixins.scss we have one last one called ellipsis(). i believe it is
only used in a couple places now... at least flyoutmenu.scss and
expandablemenu.scss. lets convert those to just plain CSS instead of
using the mixin. and then i think we can delete the mixins.scss file
completely... maybe 8 or so scss files that include it that will also
need modification.
> 
> do your own check though to find any additional usages of mixins.scss
and the ellipsis mixin. make sure we remove all usages.


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
2025-10-26 11:08:47 -07:00

79 lines
1.6 KiB
SCSS

// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
.input {
width: 100%;
border: none;
font-size: 12px;
outline: none;
background-color: transparent;
color: var(--form-element-text-color);
background: var(--form-element-bg-color);
border: 2px solid var(--form-element-border-color);
border-radius: 6px;
padding: 4px 7px;
&:focus {
border-color: var(--form-element-primary-color);
}
&.disabled {
opacity: 0.75;
}
&.error {
border-color: var(--form-element-error-color);
}
}
/* Styles when an InputGroup is present */
.input-group {
display: flex;
align-items: center;
border-radius: 6px;
position: relative;
width: 100%;
border: 2px solid var(--form-element-border-color);
background: var(--form-element-bg-color);
/* Focus style for InputGroup */
&.focused {
border-color: var(--form-element-primary-color);
}
/* Error state for InputGroup */
&.error {
border-color: var(--form-element-error-color);
}
/* Disabled state for InputGroup */
&.disabled {
opacity: 0.75;
}
&:hover {
cursor: text;
}
.input-left-element,
.input-right-element {
padding: 0 5px;
display: flex;
align-items: center;
justify-content: center;
}
.input {
border: none;
flex-grow: 1;
border-radius: none;
&:focus {
border-color: transparent;
}
&.error {
border-color: transparent;
}
}
}