aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/topbar
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2025-03-11 17:43:05 +0100
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2025-03-11 17:43:05 +0100
commitfa937182bc93aa2c6faadda80ea998cdfd479b4e (patch)
treecba8e16edcccc6fd2932173484ac444cb79abea2 /src/client/views/topbar
parentcf91c46cfec6e3e36b9184764016f9c1b5c997d4 (diff)
parent04669ffeb163688c7aefd7b5face7998252abdca (diff)
Merge branch 'master' of https://github.com/brown-dash/Dash-Web into DocCreatorMenu-work
Diffstat (limited to 'src/client/views/topbar')
-rw-r--r--src/client/views/topbar/TopBar.scss29
-rw-r--r--src/client/views/topbar/TopBar.tsx2
2 files changed, 16 insertions, 15 deletions
diff --git a/src/client/views/topbar/TopBar.scss b/src/client/views/topbar/TopBar.scss
index 20245104e..35a3da312 100644
--- a/src/client/views/topbar/TopBar.scss
+++ b/src/client/views/topbar/TopBar.scss
@@ -1,4 +1,5 @@
-@import '../global/globalCssVariables.module.scss';
+@use 'sass:color';
+@use '../global/globalCssVariables.module.scss' as global;
.topbar-container {
flex-direction: column;
@@ -6,13 +7,13 @@
line-height: 1;
overflow-y: auto;
overflow-x: visible;
- background: $dark-gray;
+ background: global.$dark-gray;
overflow: visible;
z-index: 1000;
align-items: center;
- height: $topbar-height;
- background-color: $dark-gray;
- border-bottom: $standard-border;
+ height: global.$topbar-height;
+ background-color: global.$dark-gray;
+ border-bottom: global.$standard-border;
padding: 0px 10px;
cursor: default;
display: flex;
@@ -34,7 +35,7 @@
}
.topbar-button-text {
- color: $white;
+ color: global.$white;
padding: 10px;
size: 15;
@@ -54,16 +55,16 @@
align-self: center;
padding: 5px;
transition: linear 0.2s;
- color: $white;
+ color: global.$white;
&:hover {
- background-color: darken($color: $light-gray, $amount: 20);
+ background-color: color.adjust(global.$light-gray, $lightness: -20%);
font-weight: 500;
}
}
.topbar-title {
- color: $white;
+ color: global.$white;
font-size: 17;
font-weight: 500;
}
@@ -119,7 +120,7 @@
}
.topBar-icon:hover {
- background-color: $close-red;
+ background-color: global.$close-red;
}
.topbar-lozenge-user,
@@ -180,7 +181,7 @@
&.topbar-input {
margin: 5px;
border-radius: 20px;
- border: $dark-gray;
+ border: global.$dark-gray;
display: block;
width: 130px;
-webkit-transition: width 0.4s;
@@ -212,8 +213,8 @@
}
&.topbar-close {
- color: $white;
- max-height: $topbar-height;
+ color: global.$white;
+ max-height: global.$topbar-height;
}
}
}
@@ -229,7 +230,7 @@
.no-result {
width: 500px;
- background: $light-gray;
+ background: global.$light-gray;
padding: 10px;
height: 50px;
text-transform: uppercase;
diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx
index a85606bc4..00114a3f9 100644
--- a/src/client/views/topbar/TopBar.tsx
+++ b/src/client/views/topbar/TopBar.tsx
@@ -1,5 +1,5 @@
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
-import { Button, IconButton, isDark, Size, Type } from 'browndash-components';
+import { Button, IconButton, isDark, Size, Type } from '@dash/components';
import { action, computed, makeObservable, observable, reaction } from 'mobx';
import { observer } from 'mobx-react';
import * as React from 'react';