Skip to content

Commit

Permalink
新增 disabled button
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaochaos committed May 2, 2020
1 parent 974b5cf commit becc2eb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
25 changes: 17 additions & 8 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion src/components/Qrcode.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ table {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
background: white;
font-family: 'Futura', sans-serif;
color: rgba(0,0,0,0.6);
}

@media (min-width: 500px) {
Expand All @@ -283,6 +282,15 @@ table {
}
}

.dl-btn:disabled {
cursor: not-allowed;
}

.dl-btn:disabled:hover {
border-color: rgba(0,0,0,0.12);
color: graytext;
}

.dl-btn:hover {
border-color: #44D7B6;
color: #44D7B6;
Expand Down Expand Up @@ -323,3 +331,4 @@ a {
a:hover {
text-decoration: underline;
}

2 changes: 1 addition & 1 deletion src/components/Qrcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Qrcode extends React.Component {
</div>
<div className="Qr-Centered">
<div className="div-btn">
<button className="dl-btn">提交样式</button>
<button disabled className="dl-btn">提交样式</button>
</div>
</div>
</div>
Expand Down

0 comments on commit becc2eb

Please sign in to comment.