Skip to content

Commit

Permalink
button style (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
peteranny authored May 2, 2023
1 parent 4166104 commit 2bcf9c4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/common/PermissionBlock/LoginToUnlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const LoginToUnlock = ({ to, onAuthenticatedClick }) => {
<React.Fragment>
<LoginModal isOpen={isModalOpen} close={toggleModalOpen} />
<div className={styles.headingContainer}>
<Heading size="sl" Tag="h3">
<Heading size="sl" Tag="h3" center>
留下一筆資料,馬上{unlockedDescription}
</Heading>
</div>
Expand Down
20 changes: 17 additions & 3 deletions src/components/common/PermissionBlock/PermissionBlock.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@value link-blue from "common/variables.module.css";
@value above-small, below-small, link-blue from "common/variables.module.css";

.permissionBlock {
display: inline-block;
Expand Down Expand Up @@ -92,12 +92,26 @@
}

.authenticatedGroup {
@media (max-width: below-small) {
display: flex;
flex-direction: column;
align-items: center;
}

.button {
font-size: 1em;
font-weight: 700;

& + .button {
margin-left: 10px;
@media (min-width: above-small) {
& + .button {
margin-left: 10px;
}
}

@media (max-width: below-small) {
& + .button {
margin-top: 16px;
}
}
}
}
Expand Down

0 comments on commit 2bcf9c4

Please sign in to comment.