Add new unsupported class to control visibility while rich text is open

This commit is contained in:
Alasdair Smith 2018-07-11 12:11:05 +01:00
parent 27ef84eb1e
commit 9d81cf20f9
2 changed files with 19 additions and 1 deletions

View file

@ -15,6 +15,7 @@ div.full-size(
.ui-layout-center(
ng-controller="ReviewPanelController",
ng-class="{\
'rp-unsupported': editor.showRichText,\
'rp-state-current-file': (reviewPanel.subView === SubViews.CUR_FILE),\
'rp-state-current-file-expanded': (reviewPanel.subView === SubViews.CUR_FILE && ui.reviewPanelOpen),\
'rp-state-current-file-mini': (reviewPanel.subView === SubViews.CUR_FILE && !ui.reviewPanelOpen),\

View file

@ -139,6 +139,10 @@
padding: 0 5px;
}
.rp-unsupported & {
display: none;
}
position: relative;
border-bottom: 1px solid @rp-border-grey;
background-color: @rp-bg-dim-blue;
@ -217,6 +221,10 @@
.rp-size-mini & {
display: block;
}
.rp-unsupported & {
display: none;
}
.rp-state-current-file & {
position: absolute;
@ -714,6 +722,10 @@
display: flex;
}
.rp-unsupported & {
display: none;
}
.rp-state-current-file & {
position: absolute;
bottom: 0;
@ -1003,7 +1015,8 @@
.rp-size-mini & {
right: @review-off-width;
}
.rp-size-expanded & {
.rp-size-expanded &,
.rp-unsupported & {
display: none;
}
}
@ -1053,6 +1066,10 @@
display: block;
}
.rp-unsupported & {
display: none;
}
.rp-size-expanded & {
&::after {
content: "\f105";