BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bf2fb848
Commit
bf2fb848
authored
May 31, 2018
by
Clement Ho
Committed by
Annabel Gray
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix snippets embed form
parent
02f8f900
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
snippets.scss
app/assets/stylesheets/framework/snippets.scss
+0
-15
_header.html.haml
app/views/shared/snippets/_header.html.haml
+5
-6
No files found.
app/assets/stylesheets/framework/snippets.scss
View file @
bf2fb848
...
@@ -49,26 +49,11 @@
...
@@ -49,26 +49,11 @@
margin-top
:
15px
;
margin-top
:
15px
;
}
}
.snippet-embed-input
{
height
:
35px
;
}
.embed-snippet
{
.embed-snippet
{
padding-right
:
0
;
padding-right
:
0
;
padding-top
:
$gl-padding
;
padding-top
:
$gl-padding
;
.form-control
{
cursor
:
auto
;
width
:
101%
;
margin-left
:
-1px
;
}
.embed-toggle-list
li
button
{
.embed-toggle-list
li
button
{
padding
:
8px
40px
;
padding
:
8px
40px
;
}
}
.embed-toggle
,
.snippet-clipboard-btn
{
height
:
35px
;
}
}
}
app/views/shared/snippets/_header.html.haml
View file @
bf2fb848
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
-
if
public_snippet?
-
if
public_snippet?
.embed-snippet
.embed-snippet
.input-group
.input-group
.input-group-
btn
.input-group-
prepend
%button
.btn.
embed-toggle
{
'data-toggle'
:
'dropdown'
,
type:
'button'
}
%button
.btn.
btn-svg.embed-toggle.input-group-text
{
'data-toggle'
:
'dropdown'
,
type:
'button'
}
%span
.js-embed-action
=
_
(
"Embed"
)
%span
.js-embed-action
=
_
(
"Embed"
)
=
sprite_icon
(
'angle-down'
,
size:
12
)
=
sprite_icon
(
'angle-down'
,
size:
12
,
css_class:
'caret-down'
)
%ul
.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%ul
.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%li
%li
%button
.js-embed-btn.btn.btn-transparent.is-active
{
type:
'button'
}
%button
.js-embed-btn.btn.btn-transparent.is-active
{
type:
'button'
}
...
@@ -44,7 +44,6 @@
...
@@ -44,7 +44,6 @@
%button
.js-share-btn.btn.btn-transparent
{
type:
'button'
}
%button
.js-share-btn.btn.btn-transparent
{
type:
'button'
}
%strong
.embed-toggle-list-item
=
_
(
"Share"
)
%strong
.embed-toggle-list-item
=
_
(
"Share"
)
%input
.js-snippet-url-area.snippet-embed-input.form-control
{
type:
"text"
,
autocomplete:
'off'
,
value:
snippet_embed
}
%input
.js-snippet-url-area.snippet-embed-input.form-control
{
type:
"text"
,
autocomplete:
'off'
,
value:
snippet_embed
}
.input-group-btn
.input-group-append
%button
.js-clipboard-btn.snippet-clipboard-btn.btn.btn-default.has-tooltip
{
title:
"Copy to clipboard"
,
'data-clipboard-target'
:
'.js-snippet-url-area'
}
=
clipboard_button
(
title:
s_
(
'Copy to clipboard'
),
class:
'js-clipboard-btn snippet-clipboard-btn btn btn-default'
,
target:
'.js-snippet-url-area'
)
=
sprite_icon
(
'duplicate'
,
size:
16
)
.clearfix
.clearfix
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