Skip to content

Commit

Permalink
feat: lint style files
Browse files Browse the repository at this point in the history
  • Loading branch information
uniquemo committed Nov 4, 2020
1 parent 7b60258 commit 883628f
Show file tree
Hide file tree
Showing 41 changed files with 81 additions and 62 deletions.
2 changes: 1 addition & 1 deletion src/components/Artists/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, tipsHoverColor from colors;

.root {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Comment/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value blue, tipsHoverColor from colors;

.root {
Expand Down Expand Up @@ -31,6 +31,7 @@
.reply {
margin-bottom: 10px;
font-size: 0.9em;

.item {
width: 100%;
padding: 8px 10px;
Expand Down
8 changes: 5 additions & 3 deletions src/components/Layout/Footer/PlayOperations/style.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red from colors;

.prev, .next, .pause {
.prev,
.next,
.pause {
cursor: pointer;
}

Expand All @@ -25,4 +27,4 @@
& svg {
color: #fff;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, borderColor, nameHoverColor, nameColor from colors;

.name {
Expand All @@ -13,6 +13,7 @@
.text {
display: flex;
align-items: center;

span {
margin-right: 5px;
}
Expand Down
7 changes: 4 additions & 3 deletions src/components/Layout/Footer/PlayRecord/style.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@value constants: "~styles/constants.module.css";
@value constants: '~styles/constants.module.css';
@value footerHeight, headerHeight from constants;

@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, borderColor from colors;

.root {
Expand Down Expand Up @@ -43,7 +43,8 @@
}
}

.active, .active:hover {
.active,
.active:hover {
color: #fff;
background-color: tipsColor;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Footer/PlayVolume/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor from colors;

.root {
Expand Down
8 changes: 4 additions & 4 deletions src/components/Layout/Footer/style.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red from colors;

@value constants: "~styles/constants.module.css";
@value constants: '~styles/constants.module.css';
@value footerHeight, bodyMinWidth from constants;

.root {
Expand Down Expand Up @@ -55,11 +55,11 @@
.hideLyric {
display: block;
}

& img {
width: 40px;
height: 40px;
margin-right: 10px;;
margin-right: 10px;
border: none;
border-radius: 5px;
background-color: #ccc;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Header/Navbar/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value grey, black from colors;

.root {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, borderColor from colors;

.root {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, borderColor from colors;

.root {
Expand Down
7 changes: 2 additions & 5 deletions src/components/Layout/Header/Searcher/style.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value borderColor from colors;

@value constants: "~styles/constants.module.css";
@value constants: '~styles/constants.module.css';
@value footerHeight, headerHeight from constants;

.root {
}

.searcher {
width: 160px;
padding: 5px 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Header/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value constants: "~styles/constants.module.css";
@value constants: '~styles/constants.module.css';
@value sidebarWidth, headerHeight, bodyMinWidth from constants;

.root {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Sidebar/Menus/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value grey, red from colors;

.tabs {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsHoverColor, black from colors;

.root {
Expand All @@ -8,6 +8,7 @@
white-space: nowrap;
color: tipsHoverColor;
font-size: 0.95em;

/* For hide scrollbar */
padding-right: 17px;
box-sizing: content-box;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, bgColor from colors;

.item {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, bgColor from colors;

.item {
Expand Down
11 changes: 8 additions & 3 deletions src/components/Layout/Sidebar/MusicDetail/style.module.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red, blue from colors;

@value constants: "~styles/constants.module.css";
@value constants: '~styles/constants.module.css';
@value footerHeight, headerHeight, contentMaxWidth from constants;

@keyframes rotate {
0% {
transform: rotate(0deg);
}

50% {
transform: rotate(180deg);
}

100% {
transform: rotate(360deg);
}
Expand All @@ -31,7 +33,8 @@
top: headerHeight;
}

.music, .relatedInfo {
.music,
.relatedInfo {
width: 1000px;
margin: 0 auto;
}
Expand Down Expand Up @@ -94,6 +97,7 @@
background-color: rgba(0, 0, 0, 0.5);
animation: rotate 20s linear infinite;
animation-play-state: paused;

img {
border-radius: 50%;
}
Expand All @@ -116,6 +120,7 @@
.artists {
margin-bottom: 15px;
font-size: 0.95em;

span {
color: blue;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Sidebar/Songlist/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.item {
padding: 8px 20px;
overflow: hidden;
text-overflow:ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
cursor: default;
font-size: 0.9em;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Sidebar/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value constants: "~styles/constants.module.css";
@value constants: '~styles/constants.module.css';
@value sidebarWidth, headerHeight, footerHeight from constants;

.root {
Expand Down
5 changes: 3 additions & 2 deletions src/components/Layout/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value constants: "~styles/constants.module.css";
@value constants: '~styles/constants.module.css';
@value sidebarWidth, headerHeight, footerHeight from constants;

.middle {
Expand All @@ -11,8 +11,9 @@
.content {
/* 减去sidebar的宽度 */
width: calc(100% - sidebarWidth);

/* 减去header和footer的高度 */
height: calc(100% - headerHeight - footerHeight);
height: calc(100% - headerHeight - footerHeight);
margin-top: headerHeight;
margin-bottom: footerHeight;
overflow: scroll;
Expand Down
2 changes: 1 addition & 1 deletion src/components/MusicList/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, tipsHoverColor, red from colors;

.alias {
Expand Down
4 changes: 3 additions & 1 deletion src/components/Pagination/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red, tipsColor, nameColor, bgColor from colors;

.root {
Expand Down Expand Up @@ -33,6 +33,7 @@
border: 1px solid red;
background-color: red;
color: #fff;

&:hover {
background-color: red;
}
Expand All @@ -41,6 +42,7 @@
.disabled {
color: tipsColor;
cursor: default;

&:hover {
background-color: #fff;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/PlayIcon/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red from colors;

.root {
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProgressBar/style.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red from colors;

.root {
width: 100%;

&:hover {
.controllDot {
display: block;
Expand All @@ -24,7 +25,6 @@
height: 12px;
border-radius: 50%;
background-color: red;
position: relative;
z-index: 10;
display: none;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Songlists/SonglistItem/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value nameColor from colors;

.root {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsHoverColor, bgColor, tipsColor from colors;

.root {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tabs/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value nameColor, nameHoverColor, red, borderColor from colors;

.root {
Expand Down
2 changes: 1 addition & 1 deletion src/components/VipIcon/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red from colors;

.root {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Discovery/LatestMusic/Content/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value borderColor, tipsHoverColor, nameHoverColor from colors;

.item {
Expand Down
7 changes: 5 additions & 2 deletions src/pages/Discovery/LatestMusic/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value nameColor, nameHoverColor, red from colors;

.root {
Expand All @@ -16,6 +16,7 @@
background-color: #f33;
color: #fff;
cursor: pointer;

&:hover {
background-color: red;
}
Expand All @@ -29,12 +30,14 @@
margin-right: 25px;
color: nameColor;
cursor: default;

&:hover {
color: nameHoverColor;
}
}

.active, .active:hover {
.active,
.active:hover {
color: red;
}
}
2 changes: 1 addition & 1 deletion src/pages/Discovery/RecommendDaily/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red, borderColor, nameColor from colors;

.root {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value red from colors;

.root {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Discovery/Recommendation/Banner/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value tipsColor, red from colors;

.root {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value nameColor, tipsColor, tipsHoverColor, borderColor, red from colors;

.root {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value colors: "~styles/colors.module.css";
@value colors: '~styles/colors.module.css';
@value nameColor, tipsColor, nameHoverColor, tipsHoverColor from colors;

.root {
Expand Down
Loading

0 comments on commit 883628f

Please sign in to comment.