Skip to content

Commit a2f6359

Browse files
committed
rename css class
1 parent 30fd677 commit a2f6359

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

html/view.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="shortcut icon" href="images/icon-16.png">
66
</head>
77
<body>
8-
<div id="linkStack">
8+
<div id="link-stack">
99
</div>
1010
</body>
1111
</html>

src/Line.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class Line extends React.Component<LineProps> {
6262
<div className="line">
6363
{removeLink}
6464
{mainLink}
65-
<span className="sourceConn">
65+
<span className="source-connector">
6666
<Icon type="arrow-left" />
6767
</span>
6868
{sourceLink}

src/Link.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ export class Link extends React.Component<LinkProps> {
2121
target="_blank"
2222
title={title}
2323
>
24-
<div className="faviconWrapper">
24+
<div className="favicon-wrapper">
2525
<img
2626
className="favicon"
2727
src={"https://www.google.com/s2/favicons?domain=" + hostname}
2828
/>
2929
</div>
30-
<span className="linkText">{title}</span>
30+
<span className="link-text">{title}</span>
3131
</a>
3232
);
3333
}

src/LinkStack.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ export class LinkStack extends React.Component {
1313
<Consumer>
1414
{(model: ViewModel | null) =>
1515
model ? (
16-
<div className="linkStackContent">
16+
<div className="content">
1717
<div
1818
className={
19-
"syncIndicator" +
19+
"sync-indicator" +
2020
(model.state.unsyncedUpdate ? "" : " hidden")
2121
}
2222
/>
2323
<TitleBar />
2424
{model.state.graph.ids.length > 0 ? (
25-
<div className="innerLinkStack">
25+
<div className="inner-link-stack">
2626
{model.state.graph.ids.map(id => (
2727
<Line key={id} id={id} />
2828
))}
2929
</div>
3030
) : (
31-
<div className="innerLinkStackInfo">
31+
<div className="inner-link-stack-info">
3232
{helpMessages[texts.lang]}
3333
</div>
3434
)}

src/RootSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class RootSelector extends React.Component<
3636
<p>
3737
{model.state.bookmarkTreeSelection ? (
3838
<Cascader
39-
className="rootSelector"
39+
className="root-selector"
4040
options={model.state.bookmarkTreeSelection.tree}
4141
defaultValue={model.state.bookmarkTreeSelection.path}
4242
changeOnSelect

src/TitleBar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export class TitleBar extends React.Component {
2424
if (!model) return;
2525
this.model = model;
2626
return (
27-
<div className="titleBar">
27+
<div className="title-bar">
2828
{this.model.state.id ? (
2929
[
30-
<span className="rootTitle">{model.state.name}</span>,
30+
<span className="root-title">{model.state.name}</span>,
3131
<Divider type="vertical" />,
3232
<Tooltip
3333
title={texts.changeBookmarkFolder}
@@ -45,10 +45,10 @@ export class TitleBar extends React.Component {
4545
</a>
4646
)}
4747
<RootSelector />
48-
<span className="elasticSpace" />
48+
<span className="elastic-space" />
4949
{this.model.state.graph.ids.length > 0
5050
? [
51-
<a className="secondaryLink" onClick={this.onClickShowHelp}>
51+
<a className="secondary-link" onClick={this.onClickShowHelp}>
5252
{texts.help + " "}
5353
<Icon type="question-circle-o" />
5454
</a>,

src/keyboardShortcut.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Tag from "antd/lib/tag";
44
import * as React from "react";
55

66
export const defaultShortcut = (
7-
<span className="keyboardCombination">
7+
<span className="keyboard-combi">
88
<Tag>Alt</Tag> + <Tag>Shift</Tag> + <Tag>2</Tag>
99
</span>
1010
);

src/view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ window.onload = async () => {
3030
</div>
3131
]}
3232
</Provider>,
33-
document.getElementById("linkStack")
33+
document.getElementById("link-stack")
3434
);
3535
document.title = texts.extTitle(state.graph.ids.length);
3636
});

style/view.less

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
flex-shrink: 0;
2222
}
2323

24-
.secondaryLink {
24+
.secondary-link {
2525
color: @text-color-secondary;
2626
}
2727

28-
#linkStack {
28+
#link-stack {
2929
display: flex;
3030
flex-direction: column;
3131
padding: @large-gap;
@@ -44,7 +44,7 @@
4444
}
4545
}
4646

47-
.linkStackContent {
47+
.content {
4848
position: relative;
4949
margin-bottom: @large-gap;
5050
padding-bottom: @large-gap;
@@ -60,7 +60,7 @@
6060
}
6161
}
6262

63-
.syncIndicator {
63+
.sync-indicator {
6464
position: absolute;
6565
top: @text-height;
6666
right: @text-height;
@@ -76,7 +76,7 @@
7676
}
7777
}
7878

79-
.titleBar {
79+
.title-bar {
8080
display: flex;
8181
margin-bottom: @large-gap;
8282
padding: 16px @large-gap;
@@ -85,18 +85,18 @@
8585
justify-content: space-between;
8686
align-items: center;
8787

88-
.rootTitle {
88+
.root-title {
8989
font-weight: 500;
9090
font-size: @font-size-lg;
9191
line-height: @font-size-lg;
9292
}
9393

94-
.elasticSpace {
94+
.elastic-space {
9595
flex-grow: 1;
9696
}
9797
}
9898

99-
.innerLinkStack {
99+
.inner-link-stack {
100100
overflow: hidden;
101101
margin: 0 @large-gap;
102102

@@ -134,7 +134,7 @@
134134
max-width: 200px;
135135
}
136136

137-
.faviconWrapper {
137+
.favicon-wrapper {
138138
display: flex;
139139
margin-right: @border-width;
140140
width: @content-height;
@@ -146,7 +146,7 @@
146146
justify-content: center;
147147
}
148148

149-
.linkText {
149+
.link-text {
150150
overflow: hidden;
151151
padding: (@content-height - @text-height) / 2;
152152
color: white;
@@ -157,7 +157,7 @@
157157
}
158158
}
159159

160-
.sourceConn, .remove {
160+
.source-connector, .remove {
161161
padding: (@content-height - @text-height) / 2;
162162
width: @block-height;
163163
height: @block-height;
@@ -183,7 +183,7 @@
183183
}
184184
}
185185

186-
.innerLinkStackInfo {
186+
.inner-link-stack-info {
187187
margin: 0 auto;
188188
padding: 0 @large-gap;
189189
max-width: 520px; // Ant Design Modal's default width
@@ -206,7 +206,7 @@
206206
}
207207
}
208208

209-
.rootSelector {
209+
.root-selector {
210210
width: 100%;
211211
}
212212

@@ -218,6 +218,6 @@ span.process {
218218
color: @processing-color;
219219
}
220220

221-
span.keyboardCombination > .@{tag-prefix-cls} {
221+
span.keyboard-combi > .@{tag-prefix-cls} {
222222
margin-right: 0;
223223
}

0 commit comments

Comments
 (0)