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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
b3aebbbd
Commit
b3aebbbd
authored
Oct 13, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refactor-styles' into 'master'
Refactor styles cc @skyruler See merge request !1577
parents
b128d89a
ab604c73
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
172 additions
and
170 deletions
+172
-170
app/assets/stylesheets/framework.scss
app/assets/stylesheets/framework.scss
+3
-2
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+9
-1
app/assets/stylesheets/framework/lists.scss
app/assets/stylesheets/framework/lists.scss
+1
-1
app/assets/stylesheets/framework/mixins.scss
app/assets/stylesheets/framework/mixins.scss
+0
-141
app/assets/stylesheets/framework/tables.scss
app/assets/stylesheets/framework/tables.scss
+16
-0
app/assets/stylesheets/framework/tw_bootstrap.scss
app/assets/stylesheets/framework/tw_bootstrap.scss
+0
-22
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
+0
-0
app/assets/stylesheets/framework/typography.scss
app/assets/stylesheets/framework/typography.scss
+143
-2
app/assets/stylesheets/pages/note_form.scss
app/assets/stylesheets/pages/note_form.scss
+0
-1
No files found.
app/assets/stylesheets/framework.scss
View file @
b3aebbbd
...
...
@@ -2,8 +2,9 @@
@import
"framework/variables"
;
@import
"framework/mixins"
;
@import
"framework/layout"
;
@import
'framework/gl_variables'
;
@import
'framework/gl_bootstrap'
;
@import
'framework/tw_bootstrap_variables'
;
@import
'framework/tw_bootstrap'
;
@import
"framework/avatar.scss"
;
@import
"framework/blocks.scss"
;
@import
"framework/buttons.scss"
;
...
...
app/assets/stylesheets/framework/buttons.scss
View file @
b3aebbbd
...
...
@@ -6,7 +6,7 @@
font-size
:
13px
;
font-weight
:
600
;
line-height
:
18px
;
padding
:
11px
16px
;
padding
:
11px
$gl-padding
;
letter-spacing
:
.4px
;
&
:focus
,
...
...
@@ -71,6 +71,14 @@
@include
btn-default
;
@include
btn-white
;
&
.btn-sm
{
padding
:
5px
10px
;
}
&
.btn-xs
{
padding
:
1px
5px
;
}
&
.btn-success
,
&
.btn-new
,
&
.btn-create
,
...
...
app/assets/stylesheets/framework/lists.scss
View file @
b3aebbbd
...
...
@@ -117,7 +117,7 @@ ul.content-list {
}
.controls
{
padding-top
:
10
px
;
padding-top
:
5
px
;
float
:
right
;
}
}
...
...
app/assets/stylesheets/framework/mixins.scss
View file @
b3aebbbd
...
...
@@ -54,147 +54,6 @@
@include
box-shadow
(
0
0
0
3px
#f1f1f1
);
}
@mixin
md-typography
{
color
:
$md-text-color
;
a
{
color
:
$md-link-color
;
}
img
{
max-width
:
100%
;
}
*
:first-child
{
margin-top
:
0
;
}
code
{
font-family
:
$monospace_font
;
white-space
:
pre
;
word-wrap
:
normal
;
padding
:
1px
2px
;
}
kbd
{
display
:
inline-block
;
padding
:
3px
5px
;
font-size
:
11px
;
line-height
:
10px
;
color
:
#555
;
vertical-align
:
middle
;
background-color
:
#FCFCFC
;
border-width
:
1px
;
border-style
:
solid
;
border-color
:
#CCC
#CCC
#BBB
;
border-image
:
none
;
border-radius
:
3px
;
box-shadow
:
0px
-1px
0px
#BBB
inset
;
}
h1
{
font-size
:
1
.3em
;
font-weight
:
600
;
margin
:
24px
0
12px
0
;
padding
:
0
0
10px
0
;
border-bottom
:
1px
solid
#e7e9ed
;
color
:
#313236
;
}
h2
{
font-size
:
1
.2em
;
font-weight
:
600
;
margin
:
24px
0
12px
0
;
color
:
#313236
;
}
h3
{
margin
:
24px
0
12px
0
;
font-size
:
1
.25em
;
}
h4
{
margin
:
24px
0
12px
0
;
font-size
:
1
.1em
;
}
h5
{
margin
:
24px
0
12px
0
;
font-size
:
1em
;
}
h6
{
margin
:
24px
0
12px
0
;
font-size
:
0
.90em
;
}
blockquote
{
padding
:
8px
21px
;
margin
:
12px
0
12px
;
border-left
:
3px
solid
#e7e9ed
;
}
blockquote
p
{
color
:
#7f8fa4
!
important
;
font-size
:
15px
;
line-height
:
1
.5
;
}
p
{
color
:
#5c5d5e
;
margin
:
6px
0
0
0
;
}
table
{
@extend
.table
;
@extend
.table-bordered
;
margin
:
12px
0
12px
0
;
color
:
#5c5d5e
;
th
{
background
:
#f8fafc
;
}
}
pre
{
margin
:
12px
0
12px
0
!
important
;
background-color
:
#f8fafc
!
important
;
font-size
:
13px
!
important
;
color
:
#5b6169
!
important
;
line-height
:
1
.6em
!
important
;
@include
border-radius
(
2px
);
}
p
>
code
{
font-weight
:
inherit
;
}
ul
{
color
:
#5c5d5e
;
}
li
{
line-height
:
1
.6em
;
}
a
[
href
*=
"/uploads/"
],
a
[
href
*=
"storage.googleapis.com/google-code-attachments/"
]
{
&
:before
{
margin-right
:
4px
;
font
:
normal
normal
normal
14px
/
1
FontAwesome
;
font-size
:
inherit
;
text-rendering
:
auto
;
-webkit-font-smoothing
:
antialiased
;
content
:
"\f0c6"
;
}
&
:hover:before
{
text-decoration
:
none
;
}
}
}
@mixin
str-truncated
(
$max_width
:
82%
)
{
display
:
inline-block
;
overflow
:
hidden
;
...
...
app/assets/stylesheets/framework/tables.scss
View file @
b3aebbbd
table
{
&
.table
{
.dropdown-menu
a
{
text-decoration
:
none
;
}
.success
,
.warning
,
.danger
,
.info
{
color
:
#fff
;
a
:not
(
.btn
)
{
text-decoration
:
underline
;
color
:
#fff
;
}
}
tr
{
td
,
th
{
padding
:
8px
10px
;
...
...
app/assets/stylesheets/framework/
gl
_bootstrap.scss
→
app/assets/stylesheets/framework/
tw
_bootstrap.scss
View file @
b3aebbbd
...
...
@@ -32,8 +32,6 @@
@import
"bootstrap/pager"
;
@import
"bootstrap/labels"
;
@import
"bootstrap/badges"
;
@import
"bootstrap/jumbotron"
;
@import
"bootstrap/thumbnails"
;
@import
"bootstrap/alerts"
;
@import
"bootstrap/progress-bars"
;
@import
"bootstrap/list-group"
;
...
...
@@ -251,23 +249,3 @@
.text-info
:hover
{
color
:
$brand-info
;
}
// Tables =====================================================================
table
.table
{
.dropdown-menu
a
{
text-decoration
:
none
;
}
.success
,
.warning
,
.danger
,
.info
{
color
:
#fff
;
a
:not
(
.btn
)
{
text-decoration
:
underline
;
color
:
#fff
;
}
}
}
app/assets/stylesheets/framework/
gl
_variables.scss
→
app/assets/stylesheets/framework/
tw_bootstrap
_variables.scss
View file @
b3aebbbd
File moved
app/assets/stylesheets/framework/typography.scss
View file @
b3aebbbd
@mixin
md-typography
{
color
:
$md-text-color
;
a
{
color
:
$md-link-color
;
}
img
{
max-width
:
100%
;
}
*
:first-child
{
margin-top
:
0
;
}
code
{
font-family
:
$monospace_font
;
white-space
:
pre
;
word-wrap
:
normal
;
padding
:
1px
2px
;
}
kbd
{
display
:
inline-block
;
padding
:
3px
5px
;
font-size
:
11px
;
line-height
:
10px
;
color
:
#555
;
vertical-align
:
middle
;
background-color
:
#FCFCFC
;
border-width
:
1px
;
border-style
:
solid
;
border-color
:
#CCC
#CCC
#BBB
;
border-image
:
none
;
border-radius
:
3px
;
box-shadow
:
0px
-1px
0px
#BBB
inset
;
}
h1
{
font-size
:
1
.3em
;
font-weight
:
600
;
margin
:
24px
0
12px
0
;
padding
:
0
0
10px
0
;
border-bottom
:
1px
solid
#e7e9ed
;
color
:
#313236
;
}
h2
{
font-size
:
1
.2em
;
font-weight
:
600
;
margin
:
24px
0
12px
0
;
color
:
#313236
;
}
h3
{
margin
:
24px
0
12px
0
;
font-size
:
1
.25em
;
}
h4
{
margin
:
24px
0
12px
0
;
font-size
:
1
.1em
;
}
h5
{
margin
:
24px
0
12px
0
;
font-size
:
1em
;
}
h6
{
margin
:
24px
0
12px
0
;
font-size
:
0
.90em
;
}
blockquote
{
padding
:
8px
21px
;
margin
:
12px
0
12px
;
border-left
:
3px
solid
#e7e9ed
;
}
blockquote
p
{
color
:
#7f8fa4
!
important
;
font-size
:
15px
;
line-height
:
1
.5
;
}
p
{
color
:
#5c5d5e
;
margin
:
6px
0
0
0
;
}
table
{
@extend
.table
;
@extend
.table-bordered
;
margin
:
12px
0
12px
0
;
color
:
#5c5d5e
;
th
{
background
:
#f8fafc
;
}
}
pre
{
margin
:
12px
0
12px
0
!
important
;
background-color
:
#f8fafc
!
important
;
font-size
:
13px
!
important
;
color
:
#5b6169
!
important
;
line-height
:
1
.6em
!
important
;
@include
border-radius
(
2px
);
}
p
>
code
{
font-weight
:
inherit
;
}
ul
{
color
:
#5c5d5e
;
}
li
{
line-height
:
1
.6em
;
}
a
[
href
*=
"/uploads/"
],
a
[
href
*=
"storage.googleapis.com/google-code-attachments/"
]
{
&
:before
{
margin-right
:
4px
;
font
:
normal
normal
normal
14px
/
1
FontAwesome
;
font-size
:
inherit
;
text-rendering
:
auto
;
-webkit-font-smoothing
:
antialiased
;
content
:
"\f0c6"
;
}
&
:hover:before
{
text-decoration
:
none
;
}
}
}
/**
* Headers
*
...
...
@@ -6,7 +147,7 @@ body {
text-rendering
:optimizeLegibility
;
-webkit-text-shadow
:
rgba
(
255
,
255
,
255
,
0
.01
)
0
0
1px
;
}
.page-title
{
margin-top
:
0px
;
line-height
:
1
.3
;
...
...
@@ -127,4 +268,4 @@ textarea.js-gfm-input {
.strikethrough
{
text-decoration
:
line-through
;
}
\ No newline at end of file
}
app/assets/stylesheets/pages/note_form.scss
View file @
b3aebbbd
...
...
@@ -65,7 +65,6 @@
.note-image-attach
{
@extend
.col-md-4
;
@extend
.thumbnail
;
margin-left
:
45px
;
float
:
none
;
}
...
...
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