1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #882 from BoostIO/fix-layout

Fix layout
This commit is contained in:
Kazu Yokomizo
2017-09-22 16:20:05 +09:00
committed by GitHub
13 changed files with 42 additions and 31 deletions

View File

@@ -6,7 +6,7 @@ const ModalEscButton = ({
handleEscButtonClick handleEscButtonClick
}) => ( }) => (
<button styleName='escButton' onClick={handleEscButtonClick}> <button styleName='escButton' onClick={handleEscButtonClick}>
<div styleName='esc-mark'>x</div> <div styleName='esc-mark'>×</div>
<div styleName='esc-text'>esc</div> <div styleName='esc-text'>esc</div>
</button> </button>
) )

View File

@@ -11,4 +11,6 @@
height top-bar-height height top-bar-height
.esc-mark .esc-mark
font-size 15px font-size 28px
margin-top -5px
margin-bottom -7px

View File

@@ -341,7 +341,7 @@ class MarkdownNoteDetail extends React.Component {
<button styleName='control-fullScreenButton' <button styleName='control-fullScreenButton'
onMouseDown={(e) => this.handleFullScreenButton(e)} onMouseDown={(e) => this.handleFullScreenButton(e)}
> >
<i className='fa fa-expand' styleName='fullScreen-button' /> <i className='fa fa-window-maximize' styleName='fullScreen-button' />
</button> </button>
<InfoButton <InfoButton
onClick={(e) => this.handleInfoButtonClick(e)} onClick={(e) => this.handleInfoButtonClick(e)}

View File

@@ -598,7 +598,7 @@ class SnippetNoteDetail extends React.Component {
<button styleName='control-fullScreenButton' <button styleName='control-fullScreenButton'
onMouseDown={(e) => this.handleFullScreenButton(e)} onMouseDown={(e) => this.handleFullScreenButton(e)}
> >
<i className='fa fa-expand' styleName='fullScreen-button' /> <i className='fa fa-window-maximize' styleName='fullScreen-button' />
</button> </button>
<InfoButton <InfoButton
onClick={(e) => this.handleInfoButtonClick(e)} onClick={(e) => this.handleInfoButtonClick(e)}

View File

@@ -19,7 +19,7 @@
.body .description .body .description
absolute top left right absolute top left right
height 80px height 50px
.body .description textarea .body .description textarea
outline none outline none
@@ -27,14 +27,14 @@
height 100% height 100%
width 100% width 100%
resize none resize none
border none border 1px solid $ui-borderColor
padding 10px padding 10px
line-height 1.6 line-height 1.6
background-color $ui-noteDetail-backgroundColor background-color $ui-noteDetail-backgroundColor
.tabList .tabList
absolute left right absolute left right
top 80px top 55px
height 30px height 30px
display flex display flex
background-color $ui-noteDetail-backgroundColor background-color $ui-noteDetail-backgroundColor
@@ -50,7 +50,7 @@
.tabView .tabView
absolute left right bottom absolute left right bottom
top 130px top 100px
.tabView-content .tabView-content
absolute top left right bottom absolute top left right bottom
@@ -83,6 +83,7 @@ body[data-theme="dark"]
.body .description textarea .body .description textarea
background-color $ui-dark-noteDetail-backgroundColor background-color $ui-dark-noteDetail-backgroundColor
color $ui-dark-text-color color $ui-dark-text-color
border 1px solid $ui-dark-borderColor
.tabList .tabList
background-color $ui-button--active-backgroundColor background-color $ui-button--active-backgroundColor

View File

@@ -64,7 +64,7 @@ textarea.block-input
fullsize() fullsize()
modalZIndex= 1000 modalZIndex= 1000
modalBackColor = transparentify(white, 65%) modalBackColor = white
.ace_focus .ace_focus
outline-color rgb(59, 153, 252) outline-color rgb(59, 153, 252)
outline-offset 0px outline-offset 0px
@@ -86,7 +86,7 @@ modalBackColor = transparentify(white, 65%)
body[data-theme="dark"] body[data-theme="dark"]
.ModalBase .ModalBase
.modalBack .modalBack
background-color alpha(black, 60%) background-color $ui-dark-backgroundColor
.CodeMirror .CodeMirror
font-family inherit !important font-family inherit !important

View File

@@ -31,10 +31,15 @@
.group-section-control .group-section-control
flex 1 flex 1
margin-left 5px
.group-section-control select .group-section-control select
outline none outline none
border 1px solid $ui-borderColor border 1px solid $ui-borderColor
font-size 16px
height 30px
width 250px
margin-bottom 5px
background-color transparent background-color transparent
.group-section-control-input .group-section-control-input
@@ -77,14 +82,16 @@
margin-right 10px margin-right 10px
.group-control-rightButton .group-control-rightButton
float right position absolute
top 10px
right 20px
colorPrimaryButton() colorPrimaryButton()
border none border none
border-radius 2px border-radius 2px
font-size $tab--button-font-size font-size $tab--button-font-size
height 35px height 40px
width 100px width 120px
margin-right 10px padding 0 15px
.group-hint .group-hint
border $ui-border border $ui-border

View File

@@ -97,9 +97,9 @@ class InfoTab extends React.Component {
</ul> </ul>
<hr /> <hr />
<div styleName='policy'>Data collection policy</div> <div styleName='policy'>Data collection policy</div>
<p>We collect only the number of DAU for Boostnote and DO NOT collect any detail information</p> <div>We collect only the number of DAU for Boostnote and **DO NOT collect** any detail information such as your note content.</div>
<p>such as your note content. You can see how it works on <a href='https://github.com/BoostIO/Boostnote' onClick={(e) => this.handleLinkClick(e)}>GitHub</a>.</p> <div>You can see how it works on <a href='https://github.com/BoostIO/Boostnote' onClick={(e) => this.handleLinkClick(e)}>GitHub</a>.</div>
<p>These data are only used for Boostnote improvements.</p> <div>These data are only used for Boostnote improvements.</div>
<input onChange={(e) => this.handleConfigChange(e)} <input onChange={(e) => this.handleConfigChange(e)}
checked={this.state.config.amaEnabled} checked={this.state.config.amaEnabled}
ref='amaEnabled' ref='amaEnabled'

View File

@@ -43,6 +43,7 @@
text-decoration none text-decoration none
.policy .policy
width 100%
font-size 20px font-size 20px
margin-bottom 10px margin-bottom 10px

View File

@@ -4,9 +4,10 @@ top-bar--height = 50px
.root .root
modal() modal()
max-width 800px max-width 100vw
min-height 500px min-height 100vh
height 80% height 100vh
width 100vw
overflow hidden overflow hidden
position relative position relative
@@ -25,22 +26,22 @@ top-bar--height = 50px
top top-bar--height top top-bar--height
left 0 left 0
width 140px width 140px
margin-left 30px margin-left 10px
margin-top 20px margin-top 20px
background-color $ui-backgroundColor background-color $ui-backgroundColor
.nav-button .nav-button
font-size 14px font-size 14px
text-align left text-align left
width 100px width 120px
margin 4px 0 margin 5px 0
padding 5px 0 padding 7px 0
padding-left 10px padding-left 10px
border none border none
border-radius 2px border-radius 2px
background-color transparent background-color transparent
color $ui-text-color color $ui-text-color
font-size 14px font-size 16px
.nav-button--active .nav-button--active
@extend .nav-button @extend .nav-button

View File

@@ -10,8 +10,8 @@ $tab--button-font-size = 14px
$tab--dark-text-color = #E5E5E5 $tab--dark-text-color = #E5E5E5
.header .header
font-size 24px font-size 36px
margin-bottom 30px margin-bottom 60px
body[data-theme="dark"] body[data-theme="dark"]
.header .header

View File

@@ -90,9 +90,8 @@ class UiTab extends React.Component {
<div styleName='group'> <div styleName='group'>
<div styleName='group-header'>UI</div> <div styleName='group-header'>UI</div>
<div styleName='group-header2'>Theme</div>
<div styleName='group-section'> <div styleName='group-section'>
Color Theme
<div styleName='group-section-control'> <div styleName='group-section-control'>
<select value={config.ui.theme} <select value={config.ui.theme}
onChange={(e) => this.handleUIChange(e)} onChange={(e) => this.handleUIChange(e)}

View File

@@ -150,10 +150,11 @@ modal()
position relative position relative
z-index $modal-z-index z-index $modal-z-index
width 100% width 100%
margin-left 40px
margin-right 40px
background-color $modal-background background-color $modal-background
overflow hidden overflow hidden
border-radius $modal-border-radius border-radius $modal-border-radius
box-shadow 0 0 1px rgba(76,86,103,.15), 0 2px 18px rgba(31,37,50,.22)
topBarButtonLight() topBarButtonLight()
width 34px width 34px
@@ -260,4 +261,3 @@ modalDark()
background-color $ui-dark-backgroundColor background-color $ui-dark-backgroundColor
overflow hidden overflow hidden
border-radius $modal-border-radius border-radius $modal-border-radius
box-shadow 2px 2px 10px black