Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
c5a433ff
Commit
c5a433ff
authored
Oct 20, 2014
by
Nick Stenning
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1487 from hypothesis/tag-input-tweaks-alt
Prevent tag input field from changing height
parents
0aba593d
7f71611c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
tags-input.scss
h/static/styles/tags-input.scss
+15
-8
No files found.
h/static/styles/tags-input.scss
View file @
c5a433ff
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// http://mbenford.github.io/ngTagsInput/gettingstarted
// http://mbenford.github.io/ngTagsInput/gettingstarted
@import
"mixins/forms"
;
@import
"mixins/forms"
;
@import
"compass/css3/user-interface"
;
tags-input
{
tags-input
{
.host
{
.host
{
...
@@ -10,7 +11,7 @@ tags-input {
...
@@ -10,7 +11,7 @@ tags-input {
.tags
{
.tags
{
@include
form-input
;
@include
form-input
;
@include
clearfix
;
@include
pie-
clearfix
;
&
.focused
{
&
.focused
{
@include
form-input-focus
;
@include
form-input-focus
;
...
@@ -19,23 +20,28 @@ tags-input {
...
@@ -19,23 +20,28 @@ tags-input {
// Input
// Input
.input
{
.input
{
float
:
left
;
float
:
left
;
margin-top
:
.1875em
;
padding
:
.1333em
0
;
padding
:
.2em
0
;
outline
:
none
;
outline
:
none
;
border
:
none
!
important
;
border
:
none
!
important
;
background
:
none
;
background
:
none
;
color
:
$gray
;
color
:
$gray
;
// Firefox and Webkit render input boxes at different heights. This
// causes issues when the tags (which render consistentely) are inserted
// and cause the height of the faux input to jump.
height
:
1
.4667em
;
}
}
}
}
.tag-list
{
.tag-list
{
margin-top
:
-.33em
;
// Absorb the first row of margin-top on the tags.
margin-top
:
-.33em
;
// Absorb the first row of margin-top on the tags.
float
:
left
;
}
}
.tag-item
{
.tag-item
{
float
:
left
;
float
:
left
;
position
:
relative
;
position
:
relative
;
padding
:
.
154em
1
.307em
.154
em
.538em
;
padding
:
.
0769em
1
.307em
.0769
em
.538em
;
margin-top
:
.384em
;
margin-top
:
.384em
;
margin-right
:
.384em
;
margin-right
:
.384em
;
font-size
:
.866em
;
font-size
:
.866em
;
...
@@ -49,15 +55,16 @@ tags-input {
...
@@ -49,15 +55,16 @@ tags-input {
}
}
.remove-button
{
.remove-button
{
@include
user-select
(
none
);
display
:
block
;
display
:
block
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
width
:
16px
;
width
:
.9412em
;
font-size
:
1
7px
;
font-size
:
1
.3077em
;
font-weight
:
bold
;
font-weight
:
bold
;
line-height
:
1
.2
;
line-height
:
1
;
text-align
:
center
;
text-align
:
center
;
color
:
#585858
;
color
:
#585858
;
cursor
:
pointer
;
cursor
:
pointer
;
...
@@ -66,7 +73,7 @@ tags-input {
...
@@ -66,7 +73,7 @@ tags-input {
}
}
.tags-read-only
{
.tags-read-only
{
font-size
:
11px
;
font-size
:
.8461em
;
margin
:
.4545em
0
;
margin
:
.4545em
0
;
.tag-list
{
.tag-list
{
...
...
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