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:
authorConnor Smallman <connor.smallman@bedegaming.com>2017-01-03 22:13:47 +0300
committerConnor Smallman <connor.smallman@bedegaming.com>2017-01-11 10:12:38 +0300
commitf68a715366e3ecbdd479e363576842e1a9dfc559 (patch)
tree157c63566dd87c02b7d0dc8d33761fe8a37c36f8 /app/assets/stylesheets/framework/layout.scss
parent8dc2163ce580f1d71be1cf45e5dfcb2b4763d7bb (diff)
Removed `hidden-xs` class from alerts
Centered alert text and prevented alert actions links from floating right for viewports below medium width (992px) Centered alert text stopped alert actions from floating right for viewports below medium width (992px) Update styles to use correct screen width variable for max-width media query Added unreleased changelog Added class to alert links wrapper Updated styles for new class, float alert links on larger screens
Diffstat (limited to 'app/assets/stylesheets/framework/layout.scss')
-rw-r--r--app/assets/stylesheets/framework/layout.scss15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/layout.scss b/app/assets/stylesheets/framework/layout.scss
index 5365b62e456..29d55c44699 100644
--- a/app/assets/stylesheets/framework/layout.scss
+++ b/app/assets/stylesheets/framework/layout.scss
@@ -41,6 +41,21 @@ body {
}
}
+ .alert-link-group {
+ float: right;
+ }
+
+ /* Center alert text and alert action links on smaller screens */
+ @media (max-width: $screen-sm-max) {
+ .alert {
+ text-align: center;
+ }
+
+ .alert-link-group {
+ float: none;
+ }
+ }
+
/* Stripe the background colors so that adjacent alert-warnings are distinct from one another */
.alert-warning {
transition: background-color 0.15s, border-color 0.15s;