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
Jérome Perrin
gitlab-ce
Commits
f8526a7f
Commit
f8526a7f
authored
Dec 06, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'admin-scss' into 'master'
Remove admin.scss Removes admin-specific CSS See merge request !7932
parents
a361eb2f
a219158e
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
127 additions
and
193 deletions
+127
-193
app/assets/stylesheets/framework.scss
app/assets/stylesheets/framework.scss
+1
-0
app/assets/stylesheets/framework/blocks.scss
app/assets/stylesheets/framework/blocks.scss
+4
-5
app/assets/stylesheets/framework/broadcast-messages.scss
app/assets/stylesheets/framework/broadcast-messages.scss
+21
-0
app/assets/stylesheets/framework/common.scss
app/assets/stylesheets/framework/common.scss
+13
-1
app/assets/stylesheets/framework/lists.scss
app/assets/stylesheets/framework/lists.scss
+37
-2
app/assets/stylesheets/framework/tables.scss
app/assets/stylesheets/framework/tables.scss
+17
-0
app/assets/stylesheets/framework/wells.scss
app/assets/stylesheets/framework/wells.scss
+13
-0
app/assets/stylesheets/pages/admin.scss
app/assets/stylesheets/pages/admin.scss
+0
-168
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+6
-0
app/views/admin/abuse_reports/index.html.haml
app/views/admin/abuse_reports/index.html.haml
+4
-6
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+6
-6
app/views/admin/users/_user.html.haml
app/views/admin/users/_user.html.haml
+4
-4
app/views/admin/users/index.html.haml
app/views/admin/users/index.html.haml
+1
-1
No files found.
app/assets/stylesheets/framework.scss
View file @
f8526a7f
...
@@ -40,3 +40,4 @@
...
@@ -40,3 +40,4 @@
@import
"framework/blank"
;
@import
"framework/blank"
;
@import
"framework/wells.scss"
;
@import
"framework/wells.scss"
;
@import
"framework/page-header.scss"
;
@import
"framework/page-header.scss"
;
@import
"framework/broadcast-messages"
;
app/assets/stylesheets/framework/blocks.scss
View file @
f8526a7f
.light-well
{
background-color
:
$background-color
;
padding
:
15px
;
}
.centered-light-block
{
.centered-light-block
{
text-align
:
center
;
text-align
:
center
;
color
:
$gl-gray
;
color
:
$gl-gray
;
...
@@ -274,6 +269,10 @@
...
@@ -274,6 +269,10 @@
}
}
}
}
.emoji-icon
{
display
:
inline-block
;
}
@media
(
max-width
:
$screen-xs-max
)
{
@media
(
max-width
:
$screen-xs-max
)
{
margin-top
:
50px
;
margin-top
:
50px
;
text-align
:
center
;
text-align
:
center
;
...
...
app/assets/stylesheets/framework/broadcast-messages.scss
0 → 100644
View file @
f8526a7f
.broadcast-message
{
@extend
.alert-warning
;
padding
:
10px
;
text-align
:
center
;
div
,
p
{
display
:
inline
;
margin
:
0
;
a
{
color
:
inherit
;
text-decoration
:
underline
;
}
}
}
.broadcast-message-preview
{
@extend
.broadcast-message
;
margin-bottom
:
20px
;
}
app/assets/stylesheets/framework/common.scss
View file @
f8526a7f
...
@@ -379,7 +379,9 @@ table {
...
@@ -379,7 +379,9 @@ table {
border-top
:
1px
solid
$border-color
;
border-top
:
1px
solid
$border-color
;
}
}
.hide-bottom-border
{
border-bottom
:
none
!
important
;
}
.hide-bottom-border
{
border-bottom
:
none
!
important
;
}
.gl-accessibility
{
.gl-accessibility
{
&
:focus
{
&
:focus
{
...
@@ -396,3 +398,13 @@ table {
...
@@ -396,3 +398,13 @@ table {
z-index
:
1
;
z-index
:
1
;
}
}
}
}
.str-truncated
{
&
-60
{
@include
str-truncated
(
60%
);
}
&
-100
{
@include
str-truncated
(
100%
);
}
}
app/assets/stylesheets/framework/lists.scss
View file @
f8526a7f
...
@@ -106,13 +106,13 @@ ul.task-list {
...
@@ -106,13 +106,13 @@ ul.task-list {
}
}
}
}
// Generic content list
ul
.content-list
{
ul
.content-list
{
@include
basic-list
;
@include
basic-list
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
>
li
{
li
{
border-color
:
$table-border-color
;
border-color
:
$table-border-color
;
font-size
:
$list-font-size
;
font-size
:
$list-font-size
;
color
:
$list-text-color
;
color
:
$list-text-color
;
...
@@ -193,6 +193,41 @@ ul.content-list {
...
@@ -193,6 +193,41 @@ ul.content-list {
}
}
}
}
// Content list using flexbox
.flex-list
{
.flex-row
{
display
:
-
webkit-flex
;
display
:
-
ms-flexbox
;
display
:
flex
;
white-space
:
nowrap
;
}
.row-main-content
{
flex
:
1
1
auto
;
overflow
:
hidden
;
padding-right
:
8px
;
}
.row-title
{
font-weight
:
600
;
}
.row-second-line
{
display
:
block
;
}
.dropdown
{
.btn-block
{
margin-bottom
:
0
;
line-height
:
inherit
;
}
}
.label-default
{
color
:
$btn-transparent-color
;
}
}
.panel
>
.content-list
>
li
{
.panel
>
.content-list
>
li
{
padding
:
$gl-padding-top
$gl-padding
;
padding
:
$gl-padding-top
$gl-padding
;
...
...
app/assets/stylesheets/framework/tables.scss
View file @
f8526a7f
...
@@ -34,6 +34,10 @@ table {
...
@@ -34,6 +34,10 @@ table {
background-color
:
$background-color
;
background-color
:
$background-color
;
font-weight
:
normal
;
font-weight
:
normal
;
border-bottom
:
none
;
border-bottom
:
none
;
&
.wide
{
width
:
55%
;
}
}
}
td
{
td
{
...
@@ -42,3 +46,16 @@ table {
...
@@ -42,3 +46,16 @@ table {
}
}
}
}
}
}
.responsive-table
{
@media
(
max-width
:
$screen-sm-max
)
{
th
{
width
:
100%
;
}
td
{
width
:
100%
;
float
:
left
;
}
}
}
app/assets/stylesheets/framework/wells.scss
View file @
f8526a7f
...
@@ -43,3 +43,16 @@
...
@@ -43,3 +43,16 @@
background-color
:
$well-expand-item
;
background-color
:
$well-expand-item
;
}
}
}
}
.light-well
{
background-color
:
$background-color
;
padding
:
15px
;
}
.well-centered
{
h1
{
font-weight
:
normal
;
text-align
:
center
;
font-size
:
48px
;
}
}
app/assets/stylesheets/pages/admin.scss
deleted
100644 → 0
View file @
a361eb2f
/**
* Admin area
*
*/
.admin-dashboard
{
.data
{
a
{
h1
{
line-height
:
48px
;
font-size
:
48px
;
padding
:
20px
;
text-align
:
center
;
font-weight
:
normal
;
}
}
}
.str-truncated
{
max-width
:
60%
;
}
}
.admin-filter
form
{
.select2-container
{
width
:
100%
;
}
.controls
{
margin-left
:
130px
;
}
.form-actions
{
padding-left
:
130px
;
background
:
$white-light
;
}
.visibility-levels
{
.controls
{
margin-bottom
:
9px
;
}
i
{
color
:
inherit
;
}
}
}
.broadcast-messages
{
.message
{
line-height
:
2
;
}
}
.broadcast-message
{
@extend
.alert-warning
;
padding
:
10px
;
text-align
:
center
;
>
div
,
p
{
display
:
inline
;
margin
:
0
;
a
{
color
:
inherit
;
text-decoration
:
underline
;
}
}
}
.broadcast-message-preview
{
@extend
.broadcast-message
;
margin-bottom
:
20px
;
}
// Users List
.users-list
{
.user-row
{
display
:
-
webkit-flex
;
display
:
-
ms-flexbox
;
display
:
flex
;
white-space
:
nowrap
;
}
.user-details
{
flex
:
1
1
auto
;
overflow
:
hidden
;
padding-right
:
8px
;
}
.user-name
{
display
:
inline-block
;
font-weight
:
600
;
}
.user-name
,
.user-email
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.dropdown
{
.btn-block
{
margin-bottom
:
0
;
line-height
:
inherit
;
}
}
.label-default
{
color
:
$btn-transparent-color
;
}
}
.abuse-reports
{
.table
{
table-layout
:
fixed
;
}
.subheading
{
padding-bottom
:
$gl-padding
;
}
.message
{
word-wrap
:
break-word
;
}
.btn
{
white-space
:
normal
;
padding
:
$gl-btn-padding
;
}
th
{
width
:
15%
;
&
.wide
{
width
:
55%
;
}
}
@media
(
max-width
:
$screen-sm-max
)
{
th
{
width
:
100%
;
}
td
{
width
:
100%
;
float
:
left
;
}
}
.no-reports
{
.emoji-icon
{
margin-left
:
$btn-side-margin
;
margin-top
:
3px
;
}
span
{
font-size
:
18px
;
}
}
}
.admin-builds-table
{
.ci-table
td
:last-child
{
min-width
:
120px
;
}
}
app/assets/stylesheets/pages/pipelines.scss
View file @
f8526a7f
...
@@ -280,6 +280,12 @@
...
@@ -280,6 +280,12 @@
}
}
}
}
.admin-builds-table
{
.ci-table
td
:last-child
{
min-width
:
120px
;
}
}
// Pipeline visualization
// Pipeline visualization
.toggle-pipeline-btn
{
.toggle-pipeline-btn
{
...
...
app/views/admin/abuse_reports/index.html.haml
View file @
f8526a7f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
.abuse-reports
.abuse-reports
-
if
@abuse_reports
.
present?
-
if
@abuse_reports
.
present?
.table-holder
.table-holder
%table
.table
%table
.table
.responsive-table
%thead
.hidden-sm.hidden-xs
%thead
.hidden-sm.hidden-xs
%tr
%tr
%th
User
%th
User
...
@@ -13,8 +13,6 @@
...
@@ -13,8 +13,6 @@
%th
Action
%th
Action
=
render
@abuse_reports
=
render
@abuse_reports
-
else
-
else
.no-reports
.empty-state
%span
.pull-left
.text-center
There are no abuse reports!
%h4
There are no abuse reports!
#{
emoji_icon
'tada'
}
.pull-left
=
emoji_icon
'tada'
app/views/admin/dashboard/index.html.haml
View file @
f8526a7f
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
%hr
%hr
.row
.row
.col-sm-4
.col-sm-4
.light-well
.light-well
.well-centered
%h4
Projects
%h4
Projects
.data
.data
=
link_to
admin_namespaces_projects_path
do
=
link_to
admin_namespaces_projects_path
do
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
%hr
%hr
=
link_to
(
'New Project'
,
new_project_path
,
class:
"btn btn-new"
)
=
link_to
(
'New Project'
,
new_project_path
,
class:
"btn btn-new"
)
.col-sm-4
.col-sm-4
.light-well
.light-well
.well-centered
%h4
Users
%h4
Users
.data
.data
=
link_to
admin_users_path
do
=
link_to
admin_users_path
do
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
%hr
%hr
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
.col-sm-4
.col-sm-4
.light-well
.light-well
.well-centered
%h4
Groups
%h4
Groups
.data
.data
=
link_to
admin_groups_path
do
=
link_to
admin_groups_path
do
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
%hr
%hr
-
@projects
.
each
do
|
project
|
-
@projects
.
each
do
|
project
|
%p
%p
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
],
class:
'str-truncated'
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
],
class:
'str-truncated
-60
'
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
project
.
created_at
)
}
#{
time_ago_with_tooltip
(
project
.
created_at
)
}
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
%hr
%hr
-
@users
.
each
do
|
user
|
-
@users
.
each
do
|
user
|
%p
%p
=
link_to
[
:admin
,
user
],
class:
'str-truncated'
do
=
link_to
[
:admin
,
user
],
class:
'str-truncated
-60
'
do
=
user
.
name
=
user
.
name
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
user
.
created_at
)
}
#{
time_ago_with_tooltip
(
user
.
created_at
)
}
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
%hr
%hr
-
@groups
.
each
do
|
group
|
-
@groups
.
each
do
|
group
|
%p
%p
=
link_to
[
:admin
,
group
],
class:
'str-truncated'
do
=
link_to
[
:admin
,
group
],
class:
'str-truncated
-60
'
do
=
group
.
name
=
group
.
name
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
group
.
created_at
)
}
#{
time_ago_with_tooltip
(
group
.
created_at
)
}
app/views/admin/users/_user.html.haml
View file @
f8526a7f
%li
.
user
-row
%li
.
flex
-row
.user-avatar
.user-avatar
=
image_tag
avatar_icon
(
user
),
class:
"avatar"
,
alt:
''
=
image_tag
avatar_icon
(
user
),
class:
"avatar"
,
alt:
''
.
user-details
.
row-main-content
.user-name
.user-name
.row-title.str-truncated-100
=
link_to
user
.
name
,
[
:admin
,
user
]
=
link_to
user
.
name
,
[
:admin
,
user
]
-
if
user
.
blocked?
-
if
user
.
blocked?
%span
.label.label-danger
blocked
%span
.label.label-danger
blocked
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
%span
.label.label-default
External
%span
.label.label-default
External
-
if
user
==
current_user
-
if
user
==
current_user
%span
It's you!
%span
It's you!
.
user-email
.
row-second-line.str-truncated-100
=
mail_to
user
.
email
,
user
.
email
=
mail_to
user
.
email
,
user
.
email
.controls
.controls
=
link_to
'Edit'
,
edit_admin_user_path
(
user
),
id:
"edit_
#{
dom_id
(
user
)
}
"
,
class:
'btn'
=
link_to
'Edit'
,
edit_admin_user_path
(
user
),
id:
"edit_
#{
dom_id
(
user
)
}
"
,
class:
'btn'
...
...
app/views/admin/users/index.html.haml
View file @
f8526a7f
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
%small
.badge
=
number_with_delimiter
(
User
.
without_projects
.
count
)
%small
.badge
=
number_with_delimiter
(
User
.
without_projects
.
count
)
.fade-right
.fade-right
%ul
.
users
-list.content-list
%ul
.
flex
-list.content-list
-
if
@users
.
empty?
-
if
@users
.
empty?
%li
%li
.nothing-here-block
No users found.
.nothing-here-block
No users found.
...
...
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