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
d4d5e804
Commit
d4d5e804
authored
Nov 13, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url_utility and style backport
parent
1c116bc9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
0 deletions
+48
-0
app/assets/javascripts/lib/utils/url_utility.js
app/assets/javascripts/lib/utils/url_utility.js
+4
-0
app/assets/stylesheets/framework.scss
app/assets/stylesheets/framework.scss
+1
-0
app/assets/stylesheets/framework/mixins.scss
app/assets/stylesheets/framework/mixins.scss
+28
-0
app/assets/stylesheets/framework/popup.scss
app/assets/stylesheets/framework/popup.scss
+15
-0
No files found.
app/assets/javascripts/lib/utils/url_utility.js
View file @
d4d5e804
...
@@ -100,6 +100,10 @@ export function visitUrl(url, external = false) {
...
@@ -100,6 +100,10 @@ export function visitUrl(url, external = false) {
}
}
}
}
export
function
redirectTo
(
url
)
{
return
window
.
location
.
assign
(
url
);
}
window
.
gl
=
window
.
gl
||
{};
window
.
gl
=
window
.
gl
||
{};
window
.
gl
.
utils
=
{
window
.
gl
.
utils
=
{
...(
window
.
gl
.
utils
||
{}),
...(
window
.
gl
.
utils
||
{}),
...
...
app/assets/stylesheets/framework.scss
View file @
d4d5e804
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
@import
"framework/modal"
;
@import
"framework/modal"
;
@import
"framework/pagination"
;
@import
"framework/pagination"
;
@import
"framework/panels"
;
@import
"framework/panels"
;
@import
"framework/popup"
;
@import
"framework/secondary-navigation-elements"
;
@import
"framework/secondary-navigation-elements"
;
@import
"framework/selects"
;
@import
"framework/selects"
;
@import
"framework/sidebar"
;
@import
"framework/sidebar"
;
...
...
app/assets/stylesheets/framework/mixins.scss
View file @
d4d5e804
...
@@ -180,3 +180,31 @@
...
@@ -180,3 +180,31 @@
display
:
none
;
display
:
none
;
}
}
}
}
@mixin
triangle
(
$color
,
$border-color
,
$size
,
$border-size
)
{
&
:
:
before
,
&::
after
{
bottom
:
100%
;
left
:
50%
;
border
:
solid
transparent
;
content
:
''
;
height
:
0
;
width
:
0
;
position
:
absolute
;
pointer-events
:
none
;
}
&
:
:
before
{
border-color
:
transparent
;
border-bottom-color
:
$border-color
;
border-width
:
(
$size
+
$border-size
);
margin-left
:
-
(
$size
+
$border-size
);
}
&
:
:
after
{
border-color
:
transparent
;
border-bottom-color
:
$color
;
border-width
:
$size
;
margin-left
:
-
$size
;
}
}
app/assets/stylesheets/framework/popup.scss
0 → 100644
View file @
d4d5e804
.popup
{
@include
triangle
(
$gray-lighter
,
$gray-darker
,
$popup-triangle-size
,
$popup-triangle-border-size
);
padding
:
$gl-padding
;
background-color
:
$gray-lighter
;
border
:
1px
solid
$gray-darker
;
border-radius
:
$border-radius-default
;
box-shadow
:
0
5px
8px
$popup-box-shadow-color
;
position
:
relative
;
}
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