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
350a296a
Commit
350a296a
authored
Jul 21, 2014
by
Aron Carroll
Committed by
gergely-ujvari
Jul 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow additional styles when including an icon font
parent
74be459b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
base.scss
h/static/styles/base.scss
+36
-0
simple-search.scss
h/static/styles/simple-search.scss
+0
-0
No files found.
h/static/styles/base.scss
View file @
350a296a
...
...
@@ -160,6 +160,42 @@ $input-border-radius: 2px;
background-image
:
url("../images/
#{
$icon
}
")
;
}
//FONTICON////////////////////////////////
@mixin
fonticon
(
$char
,
$iconside
,
$offset
:
.5em
)
{
text-decoration
:
none
;
cursor
:
pointer
;
&
:hover
{
opacity
:
1
;
}
@if
$iconside
==
left
{
&
:before
{
content
:
$char
!
important
;
font-family
:
'icomoon'
;
margin-right
:
$offset
;
speak
:
none
;
font-weight
:
normal
;
@content
;
// Allow additonal styles for the icon.
}
&
:after
{
content
:
""
!
important
;
}
}
@if
$iconside
==
right
{
&
:before
{
content
:
""
!
important
;
}
&
:after
{
content
:
$char
!
important
;
font-family
:
'icomoon'
;
margin-left
:
$offset
;
speak
:
none
;
font-weight
:
normal
;
}
}
}
//NOISE///////////
//Provides the noise background
.noise
{
...
...
h/
cs
s/simple-search.scss
→
h/
static/style
s/simple-search.scss
View file @
350a296a
File moved
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