diff --git a/.agents/skills/servicepulse-ui/SKILL.md b/.agents/skills/servicepulse-ui/SKILL.md index ef99e8c718..350d445346 100644 --- a/.agents/skills/servicepulse-ui/SKILL.md +++ b/.agents/skills/servicepulse-ui/SKILL.md @@ -31,7 +31,7 @@ The guideline sets which views and widths to check. When a `docs/` page of the a 4. Keep the mock instance of the change running while you ask the person who asked for the change to accept a difference. 5. Give them a link to the view in that instance, with the mock scenario, the width to set, and any step needed to reach the state, such as a tab to open. -For a change to the shell or to shared styles, cover at least Dashboard, Failed Messages with a message's details, Monitoring with an endpoint's details, All Messages (`audit-available` scenario), Platform health, and Configuration. No mock scenario serves message details or conversations, so check a message's sequence diagram against a running ServiceControl with audit data. +For a change to the shell or to shared styles, cover at least Dashboard, Failed Messages with a message's details, Monitoring with an endpoint's details, All Messages with a message's sequence diagram (`audit-available` scenario), Platform health, and Configuration. [Navigation shell](../../../docs/frontend/navigation-shell.md) lists the widths for the shell. ## Check before opening a pull request diff --git a/.gitignore b/.gitignore index 0d51833f09..5e3ca974d8 100644 --- a/.gitignore +++ b/.gitignore @@ -114,3 +114,5 @@ src/scaffolding.config .claude/skills/impeccable/ .claude/agents/impeccable-*.md .claude/settings.local.json +# Impeccable: regenerable cache of docs/DESIGN.md; docs/DESIGN.md is the source +.impeccable/design.json diff --git a/docs/DESIGN.md b/docs/DESIGN.md new file mode 100644 index 0000000000..2bfb00ff6d --- /dev/null +++ b/docs/DESIGN.md @@ -0,0 +1,191 @@ +--- +name: ServicePulse +description: Operations console for NServiceBus systems. Problems first, calm otherwise. +colors: + brand: "#00a3c4" + canvas: "#f2f6f7" + surface: "#ffffff" + danger: "#ce4844" + trial: "#b22222" + healthy: "#00c468" + chrome: "#1a1a1a" + chrome-ink: "#b5b5b5" + chrome-ink-active: "#ffffff" + chrome-hover: "#2b2b2b" + chrome-divider: "#333333" + chrome-strip: "#0d0d0d" + chrome-strip-ink: "#a6a6a6" +typography: + body: + fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif" + fontSize: "14px" + fontWeight: 400 + lineHeight: 1.43 + page-title: + fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif" + fontSize: "30px" + fontWeight: 700 + version-strip: + fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif" + fontSize: "11px" + fontWeight: 400 +rounded: + sm: "4px" +spacing: + side-bar: "224px" + side-bar-collapsed: "64px" +components: + side-bar: + backgroundColor: "{colors.chrome}" + textColor: "{colors.chrome-ink}" + width: "{spacing.side-bar}" + side-bar-item: + textColor: "{colors.chrome-ink}" + typography: "{typography.body}" + padding: "8px 20px" + height: "40px" + side-bar-item-hover: + backgroundColor: "{colors.chrome-hover}" + textColor: "{colors.chrome-ink-active}" + side-bar-item-active: + backgroundColor: "{colors.chrome-hover}" + textColor: "{colors.chrome-ink-active}" + count-badge: + backgroundColor: "{colors.danger}" + textColor: "{colors.surface}" + version-strip: + backgroundColor: "{colors.chrome-strip}" + textColor: "{colors.chrome-strip-ink}" + typography: "{typography.version-strip}" + height: "28px" + trial-license-bar: + backgroundColor: "{colors.trial}" + textColor: "{colors.surface}" + padding: "6px 16px" +--- + +# Design System: ServicePulse + +This document describes the visual rules of ServicePulse. The values above are mirrored as `--sp-*` CSS custom properties on `:root` in `src/Frontend/src/assets/main.css`, for example `colors.chrome` as `--sp-chrome` and `colors.brand` as `--sp-blue`. Change a value in both places in the same pull request. [Navigation shell](frontend/navigation-shell.md) describes how the shell behaves at each width. + +## Overview + +ServicePulse is an operations console. People open it mostly when something is wrong in production, or while developing to understand how their system behaves ([product](PRODUCT.md)). The design follows from that: + +- Problems first. What is broken and needs action is visible before anything else: counts and warnings sit next to the area they belong to, in the navigation itself. +- Calm when healthy. A healthy system shows no decoration: no "all good" banners, no colour without meaning. +- The existing look is kept. Dark application chrome, a light canvas for content, the teal brand mark. Changes improve structure, legibility, and accessibility rather than restyle. + +**Key characteristics:** + +- A dark left side bar holds all navigation; content sits on a light canvas. +- Colour carries state (danger, warning, trial, healthy) or the current location, never decoration. +- One typeface family, sized for dense, scannable lists. + +## Colors + +A restrained palette: neutral chrome and canvas, the brand teal, and state colours. + +### Primary + +- **Brand teal**: the ServicePulse mark, the bar that marks the current area in the side bar, and the "Updates available" icon in the version strip. + +### Neutral + +- **Chrome**: side bar background. **Chrome ink** is item text on it (8.5:1). +- **Chrome hover**: background for hovered items and the current area, with **chrome ink active** text (14.2:1). +- **Chrome divider**: separates the bottom section of the side bar. +- **Chrome strip** and **chrome strip ink**: the version strip at the bottom of the side bar (8.0:1). +- **Canvas**: page background behind content. **Surface**: panels and lists. + +### State + +- **Danger**: count badges for things that need action, such as failed messages, failing custom checks, and unhealthy heartbeats (white text at 4.5:1). +- **Trial**: the trial license bar (white text at 6.7:1). +- **Healthy**: the "platform up to date" icon in the version strip (8.4:1). + +**The Meaning Rule.** A colour other than the neutrals always means a state or the current location. Status is never shown by colour alone: a count, a word, or an icon carries it too. + +**The Contrast Rule.** Text meets WCAG 2.2 AA: 4.5:1 for normal text, 3:1 for large text and for icons that carry meaning. + +## Typography + +**Body font:** Helvetica Neue (with Helvetica, Arial, sans-serif). + +**Character:** neutral and compact; the content (endpoint names, exception types, counts) is the voice. + +- **Body:** 14px, line height 1.43. Side bar items use it too. +- **Page title:** 30px bold. +- **Version strip:** 11px. + +## Layout + +Desktop is the main target ([product](PRODUCT.md)), and desktop screens are wider than they are tall, so horizontal space is cheap and vertical space is scarce. + +**The Vertical Space Rule.** Vertical space belongs to content. Persistent shell elements sit at the side: navigation is a left side bar, there is no top navigation bar, and a footer appears only when there is license information to show, under the content column and never under the side bar. + +- **Side bar:** 224px wide, collapsible to a 64px icon rail. Between 768px and 1279px it is always a rail and expands over the content instead of pushing it. Below 768px it is a drawer that a menu button opens. +- **Content:** fills the remaining width and scrolls on its own; the side bar stays in place. Views keep a 930px minimum width and scroll horizontally below it. +- **View margins:** most views wrap their content in a container 92% of the content width, centred. + +## Elevation & Depth + +Flat. Regions are separated by colour (dark chrome against a light canvas) and by 1px dividers. The one shadow is on the side bar while it overlays content on medium screens (`box-shadow: 4px 0 16px rgb(0 0 0 / 30%)`), so it reads as above the page. + +## Motion + +Only the side bar moves in the shell. When it resizes between the rail and full width, each part that changes place, such as the logo, the collapse button, the items, and the count badges, travels to its new position. On phones the side bar slides in as a drawer. Both take 300ms on a standard ease-in-out curve, set by `--sp-motion-duration` and `--sp-motion-ease` in `main.css`, and new shell animations use the same two tokens. When the user prefers reduced motion, the side bar changes at once. + +## Shapes + +Square side bar items. Small 4px rounding on icon buttons in the side bar, such as the collapse button and the update status icon. Count badges are pills. + +## Components + +### Side bar + +The single place for navigation. From top to bottom: + +1. The ServicePulse logo, linking to the dashboard, and the collapse button. +2. The areas: Dashboard, Heartbeats, Monitoring, All Messages, Failed Messages, Custom Checks, Events, Platform health, Usage, and Configuration. +3. A bottom section, separated by a divider: the signed-in user when authentication is enabled, Feedback, and the version strip. + +Areas the user may not use, or capabilities that are not configured, are not shown. + +### Side bar item + +Icon (16px) and label in one row, at least 40px high. States: default (chrome ink), hover (chrome hover background, white text), current area (chrome hover background, white text, and a 4px brand teal bar on the left edge), keyboard focus (2px white outline). Labels are always present for assistive technology; in the rail they are visually hidden, not removed, and show as a tooltip on hover and keyboard focus. + +### Count badge and warning mark + +A danger pill with a number sits at the end of an item when that area has something needing action. A warning triangle marks degraded or misconfigured areas, such as Platform health, Configuration, and Usage. In the rail both move to the icon's top right corner. + +### Version strip + +One line at the very bottom of the side bar: the ServicePulse version, the hosting mode (Integrated or Standalone), and an update status icon. The icon is brand teal and links to Platform health when any platform component has an update, and healthy green otherwise; a tooltip and hidden text name the status. In the rail only the icon shows. + +### Footer + +Carries license information only: for a valid trial license, a trial bar reading " license, non-production use only" that links to the license page. With any other license there is no footer. + +## Do's and Don'ts + +### Do: + +- **Do** put a count or warning next to the navigation item it belongs to. +- **Do** keep a text label on every navigation item, also for screen readers when it is visually hidden. +- **Do** use the `--sp-*` tokens in `main.css` for colours, sizes, rounding, and motion in new shell styles. +- **Do** name components by role, such as "side bar item" or "count badge", not by a library's class names. +- **Do** build views from the shared components in `src/Frontend/src/components`, as the [UI guideline](guidelines/ui.md) requires. + +### Don't: + +- **Don't** add a top navigation bar or a permanent footer; they take vertical space from content. +- **Don't** use brand teal for text on the canvas or on white: it reaches only 2.7:1 and 3.0:1 there. +- **Don't** show healthy status as decoration. + +### Known gaps + +- **Brand teal on light backgrounds.** Links, tabs, and primary buttons inside pages use brand teal on white or canvas, which fails AA for text. It needs a darker interactive teal. +- **Page content on small screens.** Views keep a 930px minimum width, so phones and narrow tablets scroll horizontally. `docs/PRODUCT.md` requires every task to be usable there. +- **Bootstrap theming.** Count badges, the user menu, and page-level buttons and tabs still get part of their look from Bootstrap classes, which the tokens do not reach. The user menu also relies on Bootstrap's dropdown behavior until Bootstrap is removed. diff --git a/docs/README.md b/docs/README.md index d95cee697a..9573e439bd 100644 --- a/docs/README.md +++ b/docs/README.md @@ -23,9 +23,11 @@ ServicePulse is the web operations console of the Particular Service Platform. I ## Architecture and design - [Product](PRODUCT.md) — who ServicePulse is for, the situations it is used in, and what it must do +- [Design](DESIGN.md) — the visual rules and tokens that UI changes follow - [Platform topology](platform-topology.md) — how ServicePulse models ServiceControl instances and which ones it calls directly - [Platform health page](frontend/platform-health-page.md) — how Platform health derives its rows and severity - [Custom checks page](frontend/custom-checks-page.md) — how internal platform custom checks relate to other views +- [Navigation shell](frontend/navigation-shell.md) — how the side bar and footer behave at each width, and why views keep a 930px content width ## Guidelines diff --git a/docs/frontend/navigation-shell.md b/docs/frontend/navigation-shell.md new file mode 100644 index 0000000000..9af3131949 --- /dev/null +++ b/docs/frontend/navigation-shell.md @@ -0,0 +1,60 @@ +# Navigation shell + +The shell is the part of ServicePulse that every page shares: the navigation side bar, the content area, and the trial license footer. `App.vue` lays them out; the side bar is `NavigationSideBar.vue`. + +## Layout by width + +| Viewport width | Side bar | Content | +|---|---|---| +| Below 768px | Hidden. A top bar with a menu button opens it as a drawer over the content. | Full width | +| 768px to 1279px | Always a 64px icon rail. Expanding it overlays the content and does not move it. | Viewport width minus 64px | +| 1280px and wider | Expanded (224px) by default. The user can collapse it to the rail. | Viewport width minus the side bar | + +On wide screens the browser remembers the collapsed choice in `localStorage` under `servicepulse.sideBarCollapsed` (`useSideBarCollapsed.ts`). On medium screens the overlay closes on navigation, Escape, or a click outside it, and the stored choice does not apply. + +Expanding and collapsing the side bar on medium and wide screens runs as a view transition (`morphSideBar` in `NavigationSideBar.vue`). The side bar and the content area resize and slide together. The logo, the collapse button, the item list, the bottom section, the update status icon, and each count badge and warning mark have their own view transition name, so each one moves from its old box to its new one. The moving edge clips the labels and the wordmark, and the collapse button's chevron rotates. The phone drawer slides with a CSS transition. Closing the overlay by navigating skips the animation, as does every change when the user prefers reduced motion. + +## Content width + +Views size themselves with viewport media queries and expect at least 930px of content. `#main-content` keeps a 930px minimum width for its view, so narrower content scrolls horizontally instead of breaking the view layout. This is why the side bar stays a rail between 768px and 1279px: an expanded side bar there takes 224px from views that have no room for it. Phones get horizontal scrolling for the same reason; making views work below 930px is separate work. + +## Items + +The side bar lists the areas in the order of `menuItems` in `NavigationSideBar.vue`. Each item renders only when `useAllowedRoutes` reports that the user may call its ServiceControl route, and no item renders until permissions are known. + +Each item is a menu item component, such as `FailedMessagesMenuItem.vue`, that renders a link with an icon, a `.side-bar-label`, and an optional status indicator: a count badge or an exclamation mark. When the side bar is a rail, the label stays in the DOM but is visually hidden, so it remains the link's accessible name, and a tooltip shows it on hover and keyboard focus. Badges stay visible on the rail. + +## Bottom section + +Below the area links, from top to bottom: + +- the user menu, when authentication is enabled; +- Feedback, a link to new GitHub issues; +- the version strip (`PlatformVersionInfo.vue`): the ServicePulse version, the hosting mode, and the platform update status. + +The hosting mode is "Integrated" when `window.defaultConfig.isIntegrated` is set and "Standalone" otherwise; the frontend does not know the host type. The update status links to Platform health when any Platform health row has an upgrade available, including while an instance is degraded or unavailable. The Platform health menu item shows updates only when there is no other issue; see [Platform health page](platform-health-page.md). + +## Footer + +`PageFooter.vue` renders only for a valid trial license and states that it is for non-production use. It is hidden for the MassTransit connector and when the license is unavailable. It sits below the content area and does not cover content. + +## Stacking + +`.app-main` in `App.vue` sets `isolation: isolate`, so the content area is its own stacking context. A z-index inside a view orders elements only within the content area and cannot lift them above the side bar. The top bar, the drawer backdrop, and the side bar each set `z-index: 1` to sit above the content area. Among those three, DOM order puts the drawer above the backdrop and the backdrop above the top bar. + +Content that must cover the whole page, including the side bar, must open as a modal `` with `showModal()`. The browser renders a modal dialog in the top layer, above every stacking context, so it needs no z-index. `ModalDialog.vue` and the maximized views in `MaximizableCodeEditor.vue` and `DiffViewer.vue` open this way. An element attached to `body` renders below a modal dialog, so `mount.ts` attaches tooltips to the nearest ``, and to `body` only outside one. + +## Checking the shell locally + +Run the mock scenarios described in [Frontend testing and mocking basics](testing-basics.md). The `trial-license` scenario shows the footer. The `auth-authenticated` scenario shows the user menu. + +The [UI guideline](../guidelines/ui.md) requires a layout check on each side of every breakpoint a change can affect. For the shell, check at these widths: + +| Width | Layout | +|---|---| +| 375px | Drawer, on a phone | +| 768px | Rail, with the narrowest content | +| 1279px | Rail, with the widest content | +| 1280px | Expanded side bar, with the narrowest content | + +Update this table when a shell breakpoint changes. A view's own breakpoints, such as Monitoring's, add widths for changes that can affect that view. diff --git a/docs/frontend/platform-health-page.md b/docs/frontend/platform-health-page.md index 3a3cfba6cc..48785ae084 100644 --- a/docs/frontend/platform-health-page.md +++ b/docs/frontend/platform-health-page.md @@ -74,7 +74,7 @@ Current severity rules: - `none` - no availability or degradation issues -When severity is `none` but at least one row has an upgrade cue, the nav shows the info/outdated-only state. +When severity is `none` but at least one row has an upgrade cue, the nav shows the info/outdated-only state. The update status at the bottom of the side bar reports an upgrade cue regardless of severity. ## Shared Model Split @@ -213,7 +213,7 @@ npx vitest run test/mocks/platform-health-state.spec.ts | `src/Frontend/src/resources/PlatformHealth.ts` | Page-specific response/row types | | `src/Frontend/test/mocks/platform-health-state.ts` | Runtime mock topology and custom-check controls | | `src/Frontend/src/components/platformhealth/PlatformHealthMenuItem.vue` | Navigation severity and tooltip behavior | -| `src/Frontend/src/components/PageFooter.vue` | Aggregate platform update status in the footer | +| `src/Frontend/src/components/PlatformVersionInfo.vue` | Aggregate platform update status at the bottom of the side bar | ## Troubleshooting diff --git a/src/Frontend/src/App.vue b/src/Frontend/src/App.vue index 068f83fe7d..e213540084 100644 --- a/src/Frontend/src/App.vue +++ b/src/Frontend/src/App.vue @@ -2,7 +2,7 @@ import { computed, watch } from "vue"; import { RouterView, useRoute } from "vue-router"; import PageFooter from "./components/PageFooter.vue"; -import PageHeader from "./components/PageHeader.vue"; +import NavigationSideBar from "./components/NavigationSideBar.vue"; import "bootstrap"; import LicenseNotifications from "@/components/LicenseNotifications.vue"; import BackendChecksNotifications from "@/components/BackendChecksNotifications.vue"; @@ -49,13 +49,40 @@ watch( + + diff --git a/src/Frontend/src/assets/footer.css b/src/Frontend/src/assets/footer.css deleted file mode 100644 index e52111e454..0000000000 --- a/src/Frontend/src/assets/footer.css +++ /dev/null @@ -1,107 +0,0 @@ -footer { - color: #bcc6c2; - font-size: 14px; - font-weight: normal; - margin-top: 100px; - text-align: left; - text-align: center; - width: 100%; - background-color: #fff; - position: fixed; - bottom: 0; - border-top: 1px solid #ddd; - box-shadow: 0px -10px 16px #f2f6f7; - padding-top: 7px; - z-index: 999; /* this needs to fight with vue-highlight-code which forces z-index to 700 */ -} - -footer .row { - display: flex; - justify-content: space-between; -} - -footer span { - padding-left: 0; - padding-right: 32px; -} - -footer span.connected-status { - color: #000; - padding-right: 0; -} - -footer span.newscversion { - padding-right: 0; -} - -.versionnumber, -footer span.monitoring-connected, -footer span.monitoring-connected span { - padding-right: 0; -} - -.footer .container { - width: 100%; -} - -footer span { - color: #777f7f; - display: inline-block; - padding: 0 8px; -} - -footer a { - font-weight: normal; -} - -footer a:hover { - font-weight: normal; -} - -@media (max-width: 1550px) { - footer { - font-size: 12px; - } -} - -.connectivity-status div, -.connectivity-status span, -.connectivity-status span span { - display: inline-block; - color: #777f7f; -} - -.connectivity-status i, -.connectivity-status div.pa-connection-success, -.connectivity-status div.pa-connection-failed { - width: 10px; - height: 10px; - border-radius: 50%; -} - -.connectivity-status .connection-failed { - color: #ce4844; -} - -.connectivity-status .pa-connection-failed { - background: #ce4844; -} - -.connectivity-status .pa-connection-success { - background: #00c468; -} - -.connectivity-status .secondary { - display: none; -} - -@media (min-width: 960px) { - .connectivity-status .secondary { - display: inline-block; - } -} - -.trialLicenseBar { - background-color: firebrick; - color: white; -} diff --git a/src/Frontend/src/assets/header-menu-item.css b/src/Frontend/src/assets/header-menu-item.css deleted file mode 100644 index 01da32a49c..0000000000 --- a/src/Frontend/src/assets/header-menu-item.css +++ /dev/null @@ -1,13 +0,0 @@ -.nav { - --bs-link-color: #9d9d9d; - --bs-link-hover-color: #fff; -} - -.navbar > .container-fluid > div { - margin: 0 1em; -} - -#navbar .router-link-active { - background: transparent !important; - border-bottom: 5px solid var(--sp-blue); -} diff --git a/src/Frontend/src/assets/main.css b/src/Frontend/src/assets/main.css index 35ec15b28d..632fb67839 100644 --- a/src/Frontend/src/assets/main.css +++ b/src/Frontend/src/assets/main.css @@ -1,11 +1,31 @@ @import "bootstrap/dist/css/bootstrap.css"; -@import "footer.css"; @import "tabs.css"; @import "dropdown.css"; @import "toast.css"; @import "pagination.css"; :root { + /* Design tokens. docs/DESIGN.md describes them; change both together. */ + --sp-blue: #00a3c4; + --sp-canvas: #f2f6f7; + --sp-danger: #ce4844; + --sp-trial: #b22222; + --sp-healthy: #00c468; + + --sp-chrome: #1a1a1a; + --sp-chrome-ink: #b5b5b5; + --sp-chrome-ink-active: #ffffff; + --sp-chrome-hover: #2b2b2b; + --sp-chrome-divider: #333333; + --sp-chrome-strip: #0d0d0d; + --sp-chrome-strip-ink: #a6a6a6; + + --sp-side-bar-width: 224px; + --sp-side-bar-collapsed-width: 64px; + --sp-radius-sm: 4px; + --sp-motion-duration: 300ms; + --sp-motion-ease: cubic-bezier(0.4, 0, 0.2, 1); + --bs-btn-hover-color: #333; --bs-btn-hover-bg: #e6e6e6; --bs-btn-hover-border-color: #adadad; @@ -19,7 +39,6 @@ --monitoring-processing-time-light: #bee6c5; --monitoring-critical-time: #2700cb; --monitoring-critical-time-light: #c4bce5; - --sp-blue: #00a3c4; --info-icon: #0d6efd; --reduced-emphasis: #929e9e; /* FA7 introduced fixed width icons, whereas our design was based on auto width. Forcing it back to fix alignment issues*/ @@ -35,10 +54,7 @@ body { } #app { - display: flex; - flex-direction: column; height: 100vh; - min-width: 930px; } .fa { @@ -46,7 +62,7 @@ body { } .badge.badge-important { - background-color: #ce4844; + background-color: var(--sp-danger); background-image: none; border: none; } @@ -84,6 +100,11 @@ body { flex: 1; } +/* Views are not yet laid out for content narrower than 930px. */ +#main-content > * { + min-width: 930px; +} + h1 { font-size: 30px; font-weight: 700; diff --git a/src/Frontend/src/assets/navbar.css b/src/Frontend/src/assets/navbar.css deleted file mode 100644 index 79e1849120..0000000000 --- a/src/Frontend/src/assets/navbar.css +++ /dev/null @@ -1,237 +0,0 @@ -:root { - --bs-link-color: #9d9d9d; - --bs-link-hover-color: #fff; -} - -.navbar { - height: 60px; - flex-wrap: nowrap; - position: relative; - z-index: 1000; -} - -.navbar-inverse { - background-color: #1a1a1a; -} - -.navbar > .navbar-right { - margin-right: -15px; -} - -.navbar-brand { - height: 60px; - padding-bottom: 9px; - padding-top: 10px; -} - -.navbar-brand img { - width: 160px; - margin-left: 3px; -} - -.navbar-nav > li > a > span { - margin-left: 8px; -} - -.nav > li > a { - position: relative; - display: block; - padding: 10px 15px; - color: var(--bs-link-color); - text-decoration: none; -} - -.nav > li > a:hover, -.nav > li > a:focus { - color: #fff; -} - -.navbar-nav > li > a > span.no-margin { - margin: 0; -} - -.nav > li > a .navbar-toggle { - margin-top: 13px; -} - -.navbar a { - font-weight: normal; - text-decoration: none; -} - -.navbar a:hover { - font-weight: normal; -} - -.navbar-inverse .navbar-nav > .active > a, -.navbar-inverse .navbar-nav > .active > a:hover, -.navbar-inverse .navbar-nav > .active > a:focus { - color: #fff; -} - -.label-important, -.badge-important { - background-color: #fa603d; - border-color: #fa5833; -} - -@media (min-width: 768px) { - .navbar-nav > li.active > a { - background: transparent !important; - border-bottom: 5px solid var(--sp-blue); - } - - .navbar-nav > li > a { - padding-bottom: 15px; - padding-top: 20px; - } - - .graph-values .col-sm-6 { - width: 45%; - } -} - -@media only screen and (min-width: 1072px) { - .navbar-label { - display: inline; - } -} - -@media only screen and (max-width: 768px) { - .navbar-collapse.collapse.in { - padding: 0 0 0 16px !important; - } -} - -@media (max-width: 1199px) { - .navbar-header { - float: none; - } - - .navbar-toggle { - display: block; - } - - .navbar-collapse { - border-top: 1px solid transparent; - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); - } - - .navbar-collapse.collapse { - display: none !important; - } - - .navbar-nav { - float: none !important; - margin: 7.5px -15px; - } - - .navbar-nav > li { - float: none; - } - - .navbar-nav > li > a { - padding-top: 10px; - padding-bottom: 10px; - } - - .navbar-text { - float: none; - margin: 15px 0; - } - - .navbar-collapse.collapse.in { - display: block !important; - padding: 0 32px 16px 32px; - } - - .collapsing { - overflow: hidden !important; - } -} - -@media (max-width: 1685px) { - .navbar-label { - display: none; - } - - .nav > li > a .icon-white { - color: #929e9e; - } - - .nav > li > a:hover .icon-white, - .nav > li > a:focus .icon-white { - color: #fff; - } - - .nav > li > a:hover .pa-monitoring, - .nav > li > a:focus .pa-monitoring { - background-color: #fff; - } -} - -@media (max-width: 1439px) { - nav.navbar { - position: sticky; - } - - div.navbar-header { - float: left; - } - - ul.navbar-nav { - margin: 0 8px 0 0; - display: block; - } - - .navbar-nav > li > a { - padding-top: 18px; - padding-bottom: 17px; - } - - .navbar-collapse.collapse { - display: block !important; - } - - .navbar-nav > li, - .navbar-nav { - float: left !important; - height: 59px; - } - - .navbar-nav.navbar-right:last-child { - margin-right: -15px !important; - } - - .navbar-right { - float: right !important; - } - - .navbar-nav > li.active > a { - background: transparent !important; - border-bottom: 5px solid var(--sp-blue) !important; - } - - .tabs h5 { - margin-bottom: 0; - padding-bottom: 10px; - } -} - -@media (max-width: 1439px) and (-ms-high-contrast: active), (-ms-high-contrast: none) { - nav.navbar { - margin-top: 0; - } -} - -/* TODO move this to the page/control that it's used in*/ -.pa-monitoring { - mask-image: url("@/assets/monitoring.svg"); - background-color: #929e9e; - background-position: center; - background-repeat: no-repeat; - width: 16px; - height: 14px; - position: relative; - top: 2px; -} diff --git a/src/Frontend/src/components/FeedbackButton.vue b/src/Frontend/src/components/FeedbackButton.vue index e01ac18ce3..98df00876e 100644 --- a/src/Frontend/src/components/FeedbackButton.vue +++ b/src/Frontend/src/components/FeedbackButton.vue @@ -5,35 +5,8 @@ import ExternalLink from "@/components/ExternalLink.vue"; - diff --git a/src/Frontend/src/components/MaximizableCodeEditor.vue b/src/Frontend/src/components/MaximizableCodeEditor.vue index afb87facd1..b9bc371081 100644 --- a/src/Frontend/src/components/MaximizableCodeEditor.vue +++ b/src/Frontend/src/components/MaximizableCodeEditor.vue @@ -1,5 +1,5 @@