-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: kill styled-components and related deps, port to css modules a…
…s halfway step to tailwind
- Loading branch information
1 parent
52df9b8
commit ce02c5d
Showing
20 changed files
with
291 additions
and
536 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* Styles migrated to a CSS component to wean the repo off of styled-components | ||
All styles to be migrated to Tailwind classes when convenient */ | ||
|
||
span.left-side-element { | ||
width: 8px; | ||
border-radius: 0.5em 0 0 0.5em; | ||
left: 0; | ||
cursor: default; | ||
grid-row-start: 1; | ||
grid-row-end: span 2; | ||
grid-column-start: 1; | ||
grid-column-end: 1; | ||
height: 100%; | ||
} | ||
.note-element { | ||
background-color: #4af7ff; | ||
} | ||
.pitfall-element { | ||
background-color: #ff5416; | ||
} | ||
.further-reading-element { | ||
background-color: #08fe13; | ||
} | ||
|
||
strong.tip-title-element { | ||
margin-left: var(--spacing-16); | ||
padding: var(--spacing-16); | ||
margin-top: var(--spacing-8); | ||
grid-column-start: 1; | ||
grid-row-start: 1; | ||
text-transform: uppercase; | ||
font-size: 14px; | ||
letter-spacing: 0.1em; | ||
line-height: 18px; | ||
} | ||
|
||
div.inline-content-container { | ||
grid-row: 2; | ||
grid-column: 1; | ||
margin-left: var(--spacing-16); | ||
padding-left: var(--spacing-16); | ||
padding-right: var(--spacing-16); | ||
margin-bottom: var(--spacing-8); | ||
display: inline; | ||
} | ||
|
||
aside.inline-grid-paragraph { | ||
display: inline-grid; | ||
border-radius: 0.5em; | ||
background-color: #fafafb; | ||
border-width: 1px; | ||
border-color: #d9d9da; | ||
grid-template-rows: auto auto; | ||
margin-bottom: 24px; | ||
font-size: 16px; | ||
line-height: 23px; | ||
padding: 0; | ||
width: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import GenericHtmlBlock from '../Html/GenericHtmlBlock'; | ||
import styled from 'styled-components'; | ||
|
||
const StyledDd = styled.dd` | ||
font-weight: 300; | ||
`; | ||
const Dd: React.FC<{ className?: string }> = (props) => ( | ||
<dd {...props} className={`${props.className ? `${props.className} ` : ''}font-light`} /> | ||
); | ||
|
||
const Dd = GenericHtmlBlock(StyledDd); | ||
|
||
export default Dd; | ||
export default GenericHtmlBlock(Dd); |
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 |
---|---|---|
@@ -1,19 +1,9 @@ | ||
import styled from 'styled-components'; | ||
import GenericHtmlBlock from '../../Html/GenericHtmlBlock'; | ||
import { definitionListRowStyles } from '../list.module.css'; | ||
|
||
const DefinitionListRowStyles = styled.div` | ||
display: block; | ||
min-height: 35px; | ||
border-bottom: 1px solid #e1e1e1; | ||
overflow: auto; | ||
padding: 15px 0; | ||
@media (min-width: 40em) { | ||
display: flex; | ||
padding: 0; | ||
width: 100%; | ||
} | ||
`; | ||
|
||
const DefinitionListRow = GenericHtmlBlock(DefinitionListRowStyles); | ||
const DefinitionListRow = GenericHtmlBlock('div')({ | ||
data: null, | ||
attribs: { className: definitionListRowStyles }, | ||
}); | ||
|
||
export default DefinitionListRow; |
Oops, something went wrong.