Commit 2acb030b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Refactor button css and do some cleanup

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 7ad4521f
......@@ -22,8 +22,8 @@ $brand-info: $gl-info;
$brand-warning: $gl-warning;
$brand-danger: $gl-danger;
$border-radius-base: 3px !default;
$border-radius-large: 5px !default;
$border-radius-base: 2px !default;
$border-radius-large: 2px !default;
$border-radius-small: 2px !default;
......
......@@ -5,6 +5,7 @@ html {
body {
padding-top: $header-height;
text-rendering: geometricPrecision;
}
}
......
body {
text-rendering: geometricPrecision;
}
@mixin btn-default {
@include border-radius(2px);
......@@ -87,9 +83,7 @@ body {
}
}
/*Butons*/
@mixin btn-project {
@mixin btn-gray {
background-color: #f0f2f5;
border-color: #dce0e5;
color: #313236;
......@@ -115,7 +109,7 @@ body {
}
}
@mixin btn-light {
@mixin btn-white {
background-color: #fff;
border-color: #dce0e5;
color: #313236;
......@@ -141,7 +135,7 @@ body {
}
}
@mixin btn-remove {
@mixin btn-red {
background-color: #f72e60;
border-color: #ee295a;
......@@ -160,23 +154,20 @@ body {
background-color: #d42450 !important;
border-color: #e12554 !important;
}
}
.btn-info {
.btn {
@include btn-default;
@include btn-project;
}
@include btn-white;
.btn-success {
@include btn-default;
&.btn-success {
@include btn-green;
}
}
.btn {
@include btn-default;
&.btn-gray {
@include btn-gray;
}
&.btn-new {
@extend .btn-success;
......
......@@ -29,9 +29,6 @@ input[type='text'].danger {
border-top: 1px solid $border-color;
}
@media (min-width: $screen-sm-min) {
}
label {
&.control-label {
@extend .col-sm-2;
......@@ -84,20 +81,13 @@ label {
.form-group .control-label {
font-weight: normal;
font-color: #313236 !important;
}
.form-control {
@include border-radius (2px);
}
.form-control::-webkit-input-placeholder{
color:#7f8fa4;
.form-control::-webkit-input-placeholder {
color: #7f8fa4;
}
.input-group {
@include border-radius (2px);
.input-group-addon {
background-color: #f7f8fa;
}
......
......@@ -27,12 +27,12 @@
@include box-shadow(rgba(76, 86, 103, 0.247059) 0px 0px 1px 0px, rgba(31, 37, 50, 0.317647) 0px 2px 18px 0px);
@include border-radius (0px);
padding: 16px 20px;
padding: 16px;
border: none !important;
}
.select2-results .select2-result-label {
padding: 16px 20px;
padding: 16px;
}
.select2-drop{
......@@ -142,5 +142,5 @@
}
.ajax-users-dropdown {
min-width: 225px !important;
min-width: 250px !important;
}
......@@ -18,10 +18,6 @@
}
}
.btn, .commits-compare-switch {
@include btn-light;
}
.project-edit-content {
padding: 7px;
}
......@@ -100,8 +96,7 @@
margin-bottom: 0px;
.btn {
@include btn-project;
@include btn-default;
@include btn-gray;
.count {
display: inline-block;
......@@ -161,7 +156,7 @@
.input-group-btn {
.btn {
@include btn-project;
@include btn-gray;
@include btn-middle;
&:hover {
......@@ -195,7 +190,7 @@
margin: 0 12px 0 12px;
.btn{
@include btn-project;
@include btn-gray;
@include btn-default;
}
......@@ -390,7 +385,7 @@ table.table.protected-branches-list tr.no-border {
.nav > li > a {
@include btn-default;
@include btn-project;
@include btn-gray;
background-color: transparent;
border: 1px solid #f7f8fa;
......@@ -450,7 +445,7 @@ pre.light-well {
.btn-remove {
@include btn-middle;
@include btn-remove;
@include btn-red;
float: left !important;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment