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
5fff2f13
Commit
5fff2f13
authored
Apr 15, 2013
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement the tail/triangle on dropdowns
parent
bfb7c8fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
12 deletions
+34
-12
common.scss
h/css/common.scss
+34
-12
No files found.
h/css/common.scss
View file @
5fff2f13
...
...
@@ -312,24 +312,14 @@ blockquote {
.dropdown-menu
{
@include
rotateX
(
90deg
);
background
:
$white
;
left
:
0
;
top
:
2em
;
border
:
solid
.1em
$grayLighter
;
margin-top
:
.625em
;
top
:
100%
;
float
:
left
;
opacity
:
0
;
pointer-events
:
none
;
position
:
absolute
;
z-index
:
2
;
//Adds transparent element to top of menu to stop parent losing hover.
&
:before
{
content
:
""
;
background-color
:
transparent
;
position
:
absolute
;
width
:
100%
;
height
:
.8em
;
top
:
-.8em
;
left
:
0
;
}
li
{
cursor
:
pointer
;
...
...
@@ -372,11 +362,43 @@ blockquote {
color
:
inherit
;
}
// These psuedo-elements add the speech bubble tail / triangle.
&
:before
{
content
:
''
;
border-color
:
transparent
transparent
$grayLighter
transparent
;
border-style
:
solid
;
border-width
:
0
.5em
.625em
.5em
;
position
:
absolute
;
height
:
0
;
width
:
0
;
top
:
-.625em
;
left
:
.5em
;
}
&
:after
{
content
:
''
;
border-color
:
transparent
transparent
$white
transparent
;
border-style
:
solid
;
border-width
:
0
.5em
.625em
.5em
;
position
:
absolute
;
height
:
0
;
width
:
0
;
top
:
-.525em
;
left
:
.5em
;
z-index
:
3
;
}
// Aligns the dropdown menu to right
&
.pull-right
{
right
:
0
;
left
:
auto
;
text-align
:
right
;
// Align the tail
&
:before
,
&
:after
{
left
:
auto
;
right
:
.5em
;
}
}
}
...
...
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