@ -345,25 +345,27 @@ class Editor extends React.Component {
onChange = { this . updateLanguage }
onChange = { this . updateLanguage }
/ >
/ >
< div className = "toolbar-second-row" >
< div className = "toolbar-second-row" >
< BackgroundSelect
< div className = "setting-buttons" >
onChange = { this . updateBackground }
< BackgroundSelect
updateHighlights = { this . updateHighlights }
onChange = { this . updateBackground }
mode = { backgroundMode }
updateHighlights = { this . updateHighlights }
color = { backgroundColor }
mode = { backgroundMode }
image = { backgroundImage }
color = { backgroundColor }
carbonRef = { this . carbonNode . current }
image = { backgroundImage }
/ >
carbonRef = { this . carbonNode . current }
< Settings
/ >
{ ... config }
< Settings
onChange = { this . updateSetting }
{ ... config }
resetDefaultSettings = { this . resetDefaultSettings }
onChange = { this . updateSetting }
format = { this . format }
resetDefaultSettings = { this . resetDefaultSettings }
applyPreset = { this . applyPreset }
format = { this . format }
getCarbonImage = { this . getCarbonImage }
applyPreset = { this . applyPreset }
/ >
getCarbonImage = { this . getCarbonImage }
< div id = "style-editor-button" / >
/ >
< div className = "buttons" >
< CopyMenu copyImage = { this . copyImage } carbonRef = { this . carbonNode . current } / >
< CopyMenu copyImage = { this . copyImage } carbonRef = { this . carbonNode . current } / >
< / d i v >
< div id = "style-editor-button" / >
< div className = "share-buttons" >
< ShareMenu tweet = { this . tweet } imgur = { this . imgur } / >
< ShareMenu tweet = { this . tweet } imgur = { this . imgur } / >
< ExportMenu
< ExportMenu
onChange = { this . updateSetting }
onChange = { this . updateSetting }
@ -414,16 +416,17 @@ class Editor extends React.Component {
padding : 16 px ;
padding : 16 px ;
}
}
. buttons {
. share - buttons ,
. setting - buttons {
display : flex ;
display : flex ;
margin - left : auto ;
margin - left : auto ;
height : 40 px ;
}
}
. toolbar - second - row {
. toolbar - second - row {
height : 40 px ;
display : flex ;
display : flex ;
flex : 1 1 auto ;
flex : 1 1 auto ;
}
}
. toolbar- second - row > : global ( div : not ( : last - of - type ) ) {
. setting- buttons > : global ( div ) {
margin - right : 0.5 rem ;
margin - right : 0.5 rem ;
}
}
@ -431,6 +434,14 @@ class Editor extends React.Component {
display : flex ;
display : flex ;
align - items : center ;
align - items : center ;
}
}
@ media ( max - width : 768 px ) {
. toolbar - second - row {
display : block ;
}
# style - editor - button {
margin - top : 0.5 rem ;
}
}
` }
` }
< / s t y l e >
< / s t y l e >
< / d i v >
< / d i v >