Skip to content

Commit

Permalink
Reduce inputs border-width
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Ambrosini <[email protected]>
  • Loading branch information
marcoambrosini committed Apr 29, 2024
1 parent 1b6dadd commit 26f85e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/NcInputField/NcInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export default {

background-color: var(--color-main-background);
color: var(--color-main-text);
border: 2px solid var(--color-border-maxcontrast);
border: 1px solid var(--color-border-maxcontrast);
border-radius: var(--border-radius-large);

cursor: pointer;
Expand All @@ -386,7 +386,7 @@ export default {
&:active:not([disabled]),
&:hover:not([disabled]),
&:focus:not([disabled]) {
border-color: 2px solid var(--color-main-text) !important;
border: 2px solid var(--color-main-text) !important;
box-shadow: 0 0 0 2px var(--color-main-background) !important;
}

Expand Down
4 changes: 3 additions & 1 deletion src/components/NcSelect/NcSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ body {

/* Borders */
--vs-border-color: var(--color-border-maxcontrast);
--vs-border-width: 2px;
--vs-border-width: 1px;
--vs-border-style: solid;
--vs-border-radius: var(--border-radius-large);

Expand Down Expand Up @@ -1226,6 +1226,7 @@ body {
}

&.vs--open .vs__dropdown-toggle {
border-width: 2px;
outline: 2px solid var(--color-main-background);
border-color: var(--color-main-text);
border-bottom-color: transparent;
Expand Down Expand Up @@ -1301,6 +1302,7 @@ body {

.vs__dropdown-menu {
border-color: var(--color-main-text) !important;
border-width: 2px;
outline: none !important;
box-shadow:
-2px 0 0 var(--color-main-background), // Right
Expand Down
5 changes: 3 additions & 2 deletions src/components/NcTextArea/NcTextArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export default {
border-radius: var(--border-radius-large);
margin-block-start: 6px; // for the label in active state
resize: vertical;
box-sizing: border-box;

&__main-wrapper {
position: relative;
Expand All @@ -331,15 +332,15 @@ export default {

background-color: var(--color-main-background);
color: var(--color-main-text);
border: 2px solid var(--color-border-maxcontrast);
border: 1px solid var(--color-border-maxcontrast);
border-radius: var(--border-radius-large);

cursor: pointer;

&:active:not([disabled]),
&:hover:not([disabled]),
&:focus:not([disabled]) {
border-color: 2px solid var(--color-main-text) !important;
border: 2px solid var(--color-main-text) !important;
box-shadow: 0 0 0 2px var(--color-main-background) !important;
}

Expand Down

0 comments on commit 26f85e9

Please sign in to comment.