-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(refactor & style): code-block, code-text, copy-button
- Loading branch information
1 parent
23e8eb9
commit dfb870d
Showing
3 changed files
with
39 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,14 @@ | ||
.code_block { | ||
display: flex; | ||
justify-content: space-between; | ||
position: relative; | ||
padding: 10px; | ||
font-size: 15px; | ||
word-wrap: break-word; | ||
white-space: pre-wrap; | ||
background: #020617; | ||
overflow: auto; | ||
line-height: 1.6; | ||
border: 1px solid #10b981; | ||
border-left: 2px solid #b91c1c; | ||
border: 2px solid #10b981; | ||
border-left: 3px solid #3b82f6; | ||
color: #564; | ||
min-width: 200px; | ||
width: 800px; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.copy_block { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
} | ||
|
||
.copy_button { | ||
position: relative; | ||
cursor: pointer; | ||
color: #fff; | ||
background: gray; | ||
border-radius: 0.5em; | ||
padding: 2px 7px; | ||
margin: 10px; | ||
} | ||
|
||
.copied_text { | ||
background: #fff; | ||
padding: 5px; | ||
color: #161b22; | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters