Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f414928a
Commit
f414928a
authored
Jan 14, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standartize buttons and fields size
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
9c69c899
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
83 deletions
+61
-83
app/assets/stylesheets/framework/blocks.scss
app/assets/stylesheets/framework/blocks.scss
+1
-5
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+43
-14
app/assets/stylesheets/framework/forms.scss
app/assets/stylesheets/framework/forms.scss
+0
-2
app/assets/stylesheets/framework/selects.scss
app/assets/stylesheets/framework/selects.scss
+2
-2
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
+1
-1
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
app/assets/stylesheets/pages/diff.scss
app/assets/stylesheets/pages/diff.scss
+0
-8
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+2
-2
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+10
-48
app/helpers/button_helper.rb
app/helpers/button_helper.rb
+1
-1
No files found.
app/assets/stylesheets/framework/blocks.scss
View file @
f414928a
...
...
@@ -137,11 +137,7 @@
.nav-block
{
.controls
{
float
:
right
;
.btn
{
padding
:
7px
10px
;
margin-top
:
11px
;
}
margin-top
:
11px
;
}
}
...
...
app/assets/stylesheets/framework/buttons.scss
View file @
f414928a
@mixin
btn-default
{
@include
border-radius
(
3px
);
border-width
:
1px
;
border-style
:
solid
;
font-size
:
15px
;
font-size
:
$gl-font-size
;
font-weight
:
500
;
line-height
:
18px
;
padding
:
11px
$gl-padding
;
letter-spacing
:
.4px
;
padding
:
$gl-vert-padding
$gl-padding
;
&
:focus
,
&
:active
{
...
...
@@ -17,8 +13,6 @@
@mixin
btn-middle
{
@include
btn-default
;
@include
border-radius
(
3px
);
padding
:
11px
24px
;
}
@mixin
btn-color
(
$light
,
$border-light
,
$normal
,
$border-normal
,
$dark
,
$border-dark
,
$color
)
{
...
...
@@ -74,16 +68,15 @@
@include
btn-default
;
@include
btn-white
;
&
.btn-small
,
&
.btn-sm
{
padding
:
5px
10px
;
}
&
.btn-nr
{
padding
:
7px
10px
;
padding
:
4px
10px
;
font-size
:
13px
;
line-height
:
18px
;
}
&
.btn-xs
{
padding
:
1
px
5px
;
padding
:
2
px
5px
;
}
&
.btn-success
,
...
...
@@ -155,4 +148,40 @@
.btn-clipboard
{
border
:
none
;
padding
:
0
5px
;
}
.input-group-btn
{
.btn
{
@include
btn-gray
;
@include
btn-middle
;
&
:hover
{
outline
:
none
;
}
&
:focus
{
outline
:
none
;
}
&
:active
{
outline
:
none
;
}
&
.btn-clipboard
{
padding-left
:
15px
;
padding-right
:
15px
;
}
}
.active
{
@include
box-shadow
(
inset
0
0
4px
rgba
(
0
,
0
,
0
,
0
.12
));
border
:
1px
solid
#c6cacf
!
important
;
background-color
:
#e4e7ed
!
important
;
}
.btn-green
{
@include
btn-green
}
}
app/assets/stylesheets/framework/forms.scss
View file @
f414928a
...
...
@@ -74,8 +74,6 @@ label {
.form-control
{
@include
box-shadow
(
none
);
height
:
42px
;
padding
:
8px
$gl-padding
;
}
.wiki-content
{
...
...
app/assets/stylesheets/framework/selects.scss
View file @
f414928a
...
...
@@ -3,8 +3,8 @@
.select2-choice
{
background
:
#FFF
;
border-color
:
#DDD
;
height
:
42
px
;
padding
:
8
px
$gl-padding
;
height
:
36
px
;
padding
:
6
px
$gl-padding
;
font-size
:
$gl-font-size
;
line-height
:
1
.42857143
;
...
...
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
View file @
f414928a
...
...
@@ -46,7 +46,7 @@ $font-size-base: $gl-font-size;
//
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
$padding-base-vertical
:
9px
;
$padding-base-vertical
:
$gl-vert-padding
;
$padding-base-horizontal
:
$gl-padding
;
$component-active-color
:
#fff
;
$component-active-bg
:
$brand-info
;
...
...
app/assets/stylesheets/framework/variables.scss
View file @
f414928a
...
...
@@ -22,6 +22,7 @@ $header-height: 58px;
$fixed-layout-width
:
1280px
;
$gl-gray
:
#5a5a5a
;
$gl-padding
:
16px
;
$gl-vert-padding
:
6px
;
$gl-padding-top
:
10px
;
$gl-avatar-size
:
46px
;
$secondary-text
:
#7f8fa4
;
...
...
app/assets/stylesheets/pages/diff.scss
View file @
f414928a
...
...
@@ -21,14 +21,6 @@
}
}
.diff-controls
{
.btn
{
padding
:
0px
10px
;
font-size
:
13px
;
line-height
:
28px
;
}
}
.commit-short-id
{
font-family
:
$monospace_font
;
font-size
:
smaller
;
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
f414928a
...
...
@@ -27,7 +27,7 @@
.project-issuable-filter
{
.controls
{
float
:
right
;
margin-top
:
7
px
;
margin-top
:
11
px
;
}
.nav-links
{
...
...
@@ -95,7 +95,7 @@
.cross-project-reference
{
color
:
$gl-link-color
;
span
{
white-space
:
nowrap
;
width
:
85%
;
...
...
app/assets/stylesheets/pages/projects.scss
View file @
f414928a
...
...
@@ -83,9 +83,13 @@
.form-control
{
background
:
#FFF
;
font-size
:
14px
;
height
:
42px
;
margin-left
:
-1px
;
}
.btn-clipboard
{
border
:
1px
solid
$border-color
;
padding
:
6px
$gl-padding
;
}
}
.visibility-level-label
{
...
...
@@ -162,8 +166,8 @@
border-style
:
solid
;
font-size
:
13px
;
font-weight
:
600
;
line-height
:
20
px
;
padding
:
11px
16px
;
line-height
:
13
px
;
padding
:
$gl-vert-padding
$gl-padding
;
letter-spacing
:
.4px
;
padding
:
10px
;
text-align
:
center
;
...
...
@@ -227,48 +231,6 @@
}
}
.projects-search-form
{
.input-group
.form-control
{
height
:
42px
;
}
}
.input-group-btn
{
.btn
{
@include
btn-gray
;
@include
btn-middle
;
&
:hover
{
outline
:
none
;
}
&
:focus
{
outline
:
none
;
}
&
:active
{
outline
:
none
;
}
&
.btn-clipboard
{
padding-left
:
15px
;
padding-right
:
15px
;
}
}
.active
{
@include
box-shadow
(
inset
0
0
4px
rgba
(
0
,
0
,
0
,
0
.12
));
border
:
1px
solid
#c6cacf
!
important
;
background-color
:
#e4e7ed
!
important
;
}
.btn-green
{
@include
btn-green
}
}
.split-repo-buttons
{
display
:
inline-table
;
margin
:
0
12px
0
12px
;
...
...
@@ -378,9 +340,9 @@
.breadcrumb.repo-breadcrumb
{
padding
:
0
;
line-height
:
42px
;
background
:
transparent
;
border
:
none
;
line-height
:
42px
;
margin
:
0
;
>
li
+
li
:before
{
...
...
@@ -407,12 +369,12 @@
width
:
50%
;
display
:
inline-block
;
float
:
right
;
padding-top
:
7
px
;
padding-top
:
11
px
;
text-align
:
right
;
.btn-green
{
margin-top
:
-2px
;
margin-left
:
10px
;
float
:
right
;
}
}
...
...
app/helpers/button_helper.rb
View file @
f414928a
...
...
@@ -17,7 +17,7 @@ module ButtonHelper
def
clipboard_button
(
data
=
{})
content_tag
:button
,
icon
(
'clipboard'
),
class:
'btn btn-
xs btn-
clipboard'
,
class:
'btn btn-clipboard'
,
data:
data
,
type: :button
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment