Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
rpteam
rp
Commits
c32a9424
Commit
c32a9424
authored
Jun 19, 2017
by
cynddl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tentative style for tag badges
parent
b1372aa1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
4 deletions
+34
-4
apps/rp/templates/rp/article_list_public.html
apps/rp/templates/rp/article_list_public.html
+6
-4
static/src/components/badge.css
static/src/components/badge.css
+28
-0
No files found.
apps/rp/templates/rp/article_list_public.html
View file @
c32a9424
...
...
@@ -21,8 +21,9 @@
<div
class=
"row"
>
<div
class=
"col-md-10 offset-1"
>
<header
class=
"my-4"
>
<ul
class=
"nav nav-compressed
my-4
"
>
<ul
class=
"nav nav-compressed"
>
{% if view.filter_lang == 'EN' %}
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{% url 'rp:public-article-list' %}"
>
...
...
@@ -96,13 +97,14 @@
<div
class=
"collapse"
id=
"collapseTags"
>
{% for t in tags %}
<a
class=
"badge badge-pill badge-primary"
href=
"{% url 'rp:public-article-list-tag' filter_tag=t.name %}"
>
{{t}} {{t.num_times}}
<a
class=
"badge badge-tag"
href=
"{% url 'rp:public-article-list-tag' filter_tag=t.name %}"
>
<span>
{{t}}
</span>
</a>
{% endfor %}
</div>
</header>
{% for article in object_list %}
<article
class=
"article-card d-flex"
>
<div
class=
"article-card-img"
>
...
...
static/src/components/badge.css
View file @
c32a9424
...
...
@@ -5,3 +5,31 @@
.badge.badge-info
{
background-color
:
var
(
--color-light-blue
);
}
.badge.badge-tag
{
border
:
1px
solid
var
(
--color-light-blue
);
color
:
var
(
--color-dark-blue
);
font-weight
:
300
;
font-size
:
0.9rem
;
display
:
inline-flex
;
margin
:
0.25rem
0
;
padding
:
0
;
&
span
{
padding
:
0.50em
0.4em
;
}
&
span
.badge-count
{
border-left
:
1px
solid
var
(
--color-light-blue
);
}
&
:hover
,
&
:active
,
&
:focus
{
color
:
var
(
--color-black
);
border-color
:
var
(
--color-dark-blue
);
&
span.badge-count
{
border-color
:
var
(
--color-dark-blue
);
}
}
}
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