Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
fd80c4ff
Commit
fd80c4ff
authored
May 09, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
May 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate MenuSection to tailwind
parent
78d259c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
18 deletions
+6
-18
MenuSection.js
src/sidebar/components/MenuSection.js
+6
-2
MenuSection.scss
src/styles/sidebar/components/MenuSection.scss
+0
-15
_index.scss
src/styles/sidebar/components/_index.scss
+0
-1
No files found.
src/sidebar/components/MenuSection.js
View file @
fd80c4ff
...
...
@@ -28,8 +28,12 @@ import { toChildArray } from 'preact';
export
default
function
MenuSection
({
heading
,
children
})
{
return
(
<>
{
heading
&&
<
h2
className
=
"MenuSection__heading"
>
{
heading
}
<
/h2>
}
<
ul
className
=
"MenuSection__content"
>
{
heading
&&
(
<
h2
className
=
"text-color-text-light p-3 leading-none uppercase"
>
{
heading
}
<
/h2
>
)}
<
ul
className
=
"border-b"
>
{
toChildArray
(
children
).
map
(
child
=>
(
<
li
key
=
{
/** @type {JSXElement} **/
(
child
).
key
}
>
{
child
}
<
/li
>
))}
...
...
src/styles/sidebar/components/MenuSection.scss
deleted
100644 → 0
View file @
78d259c0
@use
'../../variables'
as
var
;
@use
'../../mixins/utils'
;
.MenuSection__content
{
@include
utils
.
border--bottom
;
}
.MenuSection__heading
{
color
:
var
.
$color-text--light
;
line-height
:
1
;
margin
:
1px
1px
0
;
margin-bottom
:
10px
;
padding
:
12px
10px
0
;
text-transform
:
uppercase
;
}
src/styles/sidebar/components/_index.scss
View file @
fd80c4ff
...
...
@@ -13,7 +13,6 @@
@use
'./GroupList'
;
@use
'./GroupListItem'
;
@use
'./Menu'
;
@use
'./MenuSection'
;
@use
'./StyledText'
;
// TODO: Evaluate all classes below after components have been converted to
...
...
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