mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Fix layout
This commit is contained in:
@@ -66,7 +66,7 @@ $control-height = 30px
|
|||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
|
|
||||||
.item-title
|
.item-title
|
||||||
font-size 13px
|
font-size 14px
|
||||||
position relative
|
position relative
|
||||||
top -12px
|
top -12px
|
||||||
left 20px
|
left 20px
|
||||||
@@ -96,7 +96,7 @@ $control-height = 30px
|
|||||||
padding-left 2px
|
padding-left 2px
|
||||||
|
|
||||||
.item-bottom-tagList-item
|
.item-bottom-tagList-item
|
||||||
font-size 10px
|
font-size 11px
|
||||||
margin-right 8px
|
margin-right 8px
|
||||||
padding 0
|
padding 0
|
||||||
height 20px
|
height 20px
|
||||||
@@ -109,7 +109,7 @@ $control-height = 30px
|
|||||||
|
|
||||||
.item-bottom-time
|
.item-bottom-time
|
||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
font-size 10px
|
font-size 11px
|
||||||
padding-left 2px
|
padding-left 2px
|
||||||
padding-bottom 2px
|
padding-bottom 2px
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ $control-height = 30px
|
|||||||
|
|
||||||
.item-simple
|
.item-simple
|
||||||
position relative
|
position relative
|
||||||
padding 0 25px
|
padding 0 20px
|
||||||
user-select none
|
user-select none
|
||||||
cursor pointer
|
cursor pointer
|
||||||
background-color $ui-noteList-backgroundColor
|
background-color $ui-noteList-backgroundColor
|
||||||
@@ -40,7 +40,7 @@ $control-height = 30px
|
|||||||
background-color $ui-button--active-backgroundColor
|
background-color $ui-button--active-backgroundColor
|
||||||
|
|
||||||
.item-simple-title
|
.item-simple-title
|
||||||
font-size 12px
|
font-size 13px
|
||||||
height 40px
|
height 40px
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
line-height 24px
|
line-height 24px
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.root
|
.root
|
||||||
position relative
|
position relative
|
||||||
border solid 1px transparent
|
border solid 1px transparent
|
||||||
line-height 34px
|
line-height 26px
|
||||||
vertical-align middle
|
vertical-align middle
|
||||||
border-radius 2px
|
border-radius 2px
|
||||||
transition 0.15s
|
transition 0.15s
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getToggleLockButton () {
|
getToggleLockButton () {
|
||||||
return this.state.isLocked ? 'fa-lock' : 'fa-unlock-alt'
|
return this.state.isLocked ? 'fa-lock' : 'fa-unlock'
|
||||||
}
|
}
|
||||||
|
|
||||||
handleDeleteKeyDown (e) {
|
handleDeleteKeyDown (e) {
|
||||||
@@ -272,7 +272,7 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
>
|
>
|
||||||
<i className={faClassName} styleName='lock-button' />
|
<i className={faClassName} styleName='lock-button' />
|
||||||
<span styleName='control-lockButton-tooltip'>
|
<span styleName='control-lockButton-tooltip'>
|
||||||
{this.state.isLocked ? 'Unlock' : 'Lock'}
|
{this.state.isLocked ? 'Lock' : 'Unlock'}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
return (
|
return (
|
||||||
@@ -285,7 +285,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-arrows-alt' styleName='fullScreen-button' />
|
<i className='fa fa-expand' styleName='fullScreen-button' />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ $info-margin-under-border = 27px
|
|||||||
display inline-block
|
display inline-block
|
||||||
padding 0 3px
|
padding 0 3px
|
||||||
height 34px
|
height 34px
|
||||||
line-height 34px
|
line-height 26px
|
||||||
vertical-align middle
|
vertical-align middle
|
||||||
border-radius 3px
|
border-radius 3px
|
||||||
|
|
||||||
@@ -35,6 +35,7 @@ $info-margin-under-border = 27px
|
|||||||
navButtonColor()
|
navButtonColor()
|
||||||
color $ui-favorite-star-button-color
|
color $ui-favorite-star-button-color
|
||||||
font-size 14px
|
font-size 14px
|
||||||
|
line-height 0
|
||||||
margin 13px 2px
|
margin 13px 2px
|
||||||
padding 0
|
padding 0
|
||||||
border-radius 17px
|
border-radius 17px
|
||||||
|
|||||||
@@ -525,7 +525,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-arrows-alt' styleName='fullScreen-button' />
|
<i className='fa fa-expand' styleName='fullScreen-button' />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
display inline-block
|
display inline-block
|
||||||
top 19px
|
top 19px
|
||||||
user-select none
|
user-select none
|
||||||
|
height 26px
|
||||||
vertical-align middle
|
vertical-align middle
|
||||||
width 300px
|
width 300px
|
||||||
overflow-x scroll
|
overflow-x scroll
|
||||||
@@ -14,7 +15,6 @@
|
|||||||
display inline-block
|
display inline-block
|
||||||
margin 1px 3px
|
margin 1px 3px
|
||||||
padding 0
|
padding 0
|
||||||
vertical-align middle
|
|
||||||
height 20px
|
height 20px
|
||||||
background-color alpha($ui-tag-backgroundColor, 10%)
|
background-color alpha($ui-tag-backgroundColor, 10%)
|
||||||
border-radius 3px
|
border-radius 3px
|
||||||
@@ -49,9 +49,9 @@
|
|||||||
|
|
||||||
.newTag
|
.newTag
|
||||||
display inline-block
|
display inline-block
|
||||||
margin 0 2px
|
margin 2px 0 15px 2px
|
||||||
vertical-align middle
|
vertical-align middle
|
||||||
height 24px
|
height 18px
|
||||||
box-sizing borde-box
|
box-sizing borde-box
|
||||||
border none
|
border none
|
||||||
background-color transparent
|
background-color transparent
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ $control-height = 30px
|
|||||||
|
|
||||||
.control-sortBy
|
.control-sortBy
|
||||||
flex 1
|
flex 1
|
||||||
padding-left 25px
|
padding-left 22px
|
||||||
|
|
||||||
.control-sortBy-select
|
.control-sortBy-select
|
||||||
appearance: none;
|
appearance: none;
|
||||||
@@ -28,11 +28,14 @@ $control-height = 30px
|
|||||||
background-color transparent
|
background-color transparent
|
||||||
outline none
|
outline none
|
||||||
cursor pointer
|
cursor pointer
|
||||||
font-size 10px
|
font-size 11px
|
||||||
&:hover
|
&:hover
|
||||||
transition 0.2s
|
transition 0.2s
|
||||||
color $ui-text-color
|
color $ui-text-color
|
||||||
|
|
||||||
|
.control-button-area
|
||||||
|
margin-right 12px
|
||||||
|
|
||||||
.control-button
|
.control-button
|
||||||
width 25px
|
width 25px
|
||||||
padding 0
|
padding 0
|
||||||
|
|||||||
@@ -439,22 +439,24 @@ class NoteList extends React.Component {
|
|||||||
<option value='ALPHABETICAL'>Alphabetical</option>
|
<option value='ALPHABETICAL'>Alphabetical</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<button styleName={config.listStyle === 'DEFAULT'
|
<div styleName="control-button-area">
|
||||||
? 'control-button--active'
|
<button styleName={config.listStyle === 'DEFAULT'
|
||||||
: 'control-button'
|
? 'control-button--active'
|
||||||
}
|
: 'control-button'
|
||||||
onClick={(e) => this.handleListStyleButtonClick(e, 'DEFAULT')}
|
}
|
||||||
>
|
onClick={(e) => this.handleListStyleButtonClick(e, 'DEFAULT')}
|
||||||
<i className='fa fa-th-large' />
|
>
|
||||||
</button>
|
<i className='fa fa-th-large' />
|
||||||
<button styleName={config.listStyle === 'SMALL'
|
</button>
|
||||||
? 'control-button--active'
|
<button styleName={config.listStyle === 'SMALL'
|
||||||
: 'control-button'
|
? 'control-button--active'
|
||||||
}
|
: 'control-button'
|
||||||
onClick={(e) => this.handleListStyleButtonClick(e, 'SMALL')}
|
}
|
||||||
>
|
onClick={(e) => this.handleListStyleButtonClick(e, 'SMALL')}
|
||||||
<i className='fa fa-list-ul' />
|
>
|
||||||
</button>
|
<i className='fa fa-list-ul' />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div styleName='list'
|
<div styleName='list'
|
||||||
ref='list'
|
ref='list'
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ $control-height = 34px
|
|||||||
.control-search-icon
|
.control-search-icon
|
||||||
absolute top bottom left
|
absolute top bottom left
|
||||||
line-height 32px
|
line-height 32px
|
||||||
|
padding-left 2px
|
||||||
width 35px
|
width 35px
|
||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
background-color $ui-noteList-backgroundColor
|
background-color $ui-noteList-backgroundColor
|
||||||
@@ -39,6 +40,9 @@ $control-height = 34px
|
|||||||
height 100%
|
height 100%
|
||||||
outline none
|
outline none
|
||||||
border none
|
border none
|
||||||
|
color $ui-text-color
|
||||||
|
font-size 16px
|
||||||
|
padding-bottom 2px
|
||||||
background-color $ui-noteList-backgroundColor
|
background-color $ui-noteList-backgroundColor
|
||||||
|
|
||||||
.control-search-optionList
|
.control-search-optionList
|
||||||
@@ -92,9 +96,7 @@ $control-height = 34px
|
|||||||
width 32px
|
width 32px
|
||||||
height $control-height - 2
|
height $control-height - 2
|
||||||
navButtonColor()
|
navButtonColor()
|
||||||
border $ui-border
|
font-size 16px
|
||||||
border-radius 32px
|
|
||||||
font-size 14px
|
|
||||||
line-height 28px
|
line-height 28px
|
||||||
padding 0
|
padding 0
|
||||||
&:active
|
&:active
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ class TopBar extends React.Component {
|
|||||||
ref='searchInput'
|
ref='searchInput'
|
||||||
value={this.state.search}
|
value={this.state.search}
|
||||||
onChange={(e) => this.handleSearchChange(e)}
|
onChange={(e) => this.handleSearchChange(e)}
|
||||||
placeholder='Search'
|
placeholder=''
|
||||||
type='text'
|
type='text'
|
||||||
className='searchInput'
|
className='searchInput'
|
||||||
/>
|
/>
|
||||||
@@ -232,7 +232,7 @@ class TopBar extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<button styleName='control-newPostButton'
|
<button styleName='control-newPostButton'
|
||||||
onClick={(e) => this.handleNewPostButtonClick(e)}>
|
onClick={(e) => this.handleNewPostButtonClick(e)}>
|
||||||
<i className='fa fa-plus' />
|
<i className='fa fa-pencil-square-o' />
|
||||||
<span styleName='control-newPostButton-tooltip'>
|
<span styleName='control-newPostButton-tooltip'>
|
||||||
Make a Note {OSX ? '⌘' : '^'} + n
|
Make a Note {OSX ? '⌘' : '^'} + n
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user