mirror of
https://github.com/torproject/styleguide.git
synced 2024-11-26 19:00:22 +00:00
Update styleguide w lego
This commit is contained in:
parent
dd82942581
commit
5335337cee
@ -1,6 +1,6 @@
|
||||
_model: page
|
||||
---
|
||||
title: Components | Tor Styleguide
|
||||
title: Components
|
||||
---
|
||||
body:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
_model: page
|
||||
---
|
||||
title: Components | Tor Styleguide
|
||||
title: Components
|
||||
---
|
||||
body:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
_model: page
|
||||
---
|
||||
title: Getting Started | Tor Styleguide
|
||||
title: Getting Started
|
||||
---
|
||||
body:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
_model: page
|
||||
---
|
||||
title: Getting Started | Tor Styleguide
|
||||
title: Getting Started
|
||||
---
|
||||
body:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
_model: page
|
||||
---
|
||||
title: Visuals | Tor Styleguide
|
||||
title: Visuals
|
||||
---
|
||||
body:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
_model: page
|
||||
---
|
||||
title: Visuals | Tor Styleguide
|
||||
title: Visuals
|
||||
---
|
||||
body:
|
||||
|
||||
|
19
databags/menu+en.ini
Normal file
19
databags/menu+en.ini
Normal file
@ -0,0 +1,19 @@
|
||||
[about]
|
||||
path = https://www.torproject.org/about/history
|
||||
label = About
|
||||
|
||||
[documentation]
|
||||
path = https://2019.www.torproject.org/docs/documentation.html.en
|
||||
label = Documentation
|
||||
|
||||
[support]
|
||||
path = https://support.torproject.org/
|
||||
label = Support
|
||||
|
||||
[blog]
|
||||
path = https://blog.torproject.org
|
||||
label = Blog
|
||||
|
||||
[donate]
|
||||
path = https://donate.torproject.org
|
||||
label = Donate
|
15
databags/menu_footer+en.ini
Normal file
15
databags/menu_footer+en.ini
Normal file
@ -0,0 +1,15 @@
|
||||
[jobs]
|
||||
path = https://www.torproject.org/about/jobs
|
||||
label = Jobs
|
||||
|
||||
[blog]
|
||||
path = https://blog.torproject.org
|
||||
label = Blog
|
||||
|
||||
[contact]
|
||||
path = https://www.torproject.org/contact
|
||||
label = Contact
|
||||
|
||||
[press]
|
||||
path = https://www.torproject.org/press
|
||||
label = Press
|
2
i18n/.gitignore
vendored
Normal file
2
i18n/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
Binary file not shown.
@ -2,8 +2,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-07-09 14:31+CET\n"
|
||||
"PO-Revision-Date: 2018-11-02 14:16+CET\n"
|
||||
"POT-Creation-Date: 2019-06-25 17:05+CET\n"
|
||||
"PO-Revision-Date: 2018-11-29 17:17+CET\n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: en\n"
|
||||
@ -94,11 +94,14 @@ msgstr "Search"
|
||||
#~ "Trademark, copyright notices, and rules for use by third parties can be "
|
||||
#~ "found in our "
|
||||
|
||||
#~ msgid "Tor Project | Support"
|
||||
#~ msgstr "Tor Project | Support"
|
||||
#~ msgid "Tor Project | "
|
||||
#~ msgstr "Tor Project | "
|
||||
|
||||
#~ msgid "Tor Logo"
|
||||
#~ msgstr "Tor Logo"
|
||||
|
||||
#~ msgid "Topics"
|
||||
#~ msgstr "Topics"
|
||||
|
||||
#~ msgid "Permalink"
|
||||
#~ msgstr "Permalink"
|
||||
|
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-07-09 14:41+CET\n"
|
||||
"POT-Creation-Date: 2019-07-09 15:24+CET\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: en <LL@li.org>\n"
|
||||
|
@ -3,3 +3,9 @@ name = styleguide
|
||||
url = https://styleguide.torproject.org/
|
||||
url_style = relative
|
||||
locale = en
|
||||
|
||||
[alternatives.en]
|
||||
name = English
|
||||
primary = yes
|
||||
url_prefix = /
|
||||
locale = en_US
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block title %}{{ this.title }}{% endblock %}
|
||||
{% block title %}{{ this.title }} | Tor Styleguide {% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
@ -19,9 +19,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include 'footer.html' %}
|
||||
|
||||
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block title %}{{ this.title }}{% endblock %}
|
||||
{% block title %}{{ this.title }} | Tor Styleguide {% endblock %}
|
||||
{% block body %}
|
||||
|
||||
<nav id="components-nav" class="nav flex-column d-none d-xl-block col-xl-1 bd-toc border">
|
||||
@ -287,10 +287,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% include 'footer.html' %}
|
||||
|
||||
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block title %}{{ this.title }}{% endblock %}
|
||||
{% block title %}{{ this.title }} | Tor Styleguide {% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
@ -19,9 +19,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include 'footer.html' %}
|
||||
|
||||
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
@ -1,35 +1,27 @@
|
||||
{% from "macros/links.html" import get_link %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="{{ '/static/bootstrap.css'|asseturl }}">
|
||||
<link rel="stylesheet" href="{{ '/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css'|asseturl }}">
|
||||
<title>{% block title %}Tor Styleguide | The Tor Project {% endblock %}</title>
|
||||
<body>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="{{ '/static/css/bootstrap.css'|asseturl }}">
|
||||
<link rel="stylesheet" href="{{ '/static/fonts/fontawesome/css/all.min.css'|asseturl }}" rel="stylesheet">
|
||||
<title>{% block title %} | Tor Styleguide | The Tor Project {% endblock %}</title>
|
||||
<body class="no-gutters">
|
||||
<header>
|
||||
{% include 'navbar.html' %}
|
||||
</header>
|
||||
<div class="page">
|
||||
<div class="container-fluid">
|
||||
<div class="row flex-xl-nowrap">
|
||||
<div class="col-12 col-md-2 col-xl-1 bd-sidebar">
|
||||
<nav id="bd-docs-nav" class="collapse bd-links">
|
||||
<ul class="nav nav-pills flex-column">
|
||||
{% for id, item in bag('menu').items() %}
|
||||
<li{% if this.is_child_of(item.path) %} class="nav-item toc-entry toc-h2 active" {% else %} class="toc-entry toc-h2"{% endif %}><a class="nav-link" href="{{ item.path|url }}">{{ item.label }}</a></li> {% endfor %}
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
{% block body %}{% endblock %}
|
||||
|
||||
</div>
|
||||
<div class="row flex-xl-nowrap">
|
||||
{% include 'sidenav.html' %}
|
||||
<div class="row col-sm-12 col-xs-12 ml-sm-auto col-md-9 col-lg-9 mx-auto m-5">
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{% include 'footer.html' %}
|
||||
<footer class="footer">
|
||||
{% include 'footer.html' %}
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
1
templates/macros/footer.html
Symbolic link
1
templates/macros/footer.html
Symbolic link
@ -0,0 +1 @@
|
||||
../../lego/templates/macros/footer.html
|
@ -1,15 +1,11 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block title %}{{ this.title }}{% endblock %}
|
||||
{% block body %}
|
||||
<nav id="components-nav" class="d-none d-xl-block col-xl-2 bd-toc">
|
||||
<ul class="nav nav-pills flex-column sticky-top">
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<main role="main" class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" data-spy="scroll" data-target="#components-nav" data-offset="0">
|
||||
<h1>{{ this.title }}</h1>
|
||||
|
||||
{{ this.body }}
|
||||
|
||||
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
34
templates/sidenav.html
Normal file
34
templates/sidenav.html
Normal file
@ -0,0 +1,34 @@
|
||||
<div class="container-fluid sidebar col-xs-12 col-sm-12 col-md-3 col-lg-3">
|
||||
<nav class="smalltopics no-background navbar navbar-expand-lg navbar-light bg-white p-0 fixed">
|
||||
<label class="side-toggler" for="menu-toggle">
|
||||
<a class="btn btn-lg outline-primary text-primary navbar-toggler chevron" data-toggle="collapse" data-target="#navbarSupportedTopicsContent" aria-controls="navbarSupportedTopicsContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="oi oi-chevron-top chevron-up"></span>
|
||||
<span class="oi oi-chevron-bottom chevron-down"></span>
|
||||
</a>
|
||||
</label>
|
||||
<input type="checkbox" id="menu-toggle"/>
|
||||
|
||||
<div class="collapse navbar-collapse burger-menu" id="navbarSupportedTopicsContent">
|
||||
<ul class="nav nav-pills flex-column">
|
||||
{% for child in this.children %}
|
||||
<li{% if this.is_child_of(child.path) %} class="toc-entry toc-h2 active nav-item" {% else %} class="toc-entry toc-h2 nav-item" {% endif %}>
|
||||
<a role="button" {% if this.is_child_of(child.path) %} class="nav-link active" {% else %} class="nav-link" {% endif %}
|
||||
href="{{ child.path|url(alt=this.alt) }}">{{ _(child.title) }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<hr class="mb-0" />
|
||||
</nav>
|
||||
|
||||
<nav class="d-none d-sm-block bg-white border-right sidetopics" id="sidenav-topics" style="top:172px;">
|
||||
<ul class="nav nav-pills flex-column">
|
||||
{% for child in this.children %}
|
||||
<li{% if this.is_child_of(child.path) %} class="toc-entry toc-h2 active nav-item" {% else %} class="toc-entry toc-h2 nav-item" {% endif %}>
|
||||
<a role="button" {% if this.is_child_of(child.path) %} class="nav-link active" {% else %} class="nav-link" {% endif %}
|
||||
href="{{ child.path|url(alt=this.alt) }}">{{ _(child.title) }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user