forked from nrkno/sofie-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: StyledSchemaFormInPlace schema component
- Loading branch information
Showing
5 changed files
with
141 additions
and
10 deletions.
There are no files selected for viewing
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
76 changes: 76 additions & 0 deletions
76
packages/webui/src/client/lib/forms/SchemaFormInPlace.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,76 @@ | ||
// This styling has a lot of force added, and should be seen as a workaround | ||
// to get styling on the current Sofie UI schema/overrides components | ||
// without changing current look and behavior in other places of Sofie | ||
.styled-schema-form { | ||
width: 100%; | ||
|
||
// Force the base input-l class | ||
.input-l { | ||
width: 100% !important; | ||
max-width: none !important; | ||
margin-left: 0px; | ||
border: none; | ||
} | ||
|
||
// Force the select/text-input defaults | ||
.select, | ||
.inline-select, | ||
.text-input { | ||
display: block !important; | ||
position: relative; | ||
width: 100% !important; | ||
} | ||
|
||
.input { | ||
border: 1px solid #e5e7eb; | ||
border-radius: 0.375rem; | ||
padding: 0.5rem 0.75rem; | ||
width: 100%; | ||
|
||
&:focus { | ||
outline: none; | ||
border-color: #3b82f6; | ||
box-shadow: 0 0 0 1px #3b82f6; | ||
} | ||
} | ||
|
||
.label-text { | ||
&:before { | ||
content: none !important; | ||
} | ||
} | ||
|
||
.dropdown { | ||
background: white; | ||
border: 1px solid #e5e7eb; | ||
border-radius: 0.375rem; | ||
width: 100%; | ||
max-width: 100%; | ||
|
||
.input, | ||
.input-l { | ||
border: none; | ||
outline: none; | ||
box-shadow: none; | ||
} | ||
|
||
&:focus-within { | ||
border-color: #3b82f6; | ||
box-shadow: 0 0 0 1px #3b82f6; | ||
} | ||
} | ||
|
||
// Force the label over selector | ||
.label-actual { | ||
margin-bottom: 0.5rem !important; // Increased spacing between label and selector | ||
} | ||
|
||
.label { | ||
font-size: 0.875rem; | ||
font-weight: 500; | ||
color: #374151; | ||
display: block; | ||
} | ||
|
||
|
||
} |
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
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