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
070de825
Commit
070de825
authored
Jan 09, 2018
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust modal style to new design
parent
21bb3933
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
12 deletions
+42
-12
app/assets/javascripts/vue_shared/components/modal.vue
app/assets/javascripts/vue_shared/components/modal.vue
+2
-2
app/assets/stylesheets/framework/modal.scss
app/assets/stylesheets/framework/modal.scss
+26
-6
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
+2
-2
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+5
-0
app/views/projects/blob/_new_dir.html.haml
app/views/projects/blob/_new_dir.html.haml
+1
-1
app/views/projects/blob/_upload.html.haml
app/views/projects/blob/_upload.html.haml
+1
-1
changelogs/unreleased/winh-style-modals.yml
changelogs/unreleased/winh-style-modals.yml
+5
-0
No files found.
app/assets/javascripts/vue_shared/components/modal.vue
View file @
070de825
...
...
@@ -122,7 +122,7 @@
>
<button
type=
"button"
class=
"btn
pull-left
"
class=
"btn"
:class=
"btnCancelKindClass"
@
click=
"emitCancel($event)"
data-dismiss=
"modal"
...
...
@@ -132,7 +132,7 @@
<button
v-if=
"primaryButtonLabel"
type=
"button"
class=
"btn
pull-right
js-primary-button"
class=
"btn js-primary-button"
:disabled=
"submitDisabled"
:class=
"btnKindClass"
@
click=
"emitSubmit($event)"
...
...
app/assets/stylesheets/framework/modal.scss
View file @
070de825
.modal-header
{
background-color
:
$modal-body-bg
;
padding
:
#{
3
*
$grid-size
}
#{
2
*
$grid-size
}
;
.page-title
{
...
...
@@ -8,6 +9,7 @@
.modal-body
{
background-color
:
$modal-body-bg
;
min-height
:
$modal-body-height
;
position
:
relative
;
padding
:
#{
3
*
$grid-size
}
#{
2
*
$grid-size
}
;
...
...
@@ -20,6 +22,30 @@
}
}
.modal-footer
{
display
:
flex
;
flex-direction
:
row
;
.btn
+
.btn
{
margin-left
:
$grid-size
;
}
@media
(
max-width
:
$screen-xs-max
)
{
flex-direction
:
column
;
.btn
+
.btn
{
margin-left
:
0
;
margin-top
:
$grid-size
;
}
}
@media
(
min-width
:
$screen-sm-min
)
{
.btn
:first-of-type
{
margin-left
:
auto
;
}
}
}
body
.modal-open
{
overflow
:
hidden
;
}
...
...
@@ -32,12 +58,6 @@ body.modal-open {
}
}
@media
(
min-width
:
$screen-md-min
)
{
.modal-dialog
{
width
:
860px
;
}
}
@media
(
min-width
:
$screen-lg-min
)
{
.modal-full
{
width
:
98%
;
...
...
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
View file @
070de825
...
...
@@ -194,6 +194,6 @@ $modal-body-bg: $white-light;
//** Modal footer border color
// $modal-footer-border-color: $modal-header-border-color
// $modal-lg: 900px
// $modal-md: 600px
$modal-lg
:
860px
;
$modal-md
:
540px
;
// $modal-sm: 300px
app/assets/stylesheets/framework/variables.scss
View file @
070de825
...
...
@@ -733,3 +733,8 @@ $popup-box-shadow-color: rgba(90, 90, 90, 0.05);
Multi file editor
*/
$border-color-settings
:
#e1e1e1
;
/*
Modals
*/
$modal-body-height
:
134px
;
app/views/projects/blob/_new_dir.html.haml
View file @
070de825
#modal-create-new-dir
.modal
.modal-dialog
.modal-dialog
.modal-lg
.modal-content
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
...
...
app/views/projects/blob/_upload.html.haml
View file @
070de825
#modal-upload-blob
.modal
.modal-dialog
.modal-dialog
.modal-lg
.modal-content
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
...
...
changelogs/unreleased/winh-style-modals.yml
0 → 100644
View file @
070de825
---
title
:
Adjust modal style to new design
merge_request
:
16310
author
:
type
:
other
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