mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-23 20:01:08 +00:00
Move privacytools.io files to privacytools.io directory
This commit is contained in:
196
privacytools.io/assets/css/dark.scss
Normal file
196
privacytools.io/assets/css/dark.scss
Normal file
@@ -0,0 +1,196 @@
|
||||
---
|
||||
---
|
||||
@import '_vars';
|
||||
|
||||
$dark-900: #181b21;
|
||||
$dark-800: #22262e;
|
||||
$dark-700: #343a46;
|
||||
$dark-600: #464f60;
|
||||
$light: #d8d8d8;
|
||||
$primary: #345e8e;
|
||||
$danger: #b63f4a;
|
||||
$secondary: $dark-600;
|
||||
$success: #2c7f40;
|
||||
$warning: #c6a339;
|
||||
$info: #218899;
|
||||
|
||||
|
||||
/*
|
||||
* HTML
|
||||
*/
|
||||
|
||||
body {
|
||||
background: $dark-900;
|
||||
color: $light;
|
||||
}
|
||||
a {
|
||||
color: lighten($primary, 25%);
|
||||
}
|
||||
a:hover {
|
||||
color: lighten($primary, 10%);
|
||||
}
|
||||
img {
|
||||
filter: saturate(80%);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Bootstrap
|
||||
*/
|
||||
|
||||
.alert a {
|
||||
color: lighten($primary, 30%);
|
||||
}
|
||||
|
||||
.bg-secondary, .btn-secondary, .badge-secondary { background-color: $secondary !important; }
|
||||
.btn-secondary, .card-secondary .card-header { border-color: $secondary !important; }
|
||||
.alert-secondary, .btn-secondary:hover {
|
||||
color: $light;
|
||||
background-color: darken($secondary, 10%);
|
||||
border-color: darken($secondary, 10%);
|
||||
}
|
||||
|
||||
.bg-primary, .btn-primary, .badge-primary { background-color: $primary !important; }
|
||||
.btn-primary, .card-primary .card-header { border-color: $primary !important; }
|
||||
.text-primary { color: $primary !important; }
|
||||
.alert-primary, .btn-primary:hover {
|
||||
color: $light;
|
||||
background-color: darken($primary, 10%);
|
||||
border-color: darken($primary, 10%);
|
||||
}
|
||||
|
||||
.bg-warning, .btn-warning, .badge-warning { background-color: $warning !important; }
|
||||
.btn-warning, .card-warning .card-header { border-color: $warning !important; }
|
||||
.btn-warning:hover { color: $dark-700 !important }
|
||||
.text-warning { color: $warning !important; }
|
||||
.card-warning > .text-dark { color: $dark-900 !important; }
|
||||
.alert-warning a { color: darken($primary, 6%); }
|
||||
.badge-warning a { color: $primary; }
|
||||
.alert-warning, .btn-warning:hover {
|
||||
color: $dark-900;
|
||||
background-color: darken($warning, 8%);
|
||||
border-color: darken($warning, 8%);
|
||||
}
|
||||
|
||||
.bg-info, .btn-info, .badge-info { background-color: $info !important; }
|
||||
.btn-info, .card-info .card-header { border-color: $info !important; }
|
||||
.text-info { color: $info !important; }
|
||||
.alert-info, .btn-info:hover {
|
||||
color: $light;
|
||||
background-color: darken($info, 10%);
|
||||
border-color: darken($info, 10%);
|
||||
}
|
||||
|
||||
.bg-success, .btn-success, .badge-success { background-color: $success !important; }
|
||||
.btn-success, .card-success .card-header { border-color: $success !important; }
|
||||
.text-success { color: $success !important; }
|
||||
.alert-success, .btn-success {
|
||||
color: $light;
|
||||
background-color: darken($success, 10%);
|
||||
border-color: darken($success, 10%);
|
||||
}
|
||||
|
||||
.bg-danger, .btn-danger, .badge-danger { background-color: $danger !important; }
|
||||
.btn-danger, .card-danger .card-header { border-color: $danger !important; }
|
||||
.text-danger { color: $danger !important; }
|
||||
.alert-danger, .btn-danger:hover {
|
||||
color: $light;
|
||||
background-color: darken($danger, 10%);
|
||||
border-color: darken($danger, 10%);
|
||||
}
|
||||
|
||||
.btn-tor { background: desaturate($tor, 10%); }
|
||||
.btn-tor:hover { background: darken($tor, 5%); }
|
||||
|
||||
.card {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.dropdown-item:hover {
|
||||
color: $light;
|
||||
background-color: $dark-800;
|
||||
}
|
||||
|
||||
.form-control,
|
||||
.form-control:focus {
|
||||
color: $light;
|
||||
background: $dark-800;
|
||||
border-color: $dark-800;
|
||||
}
|
||||
|
||||
.form-control[readonly],
|
||||
.form-control:disabled {
|
||||
background: $dark-800;
|
||||
}
|
||||
|
||||
.card,
|
||||
.jumbotron,
|
||||
.list-group-item,
|
||||
ol.breadcrumb {
|
||||
background: $dark-800;
|
||||
}
|
||||
|
||||
.blockquote {
|
||||
border-color: $dark-800;
|
||||
}
|
||||
|
||||
.bg-dark {
|
||||
background-color: $dark-800 !important;
|
||||
}
|
||||
|
||||
.dropdown-item {
|
||||
color: $light;
|
||||
}
|
||||
|
||||
.list-group-item {
|
||||
border-color: $dark-700;
|
||||
}
|
||||
|
||||
.text-dark {
|
||||
color: $light !important;
|
||||
}
|
||||
|
||||
table[data-sortable].sortable-theme-bootstrap {
|
||||
color: $light;
|
||||
background-color: $dark-800;
|
||||
}
|
||||
table[data-sortable].sortable-theme-bootstrap th,
|
||||
table[data-sortable].sortable-theme-bootstrap td {
|
||||
border-color: $dark-600 !important;
|
||||
}
|
||||
table[data-sortable].sortable-theme-bootstrap th[data-sorted="true"] {
|
||||
color: $light;
|
||||
background: $dark-700;
|
||||
}
|
||||
table[data-sortable].sortable-theme-bootstrap th[data-sorted="true"][data-sorted-direction="ascending"]::after, {
|
||||
border-bottom-color: $light;
|
||||
}
|
||||
table[data-sortable].sortable-theme-bootstrap th[data-sorted="true"][data-sorted-direction="descending"]::after {
|
||||
border-top-color: $light;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Other
|
||||
*/
|
||||
|
||||
.nav-dropdown {
|
||||
color: $light;
|
||||
background-color: $dark-900;
|
||||
border-color: $dark-800;
|
||||
}
|
||||
|
||||
.nav-theme-icon:before {
|
||||
color: $warning;
|
||||
font-size: 1em;
|
||||
content: "\f185";
|
||||
}
|
||||
|
||||
.twitter { background: desaturate($twitter, 25%); }
|
||||
.mastodon { background: desaturate($mastodon, 25%); }
|
||||
.facebook { background: desaturate($facebook, 25%); }
|
||||
.mix { background: desaturate($mix, 25%); }
|
||||
.reddit { background: desaturate($reddit, 25%); }
|
||||
.linkedin { background: desaturate($linkedin, 25%); }
|
||||
.email { background: desaturate($email, 25%); }
|
||||
.diaspora { background: desaturate($diaspora, 25%); }
|
408
privacytools.io/assets/css/style.scss
Normal file
408
privacytools.io/assets/css/style.scss
Normal file
@@ -0,0 +1,408 @@
|
||||
---
|
||||
---
|
||||
|
||||
@import '_vars';
|
||||
@import 'bootstrap';
|
||||
@import 'flag-icon';
|
||||
@import 'fontawesome';
|
||||
@import 'ptio-font';
|
||||
@import 'sortable-theme-bootstrap';
|
||||
|
||||
body {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
dt {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.card {
|
||||
box-shadow: $card-shadow !important;
|
||||
}
|
||||
|
||||
/* Make links and long strings responsive */
|
||||
a,
|
||||
.long-string-list {
|
||||
li {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
.card-ol {
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
|
||||
/*.card-success, */
|
||||
.card-success {
|
||||
.card-header {
|
||||
border-color: $card-succes-border !important;
|
||||
}
|
||||
}
|
||||
|
||||
.card-primary {
|
||||
.card-header {
|
||||
border-color: $card-primary-border !important;
|
||||
}
|
||||
}
|
||||
|
||||
.card-warning {
|
||||
.card-header {
|
||||
border-color: $card-warning-border !important;
|
||||
}
|
||||
}
|
||||
|
||||
.card-list {
|
||||
margin-top: 2em;
|
||||
margin-bottom: 2em;
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
.blockquote {
|
||||
border-left: 5px solid $blockquote-border;
|
||||
font-size: 1.2rem;
|
||||
line-height: 1.35;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.theme-dropdown {
|
||||
.dropdown-menu {
|
||||
display: block;
|
||||
margin-bottom: 20px;
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
|
||||
.theme-showcase {
|
||||
p > .btn {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
.container {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.anchor, .page-header h1 {
|
||||
margin-top: 3.5rem;
|
||||
margin-bottom: 2rem;
|
||||
&:target {
|
||||
margin-top: -4rem;
|
||||
padding-top: 7.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
h2, h3:not(.h5), h4, h5 {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.h5 {
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
|
||||
.header-404 {
|
||||
font-size: 10rem;
|
||||
}
|
||||
|
||||
.anchor-icon {
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
.panel-item {
|
||||
float: right;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.panel-pic {
|
||||
float: left;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.panel-icon {
|
||||
float: right;
|
||||
margin: 15px;
|
||||
font-size: 5.5em;
|
||||
}
|
||||
|
||||
.panel-font {
|
||||
font-size: 120px;
|
||||
}
|
||||
|
||||
.share-btn {
|
||||
border: 0;
|
||||
box-shadow: $share-btn-shadow;
|
||||
color: $share-btn;
|
||||
display: inline-block;
|
||||
opacity: .9;
|
||||
outline: none;
|
||||
padding: 1em;
|
||||
text-align: center;
|
||||
width: 8em;
|
||||
|
||||
&:hover {
|
||||
color: $share-btn-hover;
|
||||
}
|
||||
|
||||
&:active {
|
||||
box-shadow: none;
|
||||
color: $share-btn-active;
|
||||
outline: none;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
#top {
|
||||
margin-bottom: 3rem !important;
|
||||
}
|
||||
|
||||
.twitter { background: $twitter; }
|
||||
.mastodon { background: $mastodon; }
|
||||
.facebook { background: $facebook; }
|
||||
.mix { background: $mix; }
|
||||
.reddit { background: $reddit; }
|
||||
.linkedin { background: $linkedin; }
|
||||
.email { background: $email; }
|
||||
.diaspora { background: $diaspora; }
|
||||
|
||||
.footer-divider {
|
||||
margin-top: 3em;
|
||||
margin-bottom: 3em;
|
||||
border: none;
|
||||
height: 1px;
|
||||
background-color: #343A40;
|
||||
}
|
||||
|
||||
.copyright-text {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 3em;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.no-text-wrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hover-text-decoration-none:hover {
|
||||
text-decoration: none;
|
||||
-webkit-text-decoration-skip: object;
|
||||
}
|
||||
|
||||
.table td, .table th {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
.btn-icon {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 1.5rem;
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.25rem;
|
||||
display: flex;
|
||||
height: 2.4rem;
|
||||
width: 2.4rem;
|
||||
color: #eee;
|
||||
}
|
||||
.btn-icon:hover {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-tor {
|
||||
background: $tor;
|
||||
}
|
||||
.btn-tor:hover {
|
||||
background: darken($tor, 5%);
|
||||
}
|
||||
|
||||
.icon-btn {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.flow-root {
|
||||
display: flow-root;
|
||||
}
|
||||
|
||||
/*
|
||||
* Bootstrap 4.2+ features
|
||||
*/
|
||||
|
||||
.text-decoration-none {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.mx-n2 {
|
||||
margin-left: -0.5rem;
|
||||
margin-right: -0.5rem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Navbar
|
||||
*/
|
||||
|
||||
#navbar {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 1140px;
|
||||
padding: .75rem 3rem;
|
||||
color: rgba(255,255,255,0.5);
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#navbar .menu {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.menu {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.nav-anchor {
|
||||
display: inline;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.nav-anchor:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-anchor:hover,
|
||||
.nav-summary:hover,
|
||||
.nav-details[open] > summary > .nav-summary {
|
||||
color: rgba(255,255,255,0.8);
|
||||
}
|
||||
|
||||
.nav-dropdown {
|
||||
color: var(--dark);
|
||||
background-color: var(--light);
|
||||
padding: .5rem 0;
|
||||
margin-top: .5rem;
|
||||
position: absolute;
|
||||
border: 1px solid #dee2e6;
|
||||
border-radius: .25rem;
|
||||
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
#nav-right > details > .nav-dropdown {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.nav-details {
|
||||
display: inline;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-details > summary {
|
||||
list-style: none;
|
||||
}
|
||||
.nav-details > summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nav-right > .nav-details,
|
||||
#nav-right > .nav-anchor {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
#nav-left > .nav-details,
|
||||
#nav-left > .nav-anchor {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
input#nav-toggle,
|
||||
#nav-toggle-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nav-home-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nav-switch-theme {
|
||||
/* We will make it visible with JavaScript
|
||||
* as it does not work without it */
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*
|
||||
* Mobile hamburger menu
|
||||
*/
|
||||
|
||||
@media only screen and (max-width: 992px) {
|
||||
.menu,
|
||||
.nav-details,
|
||||
.nav-anchor {
|
||||
display: block;
|
||||
}
|
||||
.menu {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
#nav-home {
|
||||
display: none;
|
||||
}
|
||||
#nav-home-mobile {
|
||||
display: inline;
|
||||
}
|
||||
input#nav-toggle:checked ~ .menu {
|
||||
display: none;
|
||||
}
|
||||
input#nav-toggle + label {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.nav-dropdown {
|
||||
display: block;
|
||||
position: relative;
|
||||
max-height: 15.75em;
|
||||
overflow-y: auto;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
#nav-right > .nav-details,
|
||||
#nav-right > .nav-anchor,
|
||||
#nav-left > .nav-details,
|
||||
#nav-left > .nav-anchor {
|
||||
padding: 0 0;
|
||||
}
|
||||
#navbar {
|
||||
padding: 1rem 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
#navbar {
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 575px) {
|
||||
#navbar {
|
||||
padding: 1rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-height: 350px) {
|
||||
.nav-dropdown {
|
||||
max-height: 8em;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-theme-icon:before {
|
||||
color: var(--warning);
|
||||
font-size: 0.875em;
|
||||
content: "\f186";
|
||||
}
|
Reference in New Issue
Block a user