forked from decaporg/decap-cms
-
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.
Migrate to plain CSS (remove CSS modules) (decaporg#659)
* Migrate to plain CSS (remove CSS modules) Change `prefixer` to a function instead of a proxy * Switch prefix to `nc` * Replace prefixer with literal class names * Remove prefixer * Fix migration errors * fix compose migrations * Remove unnecessary theme imports * Remove old CSS import * fix sticky toolbar positioning * update to cssnano v4 so preset is used * fix css pseudo selectors * update lockfile
- Loading branch information
Showing
70 changed files
with
1,523 additions
and
1,253 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
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 |
---|---|---|
|
@@ -12,5 +12,8 @@ module.exports = { | |
}, | ||
}, | ||
}), | ||
require('cssnano')({ | ||
preset: 'default', | ||
}), | ||
], | ||
}; |
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,31 +1,31 @@ | ||
.root { | ||
.nc-gitGatewayAuthenticationPage-root { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
} | ||
|
||
.card { | ||
.nc-gitGatewayAuthenticationPage-card { | ||
width: 350px; | ||
padding: 10px; | ||
} | ||
|
||
.card img { | ||
.nc-gitGatewayAuthenticationPage-card img { | ||
display: block; | ||
margin: auto; | ||
padding-bottom: 5px; | ||
} | ||
|
||
.errorMsg { | ||
.nc-gitGatewayAuthenticationPage-errorMsg { | ||
color: #dd0000; | ||
} | ||
|
||
.message { | ||
.nc-gitGatewayAuthenticationPage-message { | ||
font-size: 1.1em; | ||
margin: 20px 10px; | ||
} | ||
|
||
.button { | ||
.nc-gitGatewayAuthenticationPage-button { | ||
padding: .25em 1em; | ||
height: auto; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
.root { | ||
.nc-githubAuthenticationPage-root { | ||
display: flex; | ||
flex-flow: column nowrap; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
} | ||
|
||
.button { | ||
.nc-githubAuthenticationPage-button { | ||
padding: .25em 1em; | ||
height: auto; | ||
} |
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 |
---|---|---|
@@ -1,61 +1,60 @@ | ||
@import "../UI/theme"; | ||
.nc-controlPane-root p { | ||
font-size: 16px; | ||
} | ||
|
||
.control { | ||
.nc-controlPane-control { | ||
color: var(--textColor); | ||
position: relative; | ||
padding: 20px 0 10px 0; | ||
margin-top: 16px; | ||
} | ||
|
||
& input, | ||
& textarea, | ||
& select, | ||
& div[contenteditable=true] { | ||
display: block; | ||
width: 100%; | ||
padding: 12px; | ||
margin: 0; | ||
border: var(--textFieldBorder); | ||
border-radius: var(--borderRadius); | ||
outline: 0; | ||
box-shadow: none; | ||
background-color: var(--controlBGColor); | ||
font-size: 16px; | ||
color: var(--textColor); | ||
transition: border-color .3s ease; | ||
|
||
&:focus, | ||
&:active { | ||
border-color: var(--primaryColor); | ||
} | ||
} | ||
|
||
& input, | ||
& textarea, | ||
& select { | ||
font-family: var(--fontFamilyMono); | ||
.nc-controlPane-control input, | ||
.nc-controlPane-control textarea, | ||
.nc-controlPane-control select, | ||
.nc-controlPane-control div[contenteditable=true] { | ||
display: block; | ||
width: 100%; | ||
padding: 12px; | ||
margin: 0; | ||
border: var(--textFieldBorder); | ||
border-radius: var(--borderRadius); | ||
outline: 0; | ||
box-shadow: none; | ||
background-color: var(--controlBGColor); | ||
font-size: 16px; | ||
color: var(--textColor); | ||
transition: border-color .3s ease; | ||
|
||
&:focus, | ||
&:active { | ||
border-color: var(--primaryColor); | ||
} | ||
} | ||
|
||
.label { | ||
.nc-controlPane-control input, | ||
.nc-controlPane-control textarea, | ||
.nc-controlPane-control select { | ||
font-family: var(--fontFamilyMono); | ||
} | ||
|
||
|
||
.nc-controlPane-label { | ||
display: block; | ||
color: var(--controlLabelColor); | ||
font-size: 12px; | ||
text-transform: uppercase; | ||
font-weight: 600; | ||
} | ||
|
||
.labelWithError { | ||
composes: label; | ||
.nc-controlPane-labelWithError { | ||
color: #FF706F; | ||
} | ||
|
||
.errors { | ||
.nc-controlPane-errors { | ||
list-style-type: none; | ||
font-size: 10px; | ||
color: #FF706F; | ||
margin-bottom: 5px; | ||
} | ||
|
||
p { | ||
font-size: 16px; | ||
} |
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
Oops, something went wrong.