mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #18173 from overleaf/jdt-container-utils
[Web] Add container based hide utils to our util css GitOrigin-RevId: 193abf1242ec4a816299fabf486754b3bcbae147
This commit is contained in:
parent
24cdfdf92f
commit
72b53fe8db
4 changed files with 21 additions and 8 deletions
|
@ -84,7 +84,7 @@ export default function GrammarlyAdvert() {
|
|||
<Notification
|
||||
action={actions}
|
||||
ariaLive="polite"
|
||||
className="editor-notification ol-overlay"
|
||||
className="editor-notification ol-overlay hidden-xs-container"
|
||||
content={
|
||||
<div>
|
||||
<p>
|
||||
|
|
|
@ -752,10 +752,3 @@ grammarly-extension[data-grammarly-shadow-root='true'] {
|
|||
width: 80%;
|
||||
max-width: 560px;
|
||||
}
|
||||
|
||||
/* If the container is smaller than 400px */
|
||||
@container (max-width: 400px) {
|
||||
.editor-notification {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -147,6 +147,7 @@
|
|||
// Ensure an element with class "full-size", such as the binary file view, stays within the bounds of the panel
|
||||
.ide-react-panel {
|
||||
position: relative;
|
||||
container-type: size;
|
||||
}
|
||||
|
||||
// Styles for placeholder elements that will eventually be replaced
|
||||
|
|
|
@ -87,3 +87,22 @@
|
|||
.responsive-invisibility();
|
||||
}
|
||||
}
|
||||
|
||||
// Container visibility utilities
|
||||
//if these dont appear to work, ensure that the parent container has their container-type set
|
||||
@container (max-width: @screen-xs-min) {
|
||||
.hidden-xs-container {
|
||||
.responsive-invisibility();
|
||||
}
|
||||
}
|
||||
@container (max-width: @screen-sm-min) {
|
||||
.hidden-sm-container {
|
||||
.responsive-invisibility();
|
||||
}
|
||||
}
|
||||
|
||||
@container (max-width: @screen-md-min) {
|
||||
.hidden-md-container {
|
||||
.responsive-invisibility();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue