2016-11-03 19:40:54 +00:00
|
|
|
.input-field {
|
2026-05-05 12:50:18 +00:00
|
|
|
line-height: $line-height;
|
2025-09-29 17:10:41 +00:00
|
|
|
background-color: $core-fleet-white;
|
2023-01-05 15:23:27 +00:00
|
|
|
border: solid 1px $ui-fleet-black-10;
|
2025-01-22 15:22:59 +00:00
|
|
|
border-radius: $border-radius;
|
2025-06-10 19:04:18 +00:00
|
|
|
font-size: $x-small;
|
2025-02-28 13:46:00 +00:00
|
|
|
padding: $pad-small $pad-medium;
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-fleet-blue;
|
2023-05-12 13:40:43 +00:00
|
|
|
font-family: "Inter", sans-serif;
|
2016-11-11 14:42:23 +00:00
|
|
|
box-sizing: border-box;
|
2025-09-29 17:10:41 +00:00
|
|
|
height: 36px;
|
2022-10-05 14:43:54 +00:00
|
|
|
transition: border-color 100ms;
|
2022-12-16 18:32:10 +00:00
|
|
|
width: 100%;
|
2016-11-03 19:40:54 +00:00
|
|
|
|
2021-12-02 15:03:56 +00:00
|
|
|
&::placeholder {
|
|
|
|
|
color: $ui-fleet-black-50;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
2025-02-28 13:46:00 +00:00
|
|
|
&:hover:not(.input-field--read-only) {
|
|
|
|
|
box-shadow: none;
|
2025-09-29 17:10:41 +00:00
|
|
|
border: 1px solid $ui-fleet-black-75-over;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
2025-02-28 13:46:00 +00:00
|
|
|
&:active:not(.input-field--read-only),
|
|
|
|
|
&:focus:not(.input-field--read-only),
|
|
|
|
|
&:focus-visible:not(.input-field--read-only) {
|
2022-10-05 14:43:54 +00:00
|
|
|
box-shadow: none;
|
2025-02-28 13:46:00 +00:00
|
|
|
outline: 0;
|
2025-09-29 17:10:41 +00:00
|
|
|
border: 1px solid $ui-fleet-black-75-down;
|
2022-10-05 14:43:54 +00:00
|
|
|
}
|
|
|
|
|
|
2017-01-13 23:27:58 +00:00
|
|
|
&--disabled {
|
2021-06-24 20:42:29 +00:00
|
|
|
color: $ui-fleet-black-50;
|
2024-05-02 13:20:41 +00:00
|
|
|
|
|
|
|
|
.form-field__label,
|
|
|
|
|
.form-field__help-text {
|
|
|
|
|
color: $ui-fleet-black-50;
|
|
|
|
|
}
|
2017-01-13 23:27:58 +00:00
|
|
|
}
|
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&--error {
|
2021-06-18 18:56:11 +00:00
|
|
|
color: $core-vibrant-red;
|
|
|
|
|
border: 1px solid $core-vibrant-red;
|
|
|
|
|
box-sizing: border-box;
|
2025-01-22 15:22:59 +00:00
|
|
|
border-radius: $border-radius;
|
2016-11-09 14:00:40 +00:00
|
|
|
|
|
|
|
|
&:focus {
|
2021-11-16 17:30:04 +00:00
|
|
|
border-color: $ui-error;
|
2025-09-29 17:10:41 +00:00
|
|
|
background-color: $core-fleet-white;
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-fleet-black;
|
2016-11-09 14:00:40 +00:00
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
2016-11-09 14:00:40 +00:00
|
|
|
&__textarea {
|
|
|
|
|
min-height: 100px;
|
2026-01-29 14:24:28 +00:00
|
|
|
min-width: 100%;
|
2016-11-09 14:00:40 +00:00
|
|
|
max-width: 100%;
|
2016-12-21 17:25:54 +00:00
|
|
|
display: block;
|
2016-11-09 14:00:40 +00:00
|
|
|
}
|
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&__label {
|
2016-11-09 14:00:40 +00:00
|
|
|
display: block;
|
2020-11-20 00:51:22 +00:00
|
|
|
font-size: $medium;
|
|
|
|
|
font-weight: $regular;
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-fleet-black;
|
2016-11-09 14:00:40 +00:00
|
|
|
margin-bottom: $pad-xsmall;
|
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&--error {
|
2021-06-18 18:56:11 +00:00
|
|
|
font-weight: $bold;
|
2022-01-21 17:06:58 +00:00
|
|
|
color: $ui-error;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
}
|
2016-11-09 14:00:40 +00:00
|
|
|
|
|
|
|
|
&__wrapper {
|
2021-04-30 21:32:50 +00:00
|
|
|
margin-bottom: $pad-medium;
|
2016-11-09 14:00:40 +00:00
|
|
|
}
|
2016-12-16 15:54:49 +00:00
|
|
|
|
2026-04-08 20:14:51 +00:00
|
|
|
// Same styling as .form-field__help-text TODO: consider consolidating
|
2024-01-18 15:48:44 +00:00
|
|
|
&__help-text {
|
2021-04-30 21:32:50 +00:00
|
|
|
font-size: $x-small;
|
2020-11-20 00:51:22 +00:00
|
|
|
font-weight: $regular;
|
2026-05-05 12:50:18 +00:00
|
|
|
line-height: $line-height;
|
2016-12-16 15:54:49 +00:00
|
|
|
letter-spacing: 1px;
|
2021-04-30 21:32:50 +00:00
|
|
|
color: $core-fleet-blue;
|
2016-12-16 15:54:49 +00:00
|
|
|
|
|
|
|
|
code {
|
2026-04-08 20:14:51 +00:00
|
|
|
color: $ui-fleet-black-75;
|
|
|
|
|
background-color: $ui-light-grey;
|
2021-04-30 21:32:50 +00:00
|
|
|
padding: $pad-xxsmall;
|
2021-04-12 13:32:25 +00:00
|
|
|
font-family: "SourceCodePro", $monospace;
|
2016-12-16 15:54:49 +00:00
|
|
|
}
|
|
|
|
|
}
|
2023-08-08 14:57:55 +00:00
|
|
|
|
Update input action buttons app wide (#43906)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #41147
See comment for images of all changes:
https://github.com/fleetdm/fleet/issues/41147#issuecomment-4291447286
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [x] Timeouts are implemented and retries are limited to avoid infinite
loops
- [x] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
## Testing
- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Style**
* Standardized and restyled action buttons (copy, show/hide secret,
etc.) across the app for consistent appearance, sizing, hover states and
keyboard focus outlines.
* Improved input and textarea layouts so action buttons align neatly,
copy/confirmation messages display correctly, and spacing adapts when
actions are present.
* **Documentation**
* Added a changelog entry documenting the action-button styling and
layout updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-21 23:54:05 +00:00
|
|
|
// Old-style textarea copy button (absolute positioned icon above textarea)
|
2025-04-23 18:42:30 +00:00
|
|
|
&__copy-wrapper {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2026-01-14 15:54:09 +00:00
|
|
|
gap: $pad-xsmall;
|
2024-09-05 11:47:34 +00:00
|
|
|
position: absolute;
|
2026-01-14 15:54:09 +00:00
|
|
|
top: 3px; // vertically center
|
2025-04-23 18:42:30 +00:00
|
|
|
right: 0;
|
2025-09-29 17:10:41 +00:00
|
|
|
margin: 1px 4px;
|
|
|
|
|
background-color: $core-fleet-white;
|
2026-02-16 20:11:40 +00:00
|
|
|
|
Update input action buttons app wide (#43906)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #41147
See comment for images of all changes:
https://github.com/fleetdm/fleet/issues/41147#issuecomment-4291447286
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [x] Timeouts are implemented and retries are limited to avoid infinite
loops
- [x] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
## Testing
- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Style**
* Standardized and restyled action buttons (copy, show/hide secret,
etc.) across the app for consistent appearance, sizing, hover states and
keyboard focus outlines.
* Improved input and textarea layouts so action buttons align neatly,
copy/confirmation messages display correctly, and spacing adapts when
actions are present.
* **Documentation**
* Added a changelog entry documenting the action-button styling and
layout updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-21 23:54:05 +00:00
|
|
|
&--text-area {
|
2026-02-16 20:11:40 +00:00
|
|
|
top: -30px;
|
|
|
|
|
}
|
2024-09-05 11:47:34 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-08 14:57:55 +00:00
|
|
|
&__input-container.copy-enabled {
|
2025-05-13 14:24:32 +00:00
|
|
|
position: relative;
|
Update input action buttons app wide (#43906)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #41147
See comment for images of all changes:
https://github.com/fleetdm/fleet/issues/41147#issuecomment-4291447286
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [x] Timeouts are implemented and retries are limited to avoid infinite
loops
- [x] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
## Testing
- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Style**
* Standardized and restyled action buttons (copy, show/hide secret,
etc.) across the app for consistent appearance, sizing, hover states and
keyboard focus outlines.
* Improved input and textarea layouts so action buttons align neatly,
copy/confirmation messages display correctly, and spacing adapts when
actions are present.
* **Documentation**
* Added a changelog entry documenting the action-button styling and
layout updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-21 23:54:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// New input action buttons (bordered boxes beside input)
|
|
|
|
|
&__input-container--has-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: $pad-xsmall;
|
2025-05-21 17:32:18 +00:00
|
|
|
|
|
|
|
|
.input-field {
|
Update input action buttons app wide (#43906)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #41147
See comment for images of all changes:
https://github.com/fleetdm/fleet/issues/41147#issuecomment-4291447286
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [x] Timeouts are implemented and retries are limited to avoid infinite
loops
- [x] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
## Testing
- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Style**
* Standardized and restyled action buttons (copy, show/hide secret,
etc.) across the app for consistent appearance, sizing, hover states and
keyboard focus outlines.
* Improved input and textarea layouts so action buttons align neatly,
copy/confirmation messages display correctly, and spacing adapts when
actions are present.
* **Documentation**
* Added a changelog entry documenting the action-button styling and
layout updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-21 23:54:05 +00:00
|
|
|
flex: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__action-buttons {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: $pad-xsmall;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__action-button-wrapper {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__action-button {
|
|
|
|
|
@include bordered-icon-button;
|
|
|
|
|
|
|
|
|
|
.fleeticon {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
2025-05-21 17:32:18 +00:00
|
|
|
}
|
2023-11-29 17:27:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__copied-confirmation {
|
2025-05-21 17:32:18 +00:00
|
|
|
@include copy-message;
|
2024-09-05 11:47:34 +00:00
|
|
|
}
|
|
|
|
|
|
Update input action buttons app wide (#43906)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #41147
See comment for images of all changes:
https://github.com/fleetdm/fleet/issues/41147#issuecomment-4291447286
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [x] Timeouts are implemented and retries are limited to avoid infinite
loops
- [x] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
## Testing
- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Style**
* Standardized and restyled action buttons (copy, show/hide secret,
etc.) across the app for consistent appearance, sizing, hover states and
keyboard focus outlines.
* Improved input and textarea layouts so action buttons align neatly,
copy/confirmation messages display correctly, and spacing adapts when
actions are present.
* **Documentation**
* Added a changelog entry documenting the action-button styling and
layout updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-21 23:54:05 +00:00
|
|
|
// Positioning for new bordered action buttons — float to the left of the button
|
|
|
|
|
&__action-button-wrapper &__copied-confirmation {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
right: calc(100% + $pad-xsmall);
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
margin: 0;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
pointer-events: none;
|
2023-08-08 14:57:55 +00:00
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
2022-11-11 21:12:00 +00:00
|
|
|
|
|
|
|
|
// Removes arrows on Firefox number fields
|
|
|
|
|
input[type="number"] {
|
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
|
}
|