This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
monorepo FLOW-935 f-select global styles updated
- Loading branch information
vikas-cldcvr
committed
Oct 9, 2023
1 parent
dab43c7
commit 1a1f268
Showing
8 changed files
with
151 additions
and
144 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/flow-core/src/components/f-icon-button/f-icon-button-global.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/flow-core/src/components/f-input/f-input-global.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
packages/flow-core/src/components/f-select/_f-select-variables.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/** | ||
$categories map will have state specific inner maps. | ||
**/ | ||
$categories: ( | ||
"fill": ( | ||
"background": var(--color-input-default), | ||
"hover": var(--color-input-default-hover) | ||
), | ||
"transparent": ( | ||
"background": transparent, | ||
"hover": var(--color-surface-default-hover) | ||
), | ||
"outline": ( | ||
"background": transparent, | ||
"hover": var(--color-surface-default-hover) | ||
) | ||
); | ||
|
||
/** | ||
$sizes map will have state specific inner maps. | ||
**/ | ||
$sizes: ( | ||
"medium": ( | ||
"main-height": 36px, | ||
"height": 34px, | ||
"loader": 24px, | ||
"maxlength": -38px | ||
), | ||
"small": ( | ||
"main-height": 28px, | ||
"height": 26px, | ||
"loader": 16px, | ||
"maxlength": -34px | ||
) | ||
); | ||
|
||
/** | ||
$states map will have state specific inner maps. | ||
**/ | ||
$states: ( | ||
"primary": ( | ||
"input": var(--color-primary-default), | ||
"border": var(--color-primary-default), | ||
"focus": var(--color-primary-default) | ||
), | ||
"default": ( | ||
"input": var(--color-input-default), | ||
"border": var(--color-border-default), | ||
"focus": var(--color-primary-default) | ||
), | ||
"success": ( | ||
"input": var(--color-success-default), | ||
"border": var(--color-success-default), | ||
"focus": var(--color-success-default) | ||
), | ||
"warning": ( | ||
"input": var(--color-warning-default), | ||
"border": var(--color-warning-default), | ||
"focus": var(--color-warning-default) | ||
), | ||
"danger": ( | ||
"input": var(--color-danger-default), | ||
"border": var(--color-danger-default), | ||
"focus": var(--color-danger-default) | ||
), | ||
"inherit": ( | ||
"input": var(--color-input-default), | ||
"border": var(--color-input-border-default), | ||
"focus": var(--color-input-focus) | ||
) | ||
); |
64 changes: 64 additions & 0 deletions
64
packages/flow-core/src/components/f-select/f-select-global.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@import "./../../mixins/scss/mixins"; | ||
@import "./f-select-variables"; | ||
|
||
:root { | ||
--input-border-radius-curved: 4px; | ||
--input-border-radius-round: 22px; | ||
} | ||
|
||
f-select { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
&[disabled] { | ||
@include disabled(); | ||
} | ||
@each $state, $color in $states { | ||
&[state="#{$state}"] { | ||
@include input-color($state); | ||
} | ||
} | ||
} | ||
|
||
f-form-group { | ||
&[variant="compact"][direction="horizontal"] { | ||
f-select { | ||
&:first-child { | ||
--input-border-radius-curved: 4px 0px 0px 4px; | ||
--input-border-radius-round: 22px 0px 0px 22px; | ||
} | ||
&:last-child { | ||
--input-border-radius-curved: 0px 4px 4px 0px; | ||
--input-border-radius-round: 0px 22px 22px 0px; | ||
} | ||
&:not(:first-child):not(:last-child) { | ||
--input-border-radius-curved: 0px 0px 0px 0px; | ||
--input-border-radius-round: 0px 0px 0px 0px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
f-select.f-search-border { | ||
--input-border-radius-curved: 4px 0px 0px 4px; | ||
--input-border-radius-round: 22px 0px 0px 22px; | ||
&[category="fill"][state="default"] { | ||
border-right: 1px solid var(--color-border-default); | ||
} | ||
} | ||
|
||
f-div[direction="column"] { | ||
> f-select { | ||
flex: 1 1; | ||
max-height: 100%; | ||
width: 100%; | ||
} | ||
} | ||
|
||
f-div[direction="row"] { | ||
> f-select { | ||
flex: 1 1; | ||
max-width: 100%; | ||
height: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters