Skip to content
Snippets Groups Projects
Commit df4c4833 authored by Clement Ho's avatar Clement Ho
Browse files

Remove redundant mixins

parent 6678fab3
No related branches found
No related tags found
No related merge requests found
Showing
with 35 additions and 45 deletions
Loading
Loading
@@ -30,6 +30,7 @@ v 8.13.0 (unreleased)
- Add word-wrap to issue title on issue and milestone boards (ClemMakesApps)
- Fix todos page mobile viewport layout (ClemMakesApps)
- Fix inconsistent highlighting of already selected activity nav-links (ClemMakesApps)
- Remove redundant mixins (ClemMakesApps)
- Fix robots.txt disallowing access to groups starting with "s" (Matt Harrison)
- Close open merge request without source project (Katarzyna Kobierska Ula Budziszewska)
- Fix that manual jobs would no longer block jobs in the next stage. !6604
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@
width: 40px;
height: 40px;
padding: 0;
@include border-radius($avatar_radius);
border-radius: $avatar_radius;
border: 1px solid rgba(0, 0, 0, .1);
 
&.avatar-inline {
Loading
Loading
@@ -17,7 +17,7 @@
}
 
&.avatar-tile {
@include border-radius(0);
border-radius: 0;
border: none;
}
 
Loading
Loading
Loading
Loading
@@ -133,7 +133,7 @@
}
 
.identicon {
@include border-radius(50%);
border-radius: 50%;
}
}
 
Loading
Loading
@mixin btn-default {
@include border-radius(3px);
border-radius: 3px;
font-size: $gl-font-size;
font-weight: 500;
padding: $gl-vert-padding $gl-btn-padding;
Loading
Loading
@@ -8,7 +8,7 @@
&:active {
outline: none;
background-color: $btn-active-gray;
@include box-shadow($gl-btn-active-background);
box-shadow: $gl-btn-active-background;
}
}
 
Loading
Loading
@@ -43,7 +43,7 @@
 
&:active,
&.active {
@include box-shadow ($gl-btn-active-background);
box-shadow: $gl-btn-active-background;
 
background-color: $dark;
border-color: $border-dark;
Loading
Loading
@@ -279,7 +279,7 @@
}
 
.active {
@include box-shadow($gl-btn-active-background);
box-shadow: $gl-btn-active-background;
 
border: 1px solid #c6cacf !important;
background-color: #e4e7ed !important;
Loading
Loading
Loading
Loading
@@ -73,7 +73,7 @@ label {
}
 
.form-control {
@include box-shadow(none);
box-shadow: none;
border-radius: 3px;
padding: $gl-vert-padding $gl-input-padding;
}
Loading
Loading
Loading
Loading
@@ -16,7 +16,7 @@
margin-top: 5px;
}
 
@include border-radius(3px);
border-radius: 3px;
display: block;
float: left;
margin-right: 10px;
Loading
Loading
Loading
Loading
@@ -86,7 +86,7 @@
}
 
.markdown-area {
@include border-radius(0);
border-radius: 0;
background: #fff;
border: 1px solid #ddd;
min-height: 140px;
Loading
Loading
/**
* Generic mixins
*/
@mixin box-shadow($shadow) {
box-shadow: $shadow;
}
@mixin border-radius($radius) {
border-radius: $radius;
}
/**
* Prefilled mixins
* Mixins with fixed values
Loading
Loading
Loading
Loading
@@ -133,5 +133,5 @@
font-size: 20px;
color: #777;
z-index: 100;
@include box-shadow(0 1px 2px #ddd);
box-shadow: 0 1px 2px #ddd;
}
Loading
Loading
@@ -46,8 +46,8 @@
}
 
.select2-drop {
@include box-shadow(rgba(76, 86, 103, 0.247059) 0 0 1px 0, rgba(31, 37, 50, 0.317647) 0 2px 18px 0);
@include border-radius ($border-radius-default);
box-shadow: rgba(76, 86, 103, 0.247059) 0 0 1px 0, rgba(31, 37, 50, 0.317647) 0 2px 18px 0;
border-radius: $border-radius-default;
border: none;
min-width: 175px;
}
Loading
Loading
@@ -72,7 +72,7 @@
 
.select2-container-active {
.select2-choice, .select2-choices {
@include box-shadow(none);
box-shadow: none;
}
}
 
Loading
Loading
@@ -82,13 +82,13 @@
outline: 0;
background-image: none;
background-color: $white-dark;
@include box-shadow($gl-btn-active-gradient);
box-shadow: $gl-btn-active-gradient;
}
}
 
.select2-container-multi {
.select2-choices {
@include border-radius($border-radius-default);
border-radius: $border-radius-default;
border-color: $input-border;
background: none;
 
Loading
Loading
@@ -123,7 +123,7 @@
&.select2-container-active .select2-choices,
&.select2-dropdown-open .select2-choices {
border-color: $border-white-normal;
@include box-shadow($gl-btn-active-gradient);
box-shadow: $gl-btn-active-gradient;
}
}
 
Loading
Loading
@@ -157,7 +157,7 @@
background-repeat: no-repeat;
background-position: right 0 bottom 6px;
border: 1px solid $input-border;
@include border-radius($border-radius-default);
border-radius: $border-radius-default;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
 
&:focus {
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@
 
&.page-sidebar-pinned {
.sidebar-wrapper {
@include box-shadow(none);
box-shadow: none;
}
}
 
Loading
Loading
@@ -17,7 +17,7 @@
width: 0;
overflow: hidden;
transition: width $sidebar-transition-duration;
@include box-shadow(2px 0 16px 0 $black-transparent);
box-shadow: 2px 0 16px 0 $black-transparent;
}
}
 
Loading
Loading
@@ -100,7 +100,7 @@
.count {
float: right;
padding: 0 8px;
@include border-radius(6px);
border-radius: 6px;
}
}
 
Loading
Loading
Loading
Loading
@@ -116,7 +116,7 @@
font-size: 13px;
line-height: 1.6em;
overflow-x: auto;
@include border-radius(2px);
border-radius: 2px;
}
 
p > code {
Loading
Loading
Loading
Loading
@@ -50,7 +50,7 @@
 
.bordered-box {
border: 1px solid $border-color;
@include border-radius($border-radius-default);
border-radius: $border-radius-default;
}
 
Loading
Loading
.file-editor {
#editor {
border: none;
@include border-radius(0);
border-radius: 0;
height: 500px;
margin: 0;
padding: 0;
Loading
Loading
Loading
Loading
@@ -91,7 +91,7 @@
float: right;
border: 1px solid #eee;
padding: 5px;
@include border-radius(5px);
border-radius: 5px;
background: $gray-light;
margin-left: 10px;
top: -6px;
Loading
Loading
.suggest-colors {
margin-top: 5px;
a {
@include border-radius(4px);
border-radius: 4px;
width: 30px;
height: 30px;
display: inline-block;
Loading
Loading
@@ -17,7 +17,7 @@
overflow: hidden;
 
a {
@include border-radius(0);
border-radius: 0;
width: (100% / 7);
margin-right: 0;
margin-bottom: -5px;
Loading
Loading
Loading
Loading
@@ -73,12 +73,12 @@
height: auto;
 
&.top {
@include border-radius(5px 5px 0 0);
border-radius: 5px 5px 0 0;
margin-bottom: 0;
}
 
&.bottom {
@include border-radius(0 0 5px 5px);
border-radius: 0 0 5px 5px;
border-top: 0;
margin-bottom: 20px;
}
Loading
Loading
@@ -86,7 +86,7 @@
&.middle {
border-top: 0;
margin-bottom: 0;
@include border-radius(0);
border-radius: 0;
}
 
&:active, &:focus {
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
background: $background-color;
color: $gl-gray;
border: 1px solid $border-color;
@include border-radius(2px);
border-radius: 2px;
 
form {
margin-bottom: 0;
Loading
Loading
Loading
Loading
@@ -334,7 +334,7 @@ ul.notes {
 
.add-diff-note {
margin-top: -4px;
@include border-radius(40px);
border-radius: 40px;
background: #fff;
padding: 4px;
font-size: 16px;
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@
text-align: center;
 
.preview {
@include border-radius(4px);
border-radius: 4px;
 
height: 80px;
margin-bottom: 10px;
Loading
Loading
@@ -47,7 +47,7 @@
width: 160px;
 
img {
@include border-radius(4px);
border-radius: 4px;
 
max-width: 100%;
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment