Go to file
2024-11-04 10:30:08 -05:00
.github Add .github/FUNDING.yml 2019-09-12 15:41:26 +02:00
assets Add lektor-scss 2023-01-12 09:46:02 -08:00
configs Add lektor-scss 2023-01-12 09:46:02 -08:00
content Update lego, add robots.txt (tpo/web/lego#7) 2022-06-30 21:41:43 -07:00
databags Add onion pattern 2019-12-04 20:41:18 -03:00
i18n Use menu databags from lego 2019-08-23 14:35:44 +02:00
lego@b4a3452393 fix scss plugin installation 2024-11-04 10:16:24 -05:00
models First push 2017-11-30 13:00:49 +01:00
templates remove obsolete symlink 2024-11-04 10:30:08 -05:00
.gitignore Add lektor-scss 2023-01-12 09:46:02 -08:00
.gitlab-ci.yml Add lektor-scss 2023-01-12 09:46:02 -08:00
.gitmodules fix scss plugin installation 2024-11-04 10:16:24 -05:00
.ruby-version Add alerts component and better menus 2017-12-01 16:11:29 +01:00
babel.cfg Add lektor-scss 2023-01-12 09:46:02 -08:00
README.md Update README.md 2021-03-17 20:29:11 +00:00
requirements.txt fix scss plugin installation 2024-11-04 10:16:24 -05:00
styleguide.lektorproject Update styleguide w lego 2019-07-09 15:25:09 +02:00

Style Guide

The Tor Styleguide is based on Bootstrap, an open-source toolkit for developing with HTML, CSS, and JS. We are currently implementing v4.0.0-beta.2.

You can also clone this repository and use our CSS or SASS files. SASS is a CSS extension language. Bootstrap and this styleguide are based on v3.5.4.

If you want to use SASS you can download the complete archive for the styleguide. The scss folder under assets contains all the sass files. Since we use bootstrap, we only add a few styles without modifying bootstrap core or defining new elements whenever possible. These are _tor_variables.scss and _tor.scss. These are imported in the main bootstrap scss file and compiled into the final css.

About

Bootstrap contains a few JavaScript libraries for extra interaction with the DOM. We use these libraries but do not add extra JavaScript. You might notice that if you run Tor Browser with high security mode, JavaScript is disabled by default. This styleguide is designed to also work for users using Tor Browser in high security mode, so that only few elements are affected if you disable JavaScript.

Getting Started

These instructions will get you a copy of the project up and running on your local machine. This styleguide has been built using Lektor. Lektor is a static content management system. You can build this yourself by installing Lektor.

Prerequisites

What things you need to install the software

Installing

Get the code by running:

git clone [repo address]

You must run two commands to pull the submodule:

git submodule init 

then

git submodule update

Run/Build With

lektor server

Extras

We also provide a minimal Lektor template website that you can start modifying. This is available at this repository.