Skip to content

Commit

Permalink
clean up overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
nikk15 committed Jul 24, 2023
1 parent 64d574f commit 3da53de
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 30 deletions.
6 changes: 3 additions & 3 deletions src/react-components/layout/List.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
width: 100%;

&:hover {
background-color: theme.$list-bg-color-hover;
background-color: theme.$basic-color-hover;
}

&:active {
background-color: theme.$list-bg-color-pressed;
background-color: theme.$basic-color-pressed;
}

:global(body.keyboard-user) &:focus {
Expand All @@ -47,7 +47,7 @@
&:hover {
background-color: theme.$active-color-hover;
}

&:active {
background-color: theme.$active-color-pressed;
}
Expand Down
6 changes: 2 additions & 4 deletions src/react-components/popover/ImageGridPopover.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@use "../styles/theme.scss";


:local(.image-grid-popover) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
Expand All @@ -19,12 +18,11 @@
min-height: 56px;

&:hover {
background-color: theme.$list-bg-color-hover;
background-color: theme.$basic-color-hover;
}

&:active {
background-color: theme.$list-bg-color-pressed;
background-color: theme.$basic-color-pressed;
}
}
}

19 changes: 10 additions & 9 deletions src/react-components/room/ObjectMenu.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@use "../styles/theme.scss";

:local(.back-button), :local(.lights-button) {
:local(.back-button),
:local(.lights-button) {
position: absolute;
top: 16px;
pointer-events: auto;
Expand All @@ -9,7 +10,7 @@
color: theme.$overlay-text-color;
}

@media(min-width: theme.$breakpoint-lg) and (min-height: theme.$breakpoint-vr) {
@media (min-width: theme.$breakpoint-lg) and (min-height: theme.$breakpoint-vr) {
display: none;
}
}
Expand Down Expand Up @@ -51,7 +52,7 @@
align-items: center;
justify-content: center;

@media(min-width: theme.$breakpoint-lg) and (min-height: theme.$breakpoint-vr) {
@media (min-width: theme.$breakpoint-lg) and (min-height: theme.$breakpoint-vr) {
display: flex;
}
}
Expand All @@ -66,12 +67,11 @@
right: 16px;
}


:local(.menu) {
display: flex;
padding: 16px;

@media(min-width: theme.$breakpoint-lg) and (min-height: theme.$breakpoint-vr) {
@media (min-width: theme.$breakpoint-lg) and (min-height: theme.$breakpoint-vr) {
padding-top: 0;
}
}
Expand Down Expand Up @@ -100,13 +100,14 @@
color: theme.$overlay-text-color;
}

@media(min-width: theme.$breakpoint-lg) and (min-height: theme.$breakpoint-vr) {
@media (min-width: theme.$breakpoint-lg) and (min-height: theme.$breakpoint-vr) {
display: none;
}
}

:global(.keyboard-user) {
:local(.back-button):focus, :local(.object-menu-container) :focus {
box-shadow: 0 0 0 3px theme.$overlay-outline-color;
:global(.keyboard-user) {
:local(.back-button):focus,
:local(.object-menu-container) :focus {
box-shadow: 0 0 0 3px theme.$white;
}
}
2 changes: 1 addition & 1 deletion src/react-components/room/PeopleSidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

:local(.moderator-icon) {
color: theme.$admin-color;
color: theme.$accent1-color;
}

:local(.presence) {
Expand Down
6 changes: 0 additions & 6 deletions src/react-components/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@
--input-border-color-hover: var(--primary-color-hover);
--input-outline-color: var(--primary-color);

--list-bg-color-hover: var(--basic-color-hover);
--list-bg-color-pressed: var(--basic-color-pressed);

--dropdown-bg-color: var(--background1-color);
--dropdown-border-color: var(--border1-color);
--dropdown-shadow-color: var(--shadow-color);
Expand All @@ -139,16 +136,13 @@

--favorite-color: #{theme.$yellow};

--admin-color: var(--accent1-color);

--error-color: var(--cancel-color);
--error-color-hover: var(--cancel-color-hover);
--error-color-pressed: var(--cancel-color-pressed);

--overlay-bg-color: rgba(0, 0, 0, 0.5);
--overlay-text-color: #{theme.$white};
--overlay-border-color: #{theme.$grey};
--overlay-outline-color: #{theme.$white};

--toolbar-icon-color: var(--text5-color);
--toolbar-icon-selected-bg: var(--transparent);
Expand Down
6 changes: 0 additions & 6 deletions src/react-components/styles/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ $input-border-color: var(--input-border-color);
$input-border-color-hover: var(--input-border-color-hover);
$input-outline-color: var(--input-outline-color);

$list-bg-color-hover: var(--list-bg-color-hover);
$list-bg-color-pressed: var(--list-bg-color-pressed);

$dropdown-bg-color: var(--dropdown-bg-color);
$dropdown-border-color: var(--dropdown-border-color);
$dropdown-shadow-color: var(--dropdown-shadow-color);
Expand All @@ -225,16 +222,13 @@ $chat-bubble-bg-color-received: var(--chat-bubble-bg-color-received);

$favorite-color: var(--favorite-color);

$admin-color: var(--admin-color);

$error-color: var(--error-color);
$error-color-hover: var(--error-color-hover);
$error-color-pressed: var(--error-color-pressed);

$overlay-bg-color: var(--overlay-bg-color);
$overlay-text-color: var(--overlay-text-color);
$overlay-border-color: var(--overlay-border-color);
$overlay-outline-color: var(--overlay-outline-color);

$toolbar-icon-color: var(--toolbar-icon-color);
$toolbar-icon-selected-bg: var(--toolbar-icon-selected-bg);
Expand Down
1 change: 0 additions & 1 deletion themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"accent5-border-color": "#13a4ed",
"accent5-color-hover": "#5D646C",
"accent5-color-pressed": "#21242C",
"admin-color": "#13a4ed",
"text1-color": "#ffffff",
"text1-color-hover": "#E7E7E7",
"text1-color-pressed": "#DBDBDB",
Expand Down

0 comments on commit 3da53de

Please sign in to comment.