diff --git a/client/app/assets/less/redash/query.less b/client/app/assets/less/redash/query.less
index 81ae31aa9d..1a03ebc4f6 100644
--- a/client/app/assets/less/redash/query.less
+++ b/client/app/assets/less/redash/query.less
@@ -221,14 +221,20 @@ edit-in-place p.editable:hover {
}
.page-header--new {
- .label-default {
- margin-right: 3px;
+ .query-tags,
+ .query-tags__mobile {
+ .label-default,
+ .label-warning {
+ margin-right: 3px;
+ }
}
}
.page-header--query {
.page-title {
display: block;
+ margin-left: 15px;
+ margin-right: 15px;
}
}
@@ -520,9 +526,41 @@ nav .rg-bottom {
}
}
+.query-tags {
+ display: inline-block;
+ vertical-align: middle;
+ margin-top: -3px; // padding-top of tags
+}
+
+.query-tags__mobile {
+ display: none;
+ margin: -5px 0 0 0;
+ padding: 0 0 0 23px;
+}
+
// Smaller screens
@media (max-width: 880px) {
+ .page-header--query {
+ .page-title {
+ margin-left: 0;
+ margin-right: 0;
+ }
+ }
+
+ .query-tags:not(.query-tags__empty) {
+ display: none;
+ }
+
+ .query-tags__mobile:not(.query-tags__empty) {
+ display: block;
+ }
+
+ .btn--showhide,
+ .query-actions-menu .dropdown-toggle {
+ margin-bottom: 5px;
+ }
+
.btn-publish {
display: none;
}
@@ -562,6 +600,11 @@ nav .rg-bottom {
}
}
+ .query-visualizations-wrapper {
+ margin-left: -15px;
+ margin-right: -15px;
+ }
+
main {
flex-direction: column-reverse;
@@ -610,17 +653,6 @@ nav .rg-bottom {
}
}
-
-@media (max-width: 438px) {
- .btn--showhide {
- margin-bottom: 5px;
- }
-
- .btn-publish {
- margin-bottom: 5px;
- }
-}
-
@media (max-width: 768px) {
.editor__left__schema, .editor__left__data-source {
display: none;
diff --git a/client/app/assets/less/redash/redash-newstyle.less b/client/app/assets/less/redash/redash-newstyle.less
index 3e87aae392..2f18c05ad4 100644
--- a/client/app/assets/less/redash/redash-newstyle.less
+++ b/client/app/assets/less/redash/redash-newstyle.less
@@ -1,3 +1,5 @@
+@import (reference, less) '~bootstrap/less/labels.less';
+
// Variables
@redash-gray: rgba(102, 136, 153, 1);
@redash-orange: rgba(255, 120, 100, 1);
@@ -449,15 +451,22 @@ page-header, .page-header--new {
background: fade(@redash-gray, 85%);
}
-.label-default-unpublished {
+.label-tag-unpublished {
background: fade(@redash-gray, 85%);
- display: inline-block;
- overflow: hidden;
+}
+
+.label-tag-archived {
+ .label-warning();
}
.label-tag {
background: fade(@redash-gray, 10%);
color: fade(@redash-gray, 75%);
+}
+
+.label-tag-unpublished,
+.label-tag-archived,
+.label-tag {
margin-right: 3px;
display: inline-block;
margin-top: 2px;
diff --git a/client/app/components/tags-control/control-template.html b/client/app/components/tags-control/control-template.html
index 65a1a09a1e..e8e56056fd 100644
--- a/client/app/components/tags-control/control-template.html
+++ b/client/app/components/tags-control/control-template.html
@@ -1,3 +1,4 @@
+
- Unpublished
-