-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore]: split form style files (#2787)
* Update split form styling * Remove change to start script * Remove unused component * Use themeSpacing util for all spacing * Fix delete button position * Use existing grid * Align both textareas * Fix spacing * Increase max note length * Use breakpoint util * Remove unnecessary fieldset * Split style files
- Loading branch information
Showing
9 changed files
with
184 additions
and
167 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
69 changes: 69 additions & 0 deletions
69
...ident-management/containers/IncidentSplitContainer/components/IncidentSplitForm/styled.js
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,69 @@ | ||
// SPDX-License-Identifier: MPL-2.0 | ||
// Copyright (C) 2020 - 2023 Gemeente Amsterdam | ||
|
||
import { Button, breakpoint, themeColor, themeSpacing } from '@amsterdam/asc-ui' | ||
import styled from 'styled-components' | ||
|
||
export const StyledMainContainer = styled.div` | ||
display: grid; | ||
grid-column: span 1; | ||
row-gap: ${themeSpacing(8)}; | ||
padding-bottom: ${themeSpacing(8)}; | ||
` | ||
|
||
export const StyledForm = styled.form` | ||
display: grid; | ||
padding-top: ${themeSpacing(8)}; | ||
width: 100%; | ||
@media ${breakpoint('min-width', 'tabletM')} { | ||
column-gap: ${({ theme }) => theme.layouts.large.gutter}px; | ||
grid-template-columns: 7fr 5fr; | ||
} | ||
` | ||
|
||
export const StyledDefinitionList = styled.dl` | ||
margin: 0; | ||
display: grid; | ||
grid-row-gap: 0; | ||
padding-bottom: ${themeSpacing(4)}; | ||
@media ${breakpoint('min-width', 'tabletM')} { | ||
grid-template-columns: 3fr 3fr; | ||
} | ||
@media ${breakpoint('min-width', 'laptop')} { | ||
grid-template-columns: 3fr 2fr; | ||
} | ||
dt, | ||
dd { | ||
@media ${breakpoint('min-width', 'tabletM')} { | ||
padding: ${themeSpacing(2)} 0; | ||
} | ||
} | ||
dt { | ||
color: ${themeColor('tint', 'level5')}; | ||
margin: 0; | ||
font-weight: 400; | ||
} | ||
dd { | ||
padding-bottom: ${themeSpacing(2)}; | ||
font-weight: 600; | ||
width: 100%; | ||
} | ||
` | ||
|
||
export const ThinLabel = styled.span` | ||
font-weight: 400; | ||
` | ||
|
||
export const StyledButtonContainer = styled.div` | ||
grid-column: span 1; | ||
` | ||
|
||
export const StyledSubmitButton = styled(Button)` | ||
margin-right: ${themeSpacing(5)}; | ||
` |
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
67 changes: 67 additions & 0 deletions
67
...nagement/containers/IncidentSplitContainer/components/IncidentSplitFormIncident/styled.js
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,67 @@ | ||
// SPDX-License-Identifier: MPL-2.0 | ||
// Copyright (C) 2020 - 2023 Gemeente Amsterdam | ||
|
||
import { | ||
Button, | ||
breakpoint, | ||
Heading, | ||
themeColor, | ||
themeSpacing, | ||
} from '@amsterdam/asc-ui' | ||
import styled from 'styled-components' | ||
|
||
import AddNote from 'components/AddNote' | ||
|
||
export const StyledFieldset = styled.fieldset` | ||
background-color: ${themeColor('tint', 'level2')}; | ||
scroll-margin-top: ${themeSpacing(15)}; | ||
padding: ${themeSpacing(5)}; | ||
margin-inline: -${themeSpacing(5)}; | ||
display: grid; | ||
row-gap: ${themeSpacing(8)}; | ||
margin-bottom: ${themeSpacing(8)}; | ||
@media ${breakpoint('min-width', 'tabletM')} { | ||
column-gap: ${({ theme }) => theme.layouts.large.gutter}px; | ||
grid-column: span 2; | ||
grid-template-columns: 7fr 5fr; | ||
} | ||
` | ||
|
||
export const StyledHeadingWrapper = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
@media ${breakpoint('min-width', 'tabletM')} { | ||
grid-column: span 2; | ||
} | ||
` | ||
|
||
export const StyledHeading = styled(Heading)` | ||
margin-bottom: 0; | ||
` | ||
|
||
export const StyledWrapper = styled.div` | ||
padding-top: ${themeSpacing(6)}; | ||
padding-bottom: ${themeSpacing(6)}; | ||
` | ||
|
||
export const StyledAddNote = styled(AddNote)` | ||
grid-row-start: 3; | ||
` | ||
|
||
export const StyledExtraIncidentButtonContainer = styled.div` | ||
border-bottom: 2px solid ${themeColor('tint', 'level3')}; | ||
padding-bottom: ${themeSpacing(8)}; | ||
margin-bottom: ${themeSpacing(2)}; | ||
@media ${breakpoint('min-width', 'tabletM')} { | ||
grid-column: span 2; | ||
} | ||
` | ||
|
||
export const RemoveButton = styled(Button)` | ||
justify-content: center; | ||
height: 44px; | ||
width: 44px; | ||
` |
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
25 changes: 25 additions & 0 deletions
25
...management/containers/IncidentSplitContainer/components/IncidentSplitRadioInput/styled.js
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,25 @@ | ||
// SPDX-License-Identifier: MPL-2.0 | ||
// Copyright (C) 2020 - 2023 Gemeente Amsterdam | ||
|
||
import { Label, themeSpacing } from '@amsterdam/asc-ui' | ||
import styled from 'styled-components' | ||
|
||
import InfoText from 'components/InfoText' | ||
|
||
export const StyledInfoText = styled(InfoText)` | ||
margin: ${themeSpacing(2, 0, 0)}; | ||
` | ||
|
||
export const StyledLabel = styled(Label)` | ||
> span { | ||
margin-top: 0; | ||
} | ||
` | ||
|
||
export const StyledRadioLabel = styled(Label)` | ||
align-self: baseline; | ||
* { | ||
font-weight: normal; | ||
} | ||
` |
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
19 changes: 19 additions & 0 deletions
19
...anagement/containers/IncidentSplitContainer/components/IncidentSplitSelectInput/styled.js
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,19 @@ | ||
// SPDX-License-Identifier: MPL-2.0 | ||
// Copyright (C) 2020 - 2023 Gemeente Amsterdam | ||
|
||
import { themeSpacing } from '@amsterdam/asc-ui' | ||
import styled from 'styled-components' | ||
|
||
import InfoText from 'components/InfoText' | ||
|
||
export const StyledInfoText = styled(InfoText)` | ||
margin: ${themeSpacing(2, 0, 0)}; | ||
` | ||
|
||
export const StyledSelect = styled.div` | ||
max-width: 420px; | ||
strong { | ||
font-size: 1rem; | ||
} | ||
` |
163 changes: 0 additions & 163 deletions
163
src/signals/incident-management/containers/IncidentSplitContainer/styled.js
This file was deleted.
Oops, something went wrong.