-
-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
88 additions
and
112 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
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
93 changes: 33 additions & 60 deletions
93
packages/ui/src/components/JobCard/Details/DetailsContent/JobLogs/JobLogs.module.css
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,106 +1,79 @@ | ||
.jobLogs { | ||
margin: 0 10px 0 0; | ||
color: #000; | ||
margin: 0; | ||
overflow: hidden; | ||
position: relative; | ||
border-radius: 4px; | ||
background: #fff; | ||
} | ||
|
||
.preWrapper { | ||
padding: 0 15px; | ||
padding-top: 20px; | ||
padding: 40px 1rem 1rem; | ||
max-height: 100%; | ||
overflow: auto; | ||
height: 330px; | ||
background: #FFF; | ||
} | ||
|
||
.preWrapper span { | ||
.preWrapper ol { | ||
display: block; | ||
white-space: pre-wrap; | ||
word-break: break-all; | ||
} | ||
|
||
.preWrapper span i { | ||
color: #999; | ||
font-style: normal; | ||
.preWrapper ol li::marker { | ||
color: #a0aec0; | ||
content: attr(data-line-number); | ||
} | ||
|
||
.preWrapper::-webkit-scrollbar { | ||
width: 0.35rem; | ||
width: 0.5rem; | ||
} | ||
|
||
.preWrapper::-webkit-scrollbar-track { | ||
padding: 2px; | ||
margin-top: 15px; | ||
background: rgba(255, 255, 255, 0.2); | ||
} | ||
|
||
.preWrapper::-webkit-scrollbar-thumb { | ||
background-color: #cbd5e0; | ||
border-radius: 4px; | ||
} | ||
|
||
.jobLogs:fullscreen .preWrapper { | ||
height: 100%; | ||
padding-top: 55px; | ||
padding-bottom: 10px; | ||
} | ||
|
||
.jobLogs:fullscreen .preWrapper::-webkit-scrollbar { | ||
width: 0.55rem; | ||
} | ||
|
||
.toolbar { | ||
position: absolute; | ||
top: -30px; | ||
right: 0px; | ||
width: 100%; | ||
background: rgba(255, 255, 255, 0.5); | ||
padding-bottom: 3px; | ||
text-align: right; | ||
z-index: 9; | ||
top: 0; | ||
left: 15px; | ||
right: 15px; | ||
background: rgba(255, 255, 255, 0.85); | ||
backdrop-filter: blur(4px); | ||
padding: 0 0 1rem; | ||
margin: 0; | ||
list-style: none; | ||
text-align: right; | ||
z-index: 1; | ||
display: flex; | ||
} | ||
|
||
.jobLogs:fullscreen .toolbar { | ||
position: fixed; | ||
top: 0; | ||
width: 100%; | ||
padding-bottom: 15px; | ||
.toolbar > li:first-child { | ||
flex: 1; | ||
} | ||
|
||
.toolbar form { | ||
display: inline-block ; | ||
.toolbar > li button { | ||
height: 100%; | ||
} | ||
|
||
.toolbar button { | ||
margin-left: 1rem; | ||
font-size: 1rem; | ||
padding: 0.65rem; | ||
.toolbar > li + li { | ||
margin-left: 0.5rem; | ||
} | ||
|
||
.toolbar form { | ||
flex: 1; | ||
text-align: left; | ||
} | ||
|
||
.toolbar .searchBar { | ||
padding: 5px 15px; | ||
border-radius: 4px; | ||
border-bottom-right-radius: 0; | ||
border: none; | ||
outline: none; | ||
width: 100%; | ||
box-shadow: none !important; | ||
border-bottom: 1px solid #e0e7eb; | ||
.jobLogs:fullscreen .toolbar { | ||
position: fixed; | ||
padding: 1rem 0; | ||
} | ||
|
||
.jobLogs:fullscreen .toolbar .searchBar { | ||
padding: 10px 15px; | ||
font-size: 1.25rem; | ||
.jobLogs:fullscreen .preWrapper { | ||
height: 100%; | ||
padding-top: 1rem !important; | ||
} | ||
|
||
.toolbar button svg { | ||
width: 0.6rem; | ||
height: 0.6rem; | ||
.toolbar .searchBar { | ||
width: 100%; | ||
} |
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