Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust HTML styles for small screens #67

Open
wants to merge 2 commits into
base: 4.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/public/error_stack/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ html.dark {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 16px;
padding: calc(2vw + 7px);
border-radius: var(--radius) var(--radius) 0 0;
}

Expand Down Expand Up @@ -61,17 +61,22 @@ html.dark {
.stack-frame-contents {
background: var(--frame-bg);
display: flex;
padding: 0 12px;
padding: 0 calc(1vw + 3px);
align-items: center;
justify-content: space-between;
}

.stack-frame:not(.stack-frame-native) .stack-frame-contents:hover {
background: var(--card-bg);
}
.stack-frame:last-child:not(.expanded) .stack-frame-contents {
border-radius: 0 0 var(--radius) var(--radius);
}

.stack-frame-filepath {
max-width: 100%;
}

.stack-frame-location {
display: flex;
flex-direction: column;
Expand All @@ -83,6 +88,7 @@ html.dark {
color: inherit;
font: inherit;
padding: 9px 0;
align-items:start;
}

.stack-frame-location a {
Expand Down Expand Up @@ -194,6 +200,14 @@ html.dark {
}

@media (min-width: 768px) {
.stack-frame-contents {
padding: 0 12px;
}

#stack-frames-header {
padding: 10px 16px;
}

.stack-frame-location {
flex-direction: row;
}
Expand Down
3 changes: 2 additions & 1 deletion src/public/error_stack_source/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ html.dark {
font-size: 12px;
font-family: var(--font-mono);
position: relative;
padding: 10px 12px 12px 12px;
padding: calc(2vw + 4px) calc(2vw + 6px) calc(2vw + 4px) calc(2vw + 6px);
}
[class*='shj-lang-'] * {
-webkit-font-smoothing: initial;
Expand Down Expand Up @@ -118,5 +118,6 @@ html.dark {
@media (min-width: 768px) {
[class*='shj-lang-'] {
border-top: none;
padding: 10px 12px 12px 12px;
}
}
3 changes: 2 additions & 1 deletion src/public/header/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#toggle-theme-container {
position: relative;
display: inline-block;
padding-right: 10px;
padding-right: 0px;
}

#toggle-theme-container input[type='checkbox'] {
Expand Down Expand Up @@ -50,6 +50,7 @@
#light-theme-indicator {
display: none;
}

#toggle-theme-container input[type='checkbox']:checked + #toggle-theme-label #dark-theme-indicator {
display: flex;
}
23 changes: 20 additions & 3 deletions src/public/layout/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ input[type='checkbox']:disabled + span {
}
.dumper-dump pre {
font-size: 13px;
padding: calc(0.5vw + 8px);
}
.dumper-dump .dumper-toggle span {
font-size: 12px;
Expand All @@ -336,14 +337,14 @@ input[type='checkbox']:disabled + span {
display: flex;
flex-direction: column;
gap: 24px;
padding: 40px;
padding: calc(1vw + 15px);
}

.card {
background: var(--card-bg);
box-shadow: var(--card-shadow);
border-radius: var(--radius);
padding: 22px 30px;
padding: calc(2vw + 7px);
display: flex;
flex-direction: column;
gap: 12px;
Expand Down Expand Up @@ -387,7 +388,7 @@ input[type='checkbox']:disabled + span {

.card-table td {
border-bottom: 1px solid var(--border);
padding: 6px 12px;
padding: calc(0.8vw + 4px) calc(0.8vw + 8px);
word-wrap: break-word;
}

Expand All @@ -402,9 +403,25 @@ input[type='checkbox']:disabled + span {
}

@media (min-width: 768px) {
#layout {
padding: 40px;
}

.card {
padding: 22px 30px;
}

.card-table td {
padding: 6px 12px;
}

.card-table td.table-key {
width: 180px;
}

.dumper-dump pre {
padding: 10px 15px;
}
}

@media (min-width: 1024px) {
Expand Down