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:
authorKushal Pandya <kushal@gitlab.com>2016-12-06 13:57:08 +0300
committerKushal Pandya <kushal@gitlab.com>2016-12-21 10:46:17 +0300
commitba63e4f1ed9f8d8e452a80c6f96b50c5487510c8 (patch)
treebde5bbc829dc4058cbba4a68e91a8faafd57f5e7 /app/assets/stylesheets/pages/builds.scss
parent16ad6ed0387f0152ed3a71e643b948be59bcf3d7 (diff)
Updated styles to use scroll icons
Diffstat (limited to 'app/assets/stylesheets/pages/builds.scss')
-rw-r--r--app/assets/stylesheets/pages/builds.scss68
1 files changed, 46 insertions, 22 deletions
diff --git a/app/assets/stylesheets/pages/builds.scss b/app/assets/stylesheets/pages/builds.scss
index b256d907649..0185491bc93 100644
--- a/app/assets/stylesheets/pages/builds.scss
+++ b/app/assets/stylesheets/pages/builds.scss
@@ -22,26 +22,44 @@
margin: 0 0 0 auto;
}
- .btn.sticky,
+ .scroll-link.sticky,
.autoscroll-container {
right: 25px;
z-index: 1;
}
- .btn {
+ .scroll-link {
display: block;
margin-bottom: 10px;
- color: $white-light;
- border-color: $white-light;
- background-color: rgba($ci-output-bg, .5);
+ width: 16px;
+ height: 33px;
+
+ &.scroll-top {
+ background-image: image-url('scroll_up');
+
+ &:hover {
+ background-image: image-url('scroll_up_hover_active');
+ }
+ }
+
+ &.scroll-bottom {
+ background-image: image-url('scroll_down');
+
+ &:hover {
+ background-image: image-url('scroll_down_hover_active');
+ }
+ }
&.sticky {
position: fixed;
- }
- &:hover{
- color: $ci-output-bg;
- background-color: $white-light;
+ &.scroll-top {
+ top: 110px;
+ }
+
+ &.scroll-bottom {
+ bottom: -2px;
+ }
}
}
@@ -49,33 +67,41 @@
position: absolute;
.status-message {
+ display: inline-block;
color: $white-light;
+ i {
+ display: inline-block;
+ width: 16px;
+ height: 33px;
+ background-image: image-url('scroll_down_hover_active');
+ }
+
label {
- margin-left: 5px;
+ float: left;
+ opacity: 0;
+ margin-right: 10px;
font-weight: normal;
+ line-height: 1.8;
+ transition: opacity 1s ease-out;
}
- }
- }
- #scroll-top.btn.sticky {
- top: 110px;
- }
-
- #scroll-bottom.btn.sticky {
- bottom: -2px;
+ &:hover label {
+ opacity: 1;
+ }
+ }
}
&.sidebar-expanded {
- .btn.sticky,
+ .scroll-link.sticky,
.autoscroll-container {
right: #{$gutter_width + ($gl-padding * 2)};
}
}
@media (max-width: $screen-sm-max) {
- .btn {
+ .scroll-link {
padding: 6px 13px;
}
@@ -322,8 +348,6 @@
margin-top: -17px;
}
-
-
@media (min-width: $screen-md-min) {
.sub-nav.build {
width: calc(100% + #{$gutter_width});