Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
cokoapps
ui
Commits
2b72ce9e
Commit
2b72ce9e
authored
Dec 03, 2019
by
Yannis Barlas
Browse files
Merge branch 'section-theme-hooks' into 'master'
add theme hooks for section See merge request
!5
parents
e703755d
37e6f11f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/Section.js
View file @
2b72ce9e
import
React
from
'
react
'
import
PropTypes
,
{
object
}
from
'
prop-types
'
import
{
List
}
from
'
@pubsweet/ui
'
import
styled
from
'
styled-components
'
import
{
List
}
from
'
@pubsweet/ui
'
import
{
override
}
from
'
@pubsweet/ui-toolkit
'
const
Root
=
styled
.
div
`
display: flex;
flex-direction: column;
${
override
(
'
ui.Section
'
)}
;
`
const
Header
=
styled
.
div
`
display: flex;
margin-bottom:
${
props
=>
props
.
theme
.
gridUnit
}
;
${
override
(
'
ui.Section.Header
'
)}
;
`
const
Title
=
styled
.
div
`
...
...
@@ -18,10 +24,14 @@ const Title = styled.div`
font-size:
${
props
=>
props
.
theme
.
fontSizeHeading1
}
;
line-height:
${
props
=>
props
.
theme
.
lineHeightHeading1
}
;
text-transform: uppercase;
/* stylelint-disable-next-line order/properties-alphabetical-order */
${
override
(
'
ui.Section.Title
'
)}
;
`
const
StyledRightComponet
=
styled
.
div
`
flex-grow: 1;
${
override
(
'
ui.Section.RightComponent
'
)}
;
`
const
StyledEmptyMessage
=
styled
.
div
`
...
...
@@ -29,6 +39,9 @@ const StyledEmptyMessage = styled.div`
font-style: italic;
padding:
${
props
=>
`calc(2*
${
props
.
theme
.
gridUnit
}
)`
}
;
text-align: center;
/* stylelint-disable-next-line order/properties-alphabetical-order */
${
override
(
'
ui.Section.EmptyMessage
'
)}
;
`
/**
...
...
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