Skip to content

Commit

Permalink
Removing orphaned tech-preview less and markup
Browse files Browse the repository at this point in the history
Fixes openshift#2186

openshift@128b78d360f3d8999
2ed6ff7813edaa99f315ef1#diff-685dfa901a119f6590e773891ffd6052L506
removed the relevant javascript bits.
  • Loading branch information
rhamilto authored and f0x11 committed Mar 26, 2018
1 parent 2ee2b08 commit 08793fb
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 116 deletions.
1 change: 0 additions & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
</head>
<body class="console-os" ng-class="{ 'has-project-bar': view.hasProject }">
<!-- Add your site or application content here -->
<p ng-if="globalTechPreviewIndicator" ng-cloak class="tech-preview-banner">Technology preview is enabled</p>
<osc-header></osc-header>
<toast-notifications></toast-notifications>
<notification-drawer-wrapper></notification-drawer-wrapper>
Expand Down
6 changes: 0 additions & 6 deletions app/styles/_catalog.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
.landing {
@media(min-width: @screen-sm-min) {
top: (@navbar-os-header-height-desktop + @landing-search-area-height);
.tech-preview & {
top: (@navbar-os-header-height-desktop + @tech-preview-banner-height + @landing-search-area-height);
}
}
h1, .nav-tabs {
margin-bottom: 0 !important;
Expand All @@ -24,8 +21,5 @@
.catalog-search,
.landing-side-bar {
top: @navbar-os-header-height-desktop;
.tech-preview & {
top: @navbar-os-header-height-desktop + @tech-preview-banner-height;
}
}
}
12 changes: 0 additions & 12 deletions app/styles/_layouts.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,13 @@
body {
height: 1px;
padding-top: @navbar-os-header-height-mobile;
&.tech-preview {
padding-top: (@navbar-os-header-height-mobile + @tech-preview-banner-height);
}
@media(min-width: @screen-sm-min) {
padding-top: @navbar-os-header-height-desktop;
&.tech-preview {
padding-top: (@navbar-os-header-height-desktop + @tech-preview-banner-height);
}
}
&.has-project-bar {
padding-top: (@navbar-os-header-height-mobile + @project-bar-height-mobile);
&.tech-preview {
padding-top: (@navbar-os-header-height-mobile + @project-bar-height-mobile + @tech-preview-banner-height);
}
@media(min-width: @screen-sm-min) {
padding-top: (@navbar-os-header-height-desktop + @project-bar-height-desktop);
&.tech-preview {
padding-top: (@navbar-os-header-height-desktop + @project-bar-height-desktop + @tech-preview-banner-height);
}
.container-pf-nav-pf-vertical {
margin-left: @nav-pf-vertical-width;
&.collapsed-nav {
Expand Down
12 changes: 0 additions & 12 deletions app/styles/_log.less
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,6 @@
top: (@log-scroll-offset-top + @navbar-os-header-height-desktop);
}
}
.tech-preview & {
top: (@log-scroll-offset-top + @navbar-os-header-height-mobile + @project-bar-height-mobile + @tech-preview-banner-height);
@media (min-width: @screen-sm-min) {
top: (@log-scroll-offset-top + @navbar-os-header-height-desktop + @project-bar-height-desktop + @tech-preview-banner-height);
}
}
.tech-preview .chromeless & {
top: (@log-scroll-offset-top + @navbar-os-header-height-mobile + @tech-preview-banner-height);
@media (min-width: @screen-sm-min) {
top: (@log-scroll-offset-top + @navbar-os-header-height-desktop + @tech-preview-banner-height);
}
}
}
}
.log-view-output {
Expand Down
3 changes: 0 additions & 3 deletions app/styles/_navbar-vertical.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
vertical-align: middle;
width: 0;
}
.layout-pf-fixed .tech-preview & {
top: @tech-preview-banner-height;
}
.navbar-brand {
padding: 0;
@media(min-width: @screen-sm-min) {
Expand Down
8 changes: 0 additions & 8 deletions app/styles/_notifications.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ notification-drawer-wrapper {
&.hide-remove {
display: block !important;
}
.tech-preview & {
height: calc(100vh ~"-" (@navbar-os-header-height-mobile + @project-bar-height-mobile + @tech-preview-banner-height));
top: (@navbar-os-header-height-mobile + @project-bar-height-mobile + @tech-preview-banner-height);
@media(min-width: @screen-sm-min) {
height: calc(100vh ~"-" (@navbar-os-header-height-desktop + @project-bar-height-desktop + @tech-preview-banner-height) ~"-" 20px); // 20px bottom gutter
top: (@navbar-os-header-height-desktop + @project-bar-height-desktop + @tech-preview-banner-height);
}
}
}
// the whole block is clickable, need to set pointer on all of these
// for the correct visual
Expand Down
6 changes: 0 additions & 6 deletions app/styles/_project-bar.less
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,4 @@
background-color: @navbar-pf-vertical-color;
}
}
.tech-preview & {
top: @navbar-os-header-height-mobile + @tech-preview-banner-height;
@media (min-width: @screen-sm-min) {
top: @navbar-os-header-height-desktop + @tech-preview-banner-height;
}
}
}
15 changes: 0 additions & 15 deletions app/styles/_tech-preview.less

This file was deleted.

1 change: 0 additions & 1 deletion app/styles/_variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
@scrollbar-width: 15px;
@status-bg-color: #E6ECF1;
@status-border-color: #BFCEDB;
@tech-preview-banner-height: 20px;
@tileHeadingIconFontSize: 33px;
@tooltip-bg: #111;

Expand Down
18 changes: 0 additions & 18 deletions app/styles/_vertical-nav.less
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@
}
}
}
.tech-preview & {
top: (@navbar-os-header-height-mobile + @project-bar-height-mobile + @tech-preview-banner-height);
@media(min-width: @screen-sm-min) {
top: (@navbar-os-header-height-desktop + @project-bar-height-desktop + @tech-preview-banner-height);
}
}
}
.nav-item-pf-header {
font-size: (@font-size-base + 1);
Expand All @@ -144,16 +138,4 @@
padding: 4px 0 2px 0;
margin-left: 20px;
}
.tech-preview & {
top: (@navbar-os-header-height-mobile + @tech-preview-banner-height);
@media(min-width: @screen-sm-min) {
top: (@navbar-os-header-height-desktop + @tech-preview-banner-height);
}
}
.tech-preview.has-project-bar & {
top: (@navbar-os-header-height-mobile + @project-bar-height-mobile + @tech-preview-banner-height);
@media(min-width: @screen-sm-min) {
top: (@navbar-os-header-height-desktop + @project-bar-height-desktop + @tech-preview-banner-height);
}
}
}
1 change: 0 additions & 1 deletion app/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
@import "_system-status.less";
@import "_tables.less";
@import "_tile.less";
@import "_tech-preview.less";
@import "_tooltip.less";
@import "_typography.less";
@import "_spacers.less";
Expand Down
1 change: 0 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<style type="text/css"></style>
</head>
<body class="console-os" ng-class="{ 'has-project-bar': view.hasProject }">
<p ng-if="globalTechPreviewIndicator" ng-cloak class="tech-preview-banner">Technology preview is enabled</p>
<osc-header></osc-header>
<toast-notifications></toast-notifications>
<notification-drawer-wrapper></notification-drawer-wrapper>
Expand Down
44 changes: 12 additions & 32 deletions dist/styles/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08793fb

Please sign in to comment.