Split app.css into components
This commit is contained in:
parent
51d8fabf2d
commit
abe119a1cb
|
@ -1,36 +1,8 @@
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|
||||||
.skip-link:focus {
|
@import './components/footer.css';
|
||||||
left: 50%;
|
@import './components/main.css';
|
||||||
transform: translateX(-50%);
|
@import './components/skip-link.css';
|
||||||
}
|
|
||||||
|
|
||||||
#header a {
|
|
||||||
@apply text-white no-underline;
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
@apply underline
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#main a {
|
|
||||||
@apply text-blue-300 no-underline border-b border-blue-100 border-dotted;
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
@apply text-blue-100 border-solid
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#footer a {
|
|
||||||
@apply text-white no-underline border-b border-dotted border-white;
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
@apply border-none
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
8
src/css/components/footer.css
Normal file
8
src/css/components/footer.css
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#footer a {
|
||||||
|
@apply text-white no-underline border-b border-dotted border-white;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
@apply border-none
|
||||||
|
}
|
||||||
|
}
|
8
src/css/components/main.css
Normal file
8
src/css/components/main.css
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#main a {
|
||||||
|
@apply text-blue-300 no-underline border-b border-blue-100 border-dotted;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
@apply text-blue-100 border-solid
|
||||||
|
}
|
||||||
|
}
|
4
src/css/components/skip-link.css
Normal file
4
src/css/components/skip-link.css
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
.skip-link:focus {
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
Reference in a new issue