Skip to content

Commit

Permalink
[#69804] replace rem with px in css
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin authored and mgielda committed Dec 12, 2024
1 parent 8c86421 commit f48f267
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
7 changes: 3 additions & 4 deletions src/components/CodeMirror.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ import { customHighlighter } from "../extensions/customHighlights";
import { AddSuggestionBtn, suggestionCompartment } from "../extensions/suggestions";
import editIcon from "../icons/edit.svg";
import { MystState } from "../mystState";

const CodeEditor = styled.div`
border-radius: var(--border-radius);
background: var(--gray-200);
font-family: monospace;
font-size: 0.875rem;
font-size: 14px;
resize: none;
border: 0;
padding: 20px;
Expand Down Expand Up @@ -65,8 +64,8 @@ const CodeEditor = styled.div`
}
.cm-ySelectionInfo {
font-size: 0.6rem;
padding: 0.25rem 0.5rem !important;
font-size: 10px;
padding: 4px 8px !important;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
Expand Down
8 changes: 4 additions & 4 deletions src/components/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ const Preview = styled.div`
&.admonition {
border: var(--border-2) solid var(--green-500);
margin-bottom: 1rem;
margin-bottom: 16px;
.admonition {
margin: 0rem 1.4rem 0.9rem 1.4rem;
margin: 0 22px 14px 22px;
}
& > header,
Expand All @@ -140,7 +140,7 @@ const Preview = styled.div`
&[class="admonition"] {
.admonition {
margin-top: 0.9rem;
margin-top: 14px;
}
}
Expand Down Expand Up @@ -278,7 +278,7 @@ const Preview = styled.div`
border-left: 5px solid var(--green-500);
margin-left: 0;
margin-top: 0;
padding-left: 0.75rem;
padding-left: 12px;
}
table {
Expand Down
14 changes: 7 additions & 7 deletions src/myst-git/MystEditorGit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const GitSidebar = styled.div`
label {
display: block;
color: white;
margin-top: 1rem;
margin-bottom: 0.5rem;
margin-top: 24px;
margin-bottom: 12px;
font-weight: 600;
font-size: 14px;
}
Expand All @@ -43,16 +43,16 @@ const ChangeHistory = styled.div`
width: 100%;
p:first-child {
margin-top: 1rem;
margin-bottom: 0.5rem;
margin-top: 24px;
margin-bottom: 12px;
font-weight: 600;
font-size: 14px;
}
.history-wrapper {
display: flex;
flex-direction: column;
gap: 1rem;
gap: 24px;
overflow-y: auto;
scrollbar-width: thin;
}
Expand All @@ -65,10 +65,10 @@ const ChangeHistory = styled.div`
font-weight: 600;
display: flex;
text-align: left;
padding: 0.25rem;
padding: 6px;
border-radius: var(--border-radius);
flex-direction: column;
gap: 0.5rem;
gap: 12px;
&:hover {
background: var(--icon-selected);
Expand Down
6 changes: 3 additions & 3 deletions src/myst-git/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ const OptionList = styled.ul`
padding: 0;
width: 100%;
margin: 0;
margin-top: 0.5rem;
max-height: 10rem;
margin-top: 12px;
max-height: 240px;
overflow-y: auto;
scrollbar-width: thin;
overscroll-behavior: contain;
Expand All @@ -91,7 +91,7 @@ const OptionList = styled.ul`
width: 100%;
cursor: pointer;
border-radius: var(--border-radius);
height: 2rem;
height: 48px;
padding: 0 5px;
display: flex;
align-items: center;
Expand Down

0 comments on commit f48f267

Please sign in to comment.