Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
5e80999c
Unverified
Commit
5e80999c
authored
May 03, 2020
by
Taylor Bryant
Committed by
GitHub
May 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up styles in with-tailwindcss example (#12458)
parent
0c8a4017
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
18 deletions
+10
-18
nav.js
examples/with-tailwindcss/components/nav.js
+2
-2
button.css
examples/with-tailwindcss/styles/button.css
+0
-3
index.css
examples/with-tailwindcss/styles/index.css
+8
-13
No files found.
examples/with-tailwindcss/components/nav.js
View file @
5e80999c
...
@@ -14,9 +14,9 @@ export default function Nav() {
...
@@ -14,9 +14,9 @@ export default function Nav() {
<
a
className
=
"text-blue-500 no-underline"
>
Home
<
/a
>
<
a
className
=
"text-blue-500 no-underline"
>
Home
<
/a
>
<
/Link
>
<
/Link
>
<
/li
>
<
/li
>
<
ul
className
=
"flex justify-between items-center"
>
<
ul
className
=
"flex justify-between items-center
space-x-4
"
>
{
links
.
map
(({
href
,
label
})
=>
(
{
links
.
map
(({
href
,
label
})
=>
(
<
li
key
=
{
`
${
href
}${
label
}
`
}
className
=
"ml-4"
>
<
li
key
=
{
`
${
href
}${
label
}
`
}
>
<
a
href
=
{
href
}
className
=
"btn-blue no-underline"
>
<
a
href
=
{
href
}
className
=
"btn-blue no-underline"
>
{
label
}
{
label
}
<
/a
>
<
/a
>
...
...
examples/with-tailwindcss/styles/button.css
deleted
100644 → 0
View file @
0c8a4017
.btn-blue
{
@apply
bg-blue-500
text-white
font-bold
py-2
px-4
rounded;
}
examples/with-tailwindcss/styles/index.css
View file @
5e80999c
@import
'./button.css'
;
@tailwind
base
;
@tailwind
base
;
@tailwind
components
;
@tailwind
components
;
@tailwind
utilities
;
.btn-blue
{
@apply
bg-blue-500
text-white
font-bold
py-2
px-4
rounded;
}
.hero
{
.hero
{
width
:
100%
;
@apply
py-20;
color
:
#333
;
}
}
.title
{
.title
{
margin
:
0
;
@apply
text-5xl
text-center;
width
:
100%
;
color
:
#333
;
padding-top
:
80px
;
line-height
:
1.15
;
line-height
:
1.15
;
font-size
:
48px
;
}
}
.title
,
@tailwind
utilities
;
.description
{
text-align
:
center
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment