Skip to content

Commit 2f4af32

Browse files
committed
tutorial 追加
1 parent e4b2c42 commit 2f4af32

11 files changed

Lines changed: 279 additions & 33 deletions

File tree

browser/main/HomePage.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { PropTypes} from 'react'
22
import { connect } from 'react-redux'
3-
import { CREATE_MODE, EDIT_MODE, IDLE_MODE, NEW } from 'boost/actions'
3+
import { CREATE_MODE, EDIT_MODE, IDLE_MODE, NEW, toggleTutorial } from 'boost/actions'
44
// import UserNavigator from './HomePage/UserNavigator'
55
import ArticleNavigator from './HomePage/ArticleNavigator'
66
import ArticleTopBar from './HomePage/ArticleTopBar'
@@ -32,9 +32,15 @@ class HomePage extends React.Component {
3232
return
3333
}
3434

35-
let { status } = this.props
35+
let { status, dispatch } = this.props
3636
let { nav, top, list, detail } = this.refs
3737

38+
if (status.isTutorialOpen) {
39+
dispatch(toggleTutorial())
40+
e.preventDefault()
41+
return
42+
}
43+
3844
// Search inputがfocusされていたら大体のキー入力は無視される。
3945
if (top.isInputFocused() && !e.metaKey) {
4046
if (e.keyCode === 13 || e.keyCode === 27) top.escape()

browser/main/HomePage/ArticleDetail.js

Lines changed: 71 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,65 @@ import TagSelect from 'boost/components/TagSelect'
1313
import ModeSelect from 'boost/components/ModeSelect'
1414
import activityRecord from 'boost/activityRecord'
1515

16+
const BRAND_COLOR = '#18AF90'
17+
18+
const editDeleteTutorialElement = (
19+
<svg width='300' height='500' className='tutorial'>
20+
<text x='50' y='220' fill={BRAND_COLOR} fontSize='24'>Edit / Delete a post</text>
21+
<text x='90' y='245' fill={BRAND_COLOR} fontSize='18'>press `e`/`d`</text>
22+
23+
<svg x='150' y='35'>
24+
<path fill='white' d='M87.5,93.6c-16.3-5.7-30.6-16.7-39.9-31.4c-5.5-8.7-9-19.1-3.4-28.7c4.8-8.2,13.6-12.8,22.4-15.3
25+
c15.7-4.5,34.4-6.2,49.7,0.4c17.3,7.4,25.6,26.3,25.7,44.4c0.1,10.4-3.4,20.9-13.1,26c-8.6,4.5-19,4.1-28.4,3.7
26+
c-1.9-0.1-1.9,2.9,0,3c9.3,0.4,19.2,0.6,27.9-3.2c8.5-3.7,13.8-11.2,15.7-20.2c3.6-17.9-2.9-40.2-17.7-51.4
27+
C110.8,9.1,89,9.9,70.8,14c-17.9,4-37.4,16.8-31.3,37.9C45.6,73,66.7,89.5,86.7,96.5C88.6,97.1,89.4,94.2,87.5,93.6L87.5,93.6z'/>
28+
<path fill='white' d='M11.9,89.7c14.8-3.4,29.7-6,44.8-7.9c-0.5-0.6-1-1.3-1.4-1.9c-2.6,6.3-2.8,12.7-0.7,19.2
29+
c0.6,1.8,3.5,1,2.9-0.8c-1.9-6-1.7-11.8,0.7-17.6c0.3-0.8-0.5-2-1.4-1.9c-15.3,1.9-30.6,4.5-45.6,8C9.3,87.3,10.1,90.2,11.9,89.7
30+
L11.9,89.7z'/>
31+
<path fill='white' d='M48.6,81.5c-9.4,10.4-17,22.3-22.2,35.3c-5.5,13.6-9.3,28.9-6,43.4c0.4,1.9,3.3,1.1,2.9-0.8
32+
c-3.2-14,0.7-28.8,6-41.8c5.1-12.5,12.4-24,21.5-34C52,82.2,49.9,80,48.6,81.5L48.6,81.5z'/>
33+
</svg>
34+
</svg>
35+
)
36+
37+
const tagSelectTutorialElement = (
38+
<svg width='500' height='500' className='tutorial'>
39+
<text x='155' y='50' fill={BRAND_COLOR} fontSize='24'>Attach some tags here!</text>
40+
41+
<svg x='0' y='-15'>
42+
<path fill='white' d='M15.5,22.2c77.8-0.7,155.6-1.3,233.5-2c22.2-0.2,44.4-0.4,66.6-0.6c1.9,0,1.9-3,0-3
43+
c-77.8,0.7-155.6,1.3-233.5,2c-22.2,0.2-44.4,0.4-66.6,0.6C13.6,19.2,13.6,22.2,15.5,22.2L15.5,22.2z'/>
44+
<path fill='white' d='M130.8,25c-5.4,6.8-10.3,14-14.6,21.5c-0.8,1.4,1.2,3.2,2.4,1.8c1-1.2,2-2.4,3.1-3.7c1.2-1.5-0.9-3.6-2.1-2.1
45+
c-1,1.2-2,2.4-3.1,3.7c0.8,0.6,1.6,1.2,2.4,1.8c4.2-7.3,8.9-14.3,14.2-20.9C134.1,25.6,132,23.4,130.8,25L130.8,25z'/>
46+
<path fill='white' d='M132.6,22.1c8.4,5.9,16.8,11.9,25.2,17.8c1.6,1.1,3.1-1.5,1.5-2.6c-8.4-5.9-16.8-11.9-25.2-17.8
47+
C132.5,18.4,131,21,132.6,22.1L132.6,22.1z'/>
48+
<path fill='white' d='M132.9,18.6c0.4,6.7-0.7,13.3-3.5,19.3c-1.5,3.1-3.9,6.4-3.1,10c0.7,3.1,3.4,4.4,6.2,5.5
49+
c5.1,2.1,10.5,3.1,16.1,3.2c1.9,0,1.9-3,0-3c-4.7-0.1-9.2-0.8-13.6-2.4c-3-1.1-6.2-1.9-5.4-6.6c0.4-2,2-4.1,2.8-5.9
50+
c2.9-6.3,4-13.1,3.6-20.1C135.8,16.7,132.8,16.7,132.9,18.6L132.9,18.6z'/>
51+
</svg>
52+
</svg>
53+
)
54+
55+
const modeSelectTutorialElement = (
56+
<svg width='500' height='500' className='tutorial'>
57+
<text x='195' y='130' fill={BRAND_COLOR} fontSize='24'>Select code syntax!!</text>
58+
59+
<svg x='300' y='0'>
60+
<path fill='white' d='M99.9,58.8c-14.5-0.5-29-2.2-43.1-5.6c-12.3-2.9-27.9-6.4-37.1-15.5C7.9,26,28.2,18.9,37,16.7
61+
c13.8-3.5,28.3-4.7,42.4-5.8c29.6-2.2,59.3-1.7,89-1c3,0.1,7.5-0.6,10.2,0.6c3.1,1.4,3.1,5.3,3.3,8.1c0.3,5.2-0.2,10.7-2.4,15.4
62+
c-4.4,9.6-18.4,14.7-27.5,18.1c-27.1,10.1-56.7,12.8-85.3,15.6c-1.9,0.2-1.9,3.2,0,3c29.3-2.9,59.8-5.6,87.5-16.2
63+
c9.6-3.7,22.8-8.7,27.7-18.4c2.3-4.6,3.2-9.9,3.2-15c0-3.6,0-9.4-2.9-12c-1.9-1.7-4.7-1.8-7.1-2c-4.8-0.2-9.6-0.2-14.4-0.3
64+
c-8.7-0.2-17.5-0.3-26.2-0.4C116.7,6.3,99,6.5,81.3,7.8c-15.8,1.1-32.1,2.3-47.4,6.6c-7.7,2.2-22.1,6.9-20.9,17.4
65+
c0.6,5.4,5.6,9.4,9.9,12.1c6.7,4.3,14.4,6.9,22,9.2c17.8,5.4,36.4,8,54.9,8.6C101.8,61.8,101.8,58.8,99.9,58.8L99.9,58.8z'/>
66+
<path fill='white' d='M11.1,67.8c9.2-6.1,18.6-11.9,28.2-17.2c-0.7-0.3-1.5-0.6-2.2-0.9c0.9,5.3,0.7,10.3-0.5,15.5
67+
c-0.4,1.9,2.4,2.7,2.9,0.8c1.4-5.7,1.5-11.3,0.5-17.1c-0.2-1-1.4-1.3-2.2-0.9c-9.7,5.3-19.1,11.1-28.2,17.2
68+
C8,66.3,9.5,68.9,11.1,67.8L11.1,67.8z'/>
69+
<path fill='white' d='M31.5,52.8C23.4,68.9,0.2,83.2,7.9,104c0.7,1.8,3.6,1,2.9-0.8C3.6,83.7,26.4,69.7,34.1,54.3
70+
C35,52.6,32.4,51.1,31.5,52.8L31.5,52.8z'/>
71+
</svg>
72+
</svg>
73+
)
74+
1675
function makeInstantArticle (article) {
1776
return Object.assign({}, article)
1877
}
@@ -95,7 +154,7 @@ export default class ArticleDetail extends React.Component {
95154
}
96155

97156
renderIdle () {
98-
let { activeArticle, folders } = this.props
157+
let { status, activeArticle, folders } = this.props
99158

100159
let tags = activeArticle.tags != null ? activeArticle.tags.length > 0
101160
? activeArticle.tags.map(tag => {
@@ -140,6 +199,9 @@ export default class ArticleDetail extends React.Component {
140199
<i className='fa fa-fw fa-trash'/><span className='tooltip'>Delete (d)</span>
141200
</button>
142201
</div>
202+
203+
{status.isTutorialOpen ? editDeleteTutorialElement : null}
204+
143205
</div>
144206
)
145207
}
@@ -234,15 +296,14 @@ export default class ArticleDetail extends React.Component {
234296
}
235297

236298
handleTitleKeyDown (e) {
237-
console.log(e.keyCode)
238-
if (e.keyCode === 9) {
299+
if (e.keyCode === 9 && !e.shiftKey) {
239300
e.preventDefault()
240301
this.refs.mode.handleIdleSelectClick()
241302
}
242303
}
243304

244305
renderEdit () {
245-
let { folders } = this.props
306+
let { folders, status } = this.props
246307

247308
let folderOptions = folders.map(folder => {
248309
return (
@@ -266,7 +327,11 @@ export default class ArticleDetail extends React.Component {
266327
tags={this.state.article.tags}
267328
onChange={(tags, tag) => this.handleTagsChange(tags, tag)}
268329
/>
330+
331+
{status.isTutorialOpen ? tagSelectTutorialElement : null}
332+
269333
</div>
334+
270335
<div className='right'>
271336
{
272337
this.state.article.mode === 'markdown'
@@ -290,6 +355,8 @@ export default class ArticleDetail extends React.Component {
290355
className='mode'
291356
onBlur={() => this.handleModeSelectBlur()}
292357
/>
358+
359+
{status.isTutorialOpen ? modeSelectTutorialElement : null}
293360
</div>
294361

295362
{this.state.previewMode

browser/main/HomePage/ArticleNavigator.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,56 @@ import CreateNewFolder from 'boost/components/modal/CreateNewFolder'
99
import remote from 'remote'
1010
let userName = remote.getGlobal('process').env.USER
1111

12+
const BRAND_COLOR = '#18AF90'
13+
14+
const preferenceTutorialElement = (
15+
<svg width='300' height='300' className='tutorial'>
16+
<text x='15' y='30' fill={BRAND_COLOR} fontSize='24'>Preference</text>
17+
<svg x='-30' y='-270' width='400' height='400'>
18+
<path fill='white' d='M165.9,297c5.3,0,10.6,0.1,15.8,0.1c3.3,0,7.7,0.8,10.7-1c2.3-1.4,3.1-4,4.5-6.2c3.5-5.5,9.6-5.2,14.6-1.9
19+
c4.6,3.1,8.7,8,8.4,13.8c-0.3,5.2-3.3,10.1-6.1,14.3c-3.1,4.7-6.6,7-12.2,7.9c-5.2,0.8-11.7,1.6-15.4-3
20+
c-6.6-8.2,2.1-20.5,7.4-27.1c6.5-8.1,20.1-14,26.4-2.1c5.4,10.3-3.1,21.7-13,24.8c-5.7,1.8-11,0.9-16.2-1.9c-2-1.1-5-2.6-6.6-4.4
21+
c-3.9-4.3-0.3-8.2,2.5-11.2c1.3-1.4-0.8-3.6-2.1-2.1c-2.7,2.9-5.8,6.6-5.1,10.9c0.7,4.4,5.6,6.9,9,8.9c8.6,5.1,18.7,4.8,26.8-1.2
22+
c7.3-5.4,11.6-15,8-23.7c-3.3-8.1-11.7-11.8-20-9c-12.5,4.1-33.7,33.5-15.9,43.1c6.8,3.7,19.8,1.8,25.3-3.6
23+
c6.1-5.8,12.1-17.2,9.5-25.7c-2.6-8.4-13.7-17-22.6-13.3c-1.6,0.7-3,1.7-4.1,3c-1.6,1.9-2.2,5.1-4.1,6.6c-3.1,2.4-10.1,1-13.7,1
24+
c-4,0-7.9,0-11.9-0.1C164,294,164,297,165.9,297L165.9,297z'/>
25+
</svg>
26+
</svg>
27+
)
28+
29+
const newPostTutorialElement = (
30+
<svg width='900' height='900' className='tutorial'>
31+
<text x='290' y='155' fill={BRAND_COLOR} fontSize='24'>Create a new post!!</text>
32+
<text x='300' y='180' fill={BRAND_COLOR} fontSize='16'>press `⌘ + Enter` or `a`</text>
33+
<svg x='130' y='-20' width='400' height='400'>
34+
<path fill='white' d='M56.2,132.5c11.7-2.9,23.9-6,36.1-4.1c8.7,1.4,16.6,5.5,23.7,10.5c13.3,9.4,24.5,21.5,40.2,27
35+
c1.8,0.6,2.6-2.3,0.8-2.9c-17.1-6-28.9-20.3-44-29.7c-7-4.4-14.8-7.4-23-8.2c-11.7-1.1-23.3,1.7-34.5,4.5
36+
C53.6,130.1,54.4,133,56.2,132.5L56.2,132.5 z'/>
37+
</svg>
38+
<svg x='130' y='-120' width='400' height='400'>
39+
<path fill='white' d='M82.6,218c-7.7,4.5-15.3,9.3-22.7,14.3c-1,0.7-0.9,2.4,0.4,2.7c6.2,1.8,11.5,4.8,16.2,9.2
40+
c1.4,1.3,3.5-0.8,2.1-2.1c-5.1-4.8-10.9-8.1-17.6-10c0.1,0.9,0.2,1.8,0.4,2.7c7.4-5,15-9.8,22.7-14.3
41+
C85.7,219.7,84.2,217.1,82.6,218L82.6,218z'/>
42+
</svg>
43+
</svg>
44+
)
45+
46+
const newFolderTutorialElement = (
47+
<svg width='800' height='500' className='tutorial'>
48+
<text x='145' y='110' fill={BRAND_COLOR} fontSize='24'>Create a new folder!!</text>
49+
<svg x='115' y='-10' width='300' height='400'>
50+
<path fill='white' d='M36.6,3.7C28.8,8.2,21.3,13,13.9,18c-1,0.7-0.9,2.4,0.4,2.7c6.2,1.8,11.5,4.8,16.2,9.2
51+
c1.4,1.3,3.5-0.8,2.1-2.1c-5.1-4.8-10.9-8.1-17.6-10c0.1,0.9,0.2,1.8,0.4,2.7c7.4-5,15-9.8,22.7-14.3C39.7,5.3,38.2,2.7,36.6,3.7
52+
L36.6,3.7z'/>
53+
<path fill='white' d='M16.8,21.5c13.3-6.9,29.5-7,42.6,0.6c5.6,3.2,10.4,7.7,14.1,13c3.8,5.4,10.3,16.2,2.2,20.6
54+
c-1.2,0.7-2.5,1.2-3.9,1.6c-1.1,0.4-2.3,0.5-3.4,0.5c-1.3-1.4-2.6-2.8-3.9-4.2c-0.2-4.6,7.5-6,10.5-5.8
55+
c7.4,0.7,13.7,6.2,18.4,11.6c9.4,10.7,14.7,24.3,15.6,38.5c0.1,1.9,3.1,1.9,3,0c-0.9-15.5-6.9-30.4-17.5-41.8
56+
c-6.8-7.3-25.8-19.1-32.3-4.8c-1.9,4.1,0.3,8.5,4.8,9.4c4.6,0.8,11.6-1.8,14.3-5.7c3.6-5.3-0.1-12.8-2.8-17.6
57+
c-3.4-6.1-8.2-11.3-13.8-15.4C50.2,11.6,31,10.9,15.3,19C13.6,19.8,15.1,22.4,16.8,21.5L16.8,21.5z'/>
58+
</svg>
59+
</svg>
60+
)
61+
1262
export default class ArticleNavigator extends React.Component {
1363
handlePreferencesButtonClick (e) {
1464
openModal(Preferences)
@@ -61,13 +111,19 @@ export default class ArticleNavigator extends React.Component {
61111
<i className='fa fa-fw fa-chevron-down'/>
62112
<span className='tooltip'>Preferences</span>
63113
</button>
114+
115+
{status.isTutorialOpen ? preferenceTutorialElement : null}
116+
64117
</div>
65118

66119
<div className='controlSection'>
67120
<button onClick={e => this.handleNewPostButtonClick(e)} className='newPostBtn'>
68121
New Post
69122
<span className='tooltip'>Create a new Post (⌘ + Enter or a)</span>
70123
</button>
124+
125+
{status.isTutorialOpen ? newPostTutorialElement : null}
126+
71127
</div>
72128

73129
<div className='folders'>
@@ -77,6 +133,9 @@ export default class ArticleNavigator extends React.Component {
77133
<i className='fa fa-fw fa-plus'/>
78134
<span className='tooltip'>Create a new folder</span>
79135
</button>
136+
137+
{status.isTutorialOpen ? newFolderTutorialElement : null}
138+
80139
</div>
81140
<div className='folderList'>
82141
<button onClick={e => this.handleAllFoldersButtonClick(e)} className={targetFolders.length === 0 ? 'active' : ''}>All folders</button>

browser/main/HomePage/ArticleTopBar.js

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
11
import React, { PropTypes } from 'react'
22
import ReactDOM from 'react-dom'
33
import ExternalLink from 'boost/components/ExternalLink'
4-
import { setSearchFilter, clearSearch } from 'boost/actions'
5-
import { openModal } from 'boost/modal'
6-
import Tutorial from 'boost/components/modal/Tutorial'
4+
import { setSearchFilter, clearSearch, toggleTutorial } from 'boost/actions'
5+
6+
const BRAND_COLOR = '#18AF90'
7+
8+
const searchTutorialElement = (
9+
<svg width='750' height='120' className='tutorial'>
10+
<text x='450' y='33' fill={BRAND_COLOR} fontSize='24'>Search some posts!!</text>
11+
<text x='450' y='60' fill={BRAND_COLOR} fontSize='18'>{'- Search by tag : #{string}'}</text>
12+
<text x='450' y='85' fill={BRAND_COLOR} fontSize='18'>
13+
{'- Search by folder : in:{folder_name}\n'}</text>
14+
15+
<svg width='500' height='300'>
16+
<path fill='white' d='M54.5,51.5c-12.4,3.3-27.3-1.4-38.4-7C11.2,42,5,38.1,5.6,31.8c0.7-6.9,8.1-11.2,13.8-13.7
17+
c12.3-5.4,26.4-6.8,39.7-7.7C72.4,9.6,85.7,9.7,99,9.8c55.2,0.3,110.4,2.2,165.5-1.5C291,6.5,317.7,3.8,344.1,7
18+
c12.8,1.6,25.8,4.4,37.5,10c1.2,0.6,2.4,1.1,3.5,1.8c2.4,1.4,3.2,1.5,3.3,4.5c0.1,3.6-2.3,5.9-4.8,8.3c-3.9,3.8-8.6,6.8-13.5,9.2
19+
c-12.6,6-26.5,7.2-40.3,7.7c-13.7,0.5-27.5,0.6-41.2,1.1c-27.7,0.9-55.3,2.2-82.9,4c-30.8,2-61.6,4.5-92.3,7.6
20+
c-15.4,1.5-30.8,3.7-46.3,4.9c-13.6,1.1-30.7,1.5-41.8-7.8c-1.5-1.2-3.6,0.9-2.1,2.1c8.9,7.5,21.4,9.2,32.7,9.2
21+
c15.3,0,30.6-2.6,45.8-4.2c31.3-3.3,62.7-6,94.2-8.1c30.9-2.1,61.8-3.7,92.8-4.7c15.7-0.5,31.4-0.5,47-1.3
22+
c13.1-0.7,26.3-2.7,38.1-8.9c4.4-2.3,8.5-5.1,12-8.6c2.8-2.8,7.3-7.3,6.4-11.7c-0.8-4.3-6.4-6.3-9.8-7.9
23+
c-5.6-2.6-11.4-4.6-17.3-6.2c-28.3-7.5-58.1-5.6-87-3.6c-62.3,4.4-124.5,2.6-187,2.4c-16.4,0-32.8,0-49,2.4
24+
C29.9,11,13.4,13.8,5.5,24.6c-7.3,10,0.7,18.4,9.8,22.9c11.9,5.8,26.9,10.4,40,7C57.2,53.9,56.4,51,54.5,51.5L54.5,51.5z'/>
25+
<path fill='white' d='M446.5,21.4c-9.1-1.6-18.1-3.5-27.4-3.5c-10.2,0-20.4,1.4-30.5,2.8c-1.9,0.3-1.9,3.3,0,3
26+
c9.5-1.3,19.1-2.6,28.8-2.7c9.6-0.2,18.9,1.7,28.3,3.4C447.6,24.7,448.4,21.8,446.5,21.4L446.5,21.4z'/>
27+
</svg>
28+
</svg>
29+
)
730

831
export default class ArticleTopBar extends React.Component {
932
constructor (props) {
@@ -66,10 +89,13 @@ export default class ArticleTopBar extends React.Component {
6689
}
6790

6891
handleTutorialButtonClick (e) {
69-
openModal(Tutorial)
92+
let { dispatch } = this.props
93+
94+
dispatch(toggleTutorial())
7095
}
7196

7297
render () {
98+
let { status } = this.props
7399
return (
74100
<div className='ArticleTopBar'>
75101
<div className='left'>
@@ -94,14 +120,34 @@ export default class ArticleTopBar extends React.Component {
94120
- Search by folder : in:{'{folder_name}'}
95121
</div>
96122
</div>
123+
124+
{status.isTutorialOpen ? searchTutorialElement : null}
125+
97126
</div>
98127
<div className='right'>
99-
<button onClick={e => this.handleTutorialButtonClick(e)}>?<span className='tooltip'>How to use</span></button>
128+
<button onClick={e => this.handleTutorialButtonClick(e)}>?<span className='tooltip'>How to use</span>
129+
</button>
100130
<ExternalLink className='logo' href='http://b00st.io'>
101131
<img src='../../resources/favicon-230x230.png' width='44' height='44'/>
102132
<span className='tooltip'>Boost official page</span>
103133
</ExternalLink>
104134
</div>
135+
136+
{status.isTutorialOpen ? (
137+
<div className='tutorial'>
138+
<div onClick={e => this.handleTutorialButtonClick(e)} className='clickJammer'/>
139+
<svg width='500' height='250' className='finder'>
140+
<text x='100' y='25' fontSize='32' fill={BRAND_COLOR}>Also, you can open Finder</text>
141+
<text x='120' y='55' fontSize='18' fill={BRAND_COLOR}>with pressing `Control` + `shift` + `tab`</text>
142+
</svg>
143+
<svg width='450' className='global'>
144+
<text x='100' y='45' fontSize='24' fill={BRAND_COLOR}>Hope you to enjoy our app :D</text>
145+
<text x='50' y='75' fontSize='18' fill={BRAND_COLOR}>Press any key or click to escape tutorial mode</text>
146+
</svg>
147+
<div className='back'></div>
148+
</div>
149+
) : null}
150+
105151
</div>
106152
)
107153
}

browser/styles/main/HomeContainer/components/ArticleDetail.styl

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ iptFocusBorderColor = #369DCD
8585
&.edit
8686
.detailInfo
8787
.left
88+
&>.tutorial
89+
position fixed
90+
z-index 35
91+
font-style italic
8892
.folder
8993
border none
9094
width 150px
@@ -99,6 +103,8 @@ iptFocusBorderColor = #369DCD
99103
position relative
100104
margin-top 5px
101105
noSelect()
106+
z-index 30
107+
background-color #E6E6E6
102108
.tagItem
103109
background-color brandColor
104110
border-radius 2px
@@ -155,7 +161,13 @@ iptFocusBorderColor = #369DCD
155161
.detailBody
156162
.detailPanel
157163
&>.header
164+
&>.tutorial
165+
fixed right
166+
z-index 35
167+
font-style italic
158168
.mode
169+
position relative
170+
z-index 30
159171
absolute top bottom right
160172
display block
161173
height 33px
@@ -226,6 +238,10 @@ iptFocusBorderColor = #369DCD
226238
outline none
227239
&.idle
228240
.detailInfo
241+
&>.tutorial
242+
fixed top right
243+
z-index 35
244+
font-style italic
229245
.left
230246
right 99px
231247
.info
@@ -248,14 +264,17 @@ iptFocusBorderColor = #369DCD
248264
span.noTags
249265
color noTagsColor
250266
.right
267+
z-index 30
251268
button
269+
border-radius 16.5px
252270
cursor pointer
253271
height 33px
254272
width 33px
255273
border none
274+
margin-right 5px
256275
font-size 18px
257276
color inactiveTextColor
258-
background-color transparent
277+
background-color darken(white, 5%)
259278
padding 0
260279
.tooltip
261280
tooltip()
@@ -266,7 +285,7 @@ iptFocusBorderColor = #369DCD
266285
margin-top 25px
267286
margin-left -73px
268287
&:hover
269-
color inherit
288+
color textColor
270289
.tooltip
271290
opacity 1
272291
.detailBody

0 commit comments

Comments
 (0)