blob: 6f79026b4556fe2651d294960ca83c8ec84acb3d [file]
---
---
// Charset
@charset "utf-8";
// Fonts
@import url(/css/resources/ubuntu-mono-300-600-300italic-600italic.css);
@import url(/css/resources/ubuntu-mono.css);
// Vars
$colour-brand: #99181C;
$colour-black: #000;
$colour-white: #fff;
$color-light-grey: #e5e5e5;
:root {
--bg: #fff;
--bg-secondary: #f7f7f7;
--text: #000;
--text-secondary: #555;
--border: #ddd;
--nav-bg: #000;
--nav-text: #fff;
--code-bg: #e5e5e5;
--header-bg: #fff;
--footer-bg: #000;
--footer-text: #fff;
--used-by-border: rgba(0,0,0,0.1);
--used-by-shadow: rgba(0,0,0,0.1);
--fork-bg: #000;
--fork-text: #fff;
}
[data-theme="dark"] {
--bg: #1a1a2e;
--bg-secondary: #16213e;
--text: #e0e0e0;
--text-secondary: #aaa;
--border: #333;
--nav-bg: #0f0f23;
--nav-text: #e0e0e0;
--code-bg: #16213e;
--header-bg: #1a1a2e;
--footer-bg: #0f0f23;
--footer-text: #e0e0e0;
--used-by-border: rgba(255,255,255,0.1);
--used-by-shadow: rgba(0,0,0,0.3);
--fork-bg: #16213e;
--fork-text: #e0e0e0;
}
* {
margin:0;
padding:0;
box-sizing:border-box;
-webkit-font-smoothing:antialiased;
}
// Extends
.row {
max-width:1000px;
margin:0 auto;
&:after {
@extend .clear;
}
}
.row-col {
padding:0 40px;
}
.col {
padding:0 40px;
float:left;
}
.col--half {
width:50%;
}
.clear {
content:"";
display:table;
clear:both;
}
body {
background:var(--bg);
color:var(--text);
font:normal 15px/23px "ubuntu",sans-serif;
transition:background 0.3s, color 0.3s;
}
a {
color:$colour-brand;
text-decoration:none;
}
p {
text-align: justify;
}
.site-header {
background:var(--header-bg);
text-align:center;
transition:background 0.3s;
&:after {
@extend .clear;
}
}
.site-header__wrap {
@extend .row;
}
.site-header__logo {
margin:30px auto;
width:100%;
img {
max-height: 100px;
max-width:100%;
}
}
.site-nav {
background:var(--nav-bg);
font-size:0;
text-align:center;
margin:0 0 40px 0;
transition:background 0.3s;
a, a:visited, a:hover, a:active {
color:var(--nav-text);
}
ul {
@extend .row;
}
li {
display: inline-block;
border-right:solid 1px rgba(255,255,255,0.25);
&:first-child {
border-left:solid 1px rgba(255,255,255,0.25);
}
}
a {
display: block;
padding:9px 30px;
font-size:15px;
@media screen and (max-width:900px) {
padding:9px 15px;
}
}
}
.home .site-nav li:nth-child(1) a,
.download .site-nav li:nth-child(2) a,
.documentation .site-nav li:nth-child(4) a,
.contribute .site-nav li:nth-child(5) a,
.security .site-nav li:nth-child(6) a,
.support .site-nav li:nth-child(7) a,
.team .site-nav li:nth-child(8) a {
background:$colour-brand;
}
main {
h1,h2,h3 {
line-height:1.5em;
font-weight: bold;
}
h1 {
font-size:1.5rem;
}
h2 {
font-size:1.25rem;
margin:0 0 30px 0;
border-bottom:solid 1px var(--border);
padding:0 0 5px 0;
}
p {
margin:0 0 30px 0;
}
ul,ol {
margin:0 0 30px 18px;
}
}
.page-title {
background:$colour-brand;
color:#fff;
padding:30px 0;
margin:-40px 0 40px 0;
text-align:center;
h1 {
@extend .row;
@extend .row-col;
}
}
pre {
margin:0 0 30px 0;
background:var(--code-bg);
padding:15px 20px;
overflow:scroll;
font-family:"ubuntu mono",monospaced;
transition:background 0.3s;
}
.used-by-panel {
box-shadow:inset 0 2px 2px var(--used-by-shadow);
text-align:center;
border:solid 1px var(--used-by-border);
margin:20px 0 60px 0;
padding:30px 30px 0 30px;
border-radius:5px;
background: var(--bg-secondary);
transition:background 0.3s;
img {
max-height: 100%;
max-width: 100%;
margin:0 20px 40px 15px;
vertical-align: middle;
}
h2 {
border:0;
color:var(--text);
}
}
[data-theme="dark"] .used-by-panel img {
filter: brightness(0.9) contrast(1.1);
}
.github-info {
text-align:center;
background:$colour-brand;
padding:20px 0 15px;
* {
text-align: center;
}
}
.site-footer {
background:var(--footer-bg);
color:var(--footer-text);
text-align:center;
padding:15px 0;
transition:background 0.3s;
a {
color:var(--footer-text);
text-decoration: underline;
}
}
#forkongithub a{
background:var(--fork-bg);
color:var(--fork-text);
text-decoration:none;
font-family:arial,sans-serif;
text-align:center;
font-weight:bold;
padding:5px 40px;
font-size:0.725rem;
line-height:2rem;
position:relative;
}
#forkongithub a:hover{
background:#99181C;
color:#fff;
}
#forkongithub a::before,#forkongithub a::after{
content:"";
width:100%;
display:block;
position:absolute;
top:1px;
left:0;
height:1px;
background:#fff;
}
#forkongithub a::after{
bottom:1px;
top:auto;
}
@media screen and (min-width:992px){
#forkongithub{
position:fixed;
display:block;
top:0;
right:0;
width:200px;
overflow:hidden;
height:200px;
z-index:9999;
}
#forkongithub a{
width:200px;
position:absolute;
top:40px;
right:-50px;
transform:rotate(45deg);
-webkit-transform:rotate(45deg);
-ms-transform:rotate(45deg);
-moz-transform:rotate(45deg);
-o-transform:rotate(45deg);
box-shadow:4px 4px 10px rgba(0,0,0,0.8);
}
}
@media only screen and (max-width: 991px) {
#forkongithub {
display: none;
}
}
// Dark mode toggle
.theme-toggle {
position:fixed;
bottom:20px;
right:20px;
z-index:10000;
background:var(--nav-bg);
color:var(--nav-text);
border:2px solid var(--border);
border-radius:50%;
width:44px;
height:44px;
cursor:pointer;
font-size:20px;
display:flex;
align-items:center;
justify-content:center;
transition:background 0.3s, color 0.3s;
box-shadow:0 2px 8px rgba(0,0,0,0.3);
&:hover {
background:$colour-brand;
color:#fff;
}
}
// Dark mode logo swap
.site-header__logo .logo-light { display:inline; }
.site-header__logo .logo-dark { display:none; }
[data-theme="dark"] .site-header__logo .logo-light { display:none; }
[data-theme="dark"] .site-header__logo .logo-dark { display:inline; }
// Team page
.contributor-grid {
display:grid;
grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
gap:12px;
margin:0 0 30px 0;
}
.contributor-card {
display:flex;
align-items:center;
gap:10px;
padding:10px 12px;
border:1px solid var(--border);
border-radius:6px;
background:var(--bg-secondary);
color:var(--text);
text-decoration:none;
transition:background 0.2s, border-color 0.2s, transform 0.1s;
&:hover {
border-color:$colour-brand;
background:var(--bg);
text-decoration:none;
transform:translateY(-1px);
}
}
.contributor-badge {
flex:0 0 auto;
width:36px;
height:36px;
border-radius:50%;
color:#fff;
display:inline-flex;
align-items:center;
justify-content:center;
font-weight:600;
font-size:13px;
letter-spacing:0.5px;
}
.contributor-name {
flex:1 1 auto;
font-weight:600;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
.contributor-role {
flex:0 0 auto;
display:inline-block;
padding:2px 6px;
border-radius:3px;
background:var(--code-bg);
color:var(--text-secondary);
font-size:11px;
font-weight:600;
letter-spacing:0.5px;
border:1px solid var(--border);
}
.contributor-role-chair {
background:$colour-brand;
color:#fff;
border-color:$colour-brand;
}
.contributor-legend {
color:var(--text-secondary);
font-size:13px;
.contributor-role { margin:0 2px; }
}
.team-last-updated {
color:var(--text-secondary);
font-size:12px;
font-style:italic;
}