Path: blob/master/src/packages/frontend/app/top-nav-consts.ts
1496 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { CSS } from "@cocalc/frontend/app-framework";67// below this, the "page" is considered "narrow" and we use a different style8export const NARROW_THRESHOLD_PX = 550;910// show labels of projects, if there are less than this many11export const HIDE_LABEL_THRESHOLD = 6;1213// the width of the top bar14export const NAV_HEIGHT_PX = 36;1516// … and on narrower screens, a bit tighter17export const NAV_HEIGHT_NARROW_PX = 28;1819export const NAV_CLASS = "hidden-xs";2021// top bar font size in icons22// also used for the notification news badge offset, with a minus sign23export const FONT_SIZE_ICONS_NARROW = "14px";24export const FONT_SIZE_ICONS_NORMAL = "20px";2526// used in several places, especially for *:hover27export const TOP_BAR_ELEMENT_CLASS = "cocalc-top-bar-element";2829export interface PageStyle {30topBarStyle: CSS;31fileUseStyle: CSS;32projectsNavStyle: CSS | undefined;33fontSizeIcons: string; // {n}px34topPaddingIcons: string; // {n}px35sidePaddingIcons: string; // {n}px36isNarrow: boolean;37height: number;38}394041