Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Rose <sam@gitlab.com>2016-12-21 01:58:04 +0300
committerSam Rose <sam@gitlab.com>2016-12-27 19:23:20 +0300
commitdca0a42a95d4757f6caeb1fc8866c7ebc570744b (patch)
tree86bdf6e30b9cc3fb9bde2c69729d295d577c8fba /app/assets/stylesheets/framework/nav.scss
parent580220c6ccf2b541e46c4c8a1b3830195c3b5a8b (diff)
Truncate tag description and fix mobile for inidividual tag
Diffstat (limited to 'app/assets/stylesheets/framework/nav.scss')
-rw-r--r--app/assets/stylesheets/framework/nav.scss47
1 files changed, 36 insertions, 11 deletions
diff --git a/app/assets/stylesheets/framework/nav.scss b/app/assets/stylesheets/framework/nav.scss
index bbf9de06630..4f84bc37f90 100644
--- a/app/assets/stylesheets/framework/nav.scss
+++ b/app/assets/stylesheets/framework/nav.scss
@@ -165,6 +165,8 @@
padding: 11px 0;
margin-bottom: 0;
+ > .btn,
+ > .btn-container,
> .dropdown {
margin-right: $gl-padding-top;
display: inline-block;
@@ -172,16 +174,7 @@
&:last-child {
margin-right: 0;
- }
- }
-
- > .btn {
- margin-right: $gl-padding-top;
- display: inline-block;
- vertical-align: top;
-
- &:last-child {
- margin-right: 0;
+ float: right;
}
}
@@ -427,4 +420,36 @@
border-bottom: none;
}
}
-} \ No newline at end of file
+}
+
+@media (max-width: $screen-xs-max) {
+ .top-area .nav-controls {
+ $controls-margin: $btn-xs-side-margin - 2px;
+
+ &.controls-flex {
+ display: flex;
+ flex-flow: row wrap;
+ align-items: center;
+ justify-content: center;
+ padding: 0 0 $gl-padding-top;
+ }
+
+ .controls-item,
+ .controls-item:last-child {
+ flex: 1 1 35%;
+ display: block;
+ width: 100%;
+ margin: $controls-margin;
+
+ .btn,
+ .dropdown {
+ margin: 0;
+ }
+ }
+
+ .controls-item-full {
+ @extend .controls-item;
+ flex: 1 1 100%;
+ }
+ }
+}