Skip to content

Commit

Permalink
fix: use px instead of rem
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Aug 15, 2021
1 parent a1c107e commit 19464a4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
31 changes: 15 additions & 16 deletions projects/ngx-editor/src/lib/editor.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$menubar-height: 1.85rem;
$icon-size: 1.85rem;
$menubar-height: 30px;
$icon-size: 30px;

$border-radius: 4px;

Expand All @@ -17,8 +17,8 @@ $menu-item-active-color: $primary;
$dropdown-menu-hover-bg-color: $light-gray;
$dropdown-item-active-bg-color: $light-gray;

$menubar-padding: 0.2rem;
$menu-item-spacing: 0.3rem;
$menubar-padding: 3px;
$menu-item-spacing: 5px;
$menubar-text-padding: 0 $menu-item-spacing;

.NgxEditor {
Expand Down Expand Up @@ -53,19 +53,18 @@ $menubar-text-padding: 0 $menu-item-spacing;
}

.NgxEditor__Content {
padding: 0.5rem;
padding: 8px;
white-space: pre-wrap;
outline: none;
font-variant-ligatures: none;
font-feature-settings: "liga" 0;

p {
margin: 0;
margin-bottom: 0.7rem;
margin: 0 0 10px;
}

blockquote {
padding-left: 1rem;
padding-left: 16px;
border-left: 3px solid #ddd;
margin-left: 0;
margin-right: 0;
Expand Down Expand Up @@ -149,7 +148,7 @@ $menubar-text-padding: 0 $menu-item-spacing;
}

.NgxEditor__Dropdown {
min-width: 4rem;
min-width: 64px;
position: relative;
display: flex;
align-items: center;
Expand All @@ -170,12 +169,12 @@ $menubar-text-padding: 0 $menu-item-spacing;
&::after {
display: inline-block;
content: "";
margin-left: 1.5rem;
vertical-align: 0.25rem;
border-top: 0.25rem solid;
border-right: 0.25rem solid transparent;
margin-left: 24px;
vertical-align: 4px;
border-top: 4px solid;
border-right: 4px solid transparent;
border-bottom: 0;
border-left: 0.25rem solid transparent;
border-left: 4px solid transparent;
}
}

Expand All @@ -191,7 +190,7 @@ $menubar-text-padding: 0 $menu-item-spacing;
}

.NgxEditor__Dropdown--Item {
padding: 0.5rem;
padding: 8px;
white-space: nowrap;
color: inherit;

Expand Down Expand Up @@ -244,7 +243,7 @@ $menubar-text-padding: 0 $menu-item-spacing;
border-radius: $border-radius;
background-color: white;
z-index: 10;
min-width: 12rem;
min-width: 192px;
padding: 8px;

.NgxEditor__Popup--FormGroup {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
display: flex;
background-color: #000;
color: white;
padding: 0.3rem;
padding: 5px;
border-radius: 4px;
}

.NgxBubbleMenu__Icon {
height: 1.8rem;
width: 1.8rem;
height: 30px;
width: 30px;
transition: 0.3s ease-in-out;
border-radius: 2px;
display: flex;
Expand All @@ -30,12 +30,12 @@
}

+ .NgxBubbleMenu__Icon {
margin-left: 0.3rem;
margin-left: 5px;
}

&.NgxBubbleMenu__Icon--Active {
background-color: white;

svg {
fill: black;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:host {
position: absolute;
z-index: 20;
margin-bottom: 0.35rem;
margin-bottom: 5px;
visibility: hidden;
opacity: 0;
}

0 comments on commit 19464a4

Please sign in to comment.