Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/_antd_fix.sass
Views: 687
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45// Here we revert some of the style changes that antd made.67// This is mainly meant to be temporary, so that we keep the8// overall global bootstrap style.910@import colors1112// make the color consistent with antd again, since bootstrap sets13// it to something else. We want this to be consistent with our nextjs14// landing pages.15a16color: $COL_ANTD_LINK_BLUE1718html19overflow: hidden2021.ant-popover-content22.ant-popover-arrow23border-color: $COL_GRAY_L !important24z-index: -1 !important2526.ant-popover-inner-content>.cocalc-account-button-dropdown-links27margin: -12px -16px //Accomodate untouchable padding in inner-content just for .cocalc-account-button-dropdown-links2829.ant-input-group > span.ant-input-group-addon30padding: 031border: 03233.cc-error-display34margin: 035padding: 1px 036max-height: 30%37position: relative38display: flex39flex-direction: column40> .ant-alert-banner41display: block4243// The frame-editor title-bar's "..." popover has a higher z-index than e.g. the "Halt" modal44// This makes the antd modals appear on top of all other elements45// Ref: https://github.com/sagemathinc/cocalc/issues/646746// I found this ticket: https://github.com/ant-design/ant-design/issues/3151347// UPDATE: this style hack breaks the CRM's "add additional tables" dialog, and could48// break all kinds of other things(!?). This is bad to change generically.49// The correct fix, which I implemented for the "..." popover in title-bar.tsx is50// <Popover overlayStyle={{ zIndex: 990 }}...>51// which makes the popover lower than the modal (which is at 1000 without the hack below).52// Then all other popovers are not impacted.5354// .ant-modal-root .ant-modal-wrap55// z-index: 1100565758