ligo/gitlab-pages/website/static/css/custom.css

596 lines
9.7 KiB
CSS
Raw Normal View History

:root {
2019-09-25 19:13:28 +04:00
--color-primary-brand: #3aa0ff;
--color-secondary-brand: #fc683a;
--color-accent: #37d7c3;
--color-primary-text: #0d0f33;
--color-secondary-text: #5a5c74;
--color-gray: #ebebeb;
--color-light-blue: #ebf6ff;
--color-light-gray: #fafafa;
--color-white: #ffffff;
--color-code-background1: #eff4f7;
--color-code-background2: #d2dfe9;
--padding-level-1: 20px;
--padding-level-2: 25px;
--padding-level-3: 30px;
--padding-level-4: 45px;
--padding-level-5: 60px;
--padding-level-6: 100px;
}
html {
2019-09-25 19:13:28 +04:00
font-size: 16px;
}
2019-09-25 19:13:28 +04:00
h1,
h2,
h3,
h4,
.landing .headline {
font-family: "DM Sans", sans-serif;
font-weight: bold;
2019-09-25 22:28:48 +04:00
/** Override docusaurus rule that makes a huge top margin **/
margin-top: 1rem;
}
2019-09-25 19:13:28 +04:00
body,
.body,
.headline,
.subhead,
.footnote {
font-family: "Open Sans", sans-serif;
}
2019-09-26 17:56:45 +04:00
/** TODO: code font size is currently 85%; designs have it as 1rem (16px);
this breaks some of the tiny-text in the internal pages, so wait until those
are fixed to set this to the correct size
**/
.landing code,
2019-09-25 19:13:28 +04:00
.mono {
font-family: "Source Code Pro", monospace;
font-size: 1rem;
}
2019-09-26 17:56:45 +04:00
code {
font-family: "Source Code Pro", monospace;
}
h1 {
2019-09-25 19:13:28 +04:00
font-size: 2.625rem;
}
.landing h1 {
2019-09-25 19:13:28 +04:00
font-size: 4.5rem;
}
h2 {
font-size: 2.25rem;
}
.landing h2 {
font-size: 3rem;
}
h3 {
font-size: 1.5rem;
}
.landing h3 {
font-size: 2.25rem;
}
h4 {
font-size: 1.125rem;
}
.landing h4 {
font-size: 1.5rem;
}
.headline {
font-weight: bold;
font-size: 1rem;
}
.landing .headline {
font-size: 1.125rem;
}
body,
.body {
font-size: 1rem;
}
.landing .body,
.landing {
font-size: 1.125rem;
}
.subhead {
font-size: 0.875rem;
}
.landing .subhead {
font-size: 1rem;
}
2019-09-26 00:59:07 +04:00
.footnote,
footnote {
2019-09-25 19:13:28 +04:00
font-size: 0.75rem;
}
2019-06-03 20:16:05 +04:00
.fixedHeaderContainer header .headerTitleWithLogo {
2019-09-25 19:13:28 +04:00
display: none;
}
2019-06-03 20:16:05 +04:00
.nav-footer {
2019-09-25 19:13:28 +04:00
background: var(--color-primary-text);
}
2019-06-03 20:16:05 +04:00
.navigationSlider .slidingNav {
2019-09-25 19:13:28 +04:00
background: #1a1a1a;
}
2019-09-27 18:11:05 +04:00
/** Top Section **/
.home-container {
display: flex;
align-items: center;
justify-content: space-around;
padding: var(--padding-level-3);
}
.home-text {
width: 35%;
}
.sample-code-container {
display: flex;
width: 65%;
justify-content: center;
box-sizing: border-box;
background: url(/img/geo.svg) top right/20% 30% no-repeat,
url(/img/geo.svg) bottom left/30% 50% no-repeat;
}
.sample-code {
width: 80%;
padding: 25px;
box-shadow: 0px 0px 70px rgba(13, 15, 51, 0.06);
background-color: white;
}
2019-09-26 00:59:07 +04:00
.hljs {
2019-09-25 19:13:28 +04:00
text-align: left;
background: transparent;
2019-06-03 20:16:05 +04:00
}
2019-06-11 05:37:12 +04:00
.tabs {
2019-09-25 19:13:28 +04:00
margin: 0 auto;
border-top: none;
border-bottom: 4px solid #e0e0e0;
2019-06-03 20:16:05 +04:00
}
2019-06-11 05:37:12 +04:00
.tabs .nav-tabs > div {
2019-09-25 19:13:28 +04:00
cursor: pointer;
color: #24292e;
border-bottom: none;
padding-bottom: 8px;
2019-06-11 05:37:12 +04:00
}
.tab-content {
2019-09-25 19:13:28 +04:00
padding-top: 12px;
}
2019-06-11 05:37:12 +04:00
.tabs .nav-tabs > div.active {
2019-09-25 19:13:28 +04:00
border-bottom: 4px solid #1a1a1a;
}
2019-06-11 05:37:12 +04:00
.tab-content {
2019-09-25 19:13:28 +04:00
border-top: 4px solid #e0e0e0;
2019-06-03 20:16:05 +04:00
}
2019-06-11 05:37:12 +04:00
.nav-tabs {
2019-09-25 19:13:28 +04:00
border: none;
position: relative;
top: 4px;
2019-06-03 20:16:05 +04:00
}
2019-06-06 19:59:03 +04:00
2019-09-27 18:11:05 +04:00
/** **/
2019-09-26 01:36:43 +04:00
2019-09-27 18:11:05 +04:00
.disabled {
cursor: default;
color: #24292e64 !important;
border-bottom: none;
2019-06-03 20:16:05 +04:00
}
blockquote {
2019-09-25 19:13:28 +04:00
background-color: rgba(26, 26, 26, 0.3);
border-left: 8px solid rgba(26, 26, 26, 0.1);
color: rgba(255, 255, 255, 1);
2019-06-06 19:59:03 +04:00
}
2019-06-11 05:37:12 +04:00
blockquote code {
2019-09-25 19:13:28 +04:00
opacity: 0.5;
2019-06-11 05:37:12 +04:00
}
2019-06-03 20:16:05 +04:00
2019-09-26 19:34:57 +04:00
a {
color: var(--color-primary-text);
}
a:hover {
color: var(--color-primary-brand);
}
2019-09-26 17:56:45 +04:00
.landing a {
2019-09-26 00:59:07 +04:00
color: var(--color-white);
2019-06-03 20:16:05 +04:00
}
2019-09-26 19:34:57 +04:00
.landing a:hover {
2019-09-26 00:59:07 +04:00
font-weight: bold;
2019-06-03 20:16:05 +04:00
}
.promoSection .promoRow {
2019-09-25 19:13:28 +04:00
padding-top: 0;
margin-top: 30px;
2019-06-03 20:16:05 +04:00
}
.promoSection .promoRow .pluginRowBlock .pluginWrapper {
2019-09-25 19:13:28 +04:00
padding: 0 4px;
2019-06-03 20:16:05 +04:00
}
.blockElement {
2019-09-25 19:13:28 +04:00
color: #1a1a1a;
2019-06-03 20:16:05 +04:00
}
.blockImage {
2019-09-25 19:13:28 +04:00
margin-bottom: 0px;
2019-06-03 20:16:05 +04:00
}
.blockContent {
2019-09-25 19:13:28 +04:00
margin-top: -25px;
2019-06-03 20:16:05 +04:00
}
2019-09-26 00:59:07 +04:00
.features,
.team {
2019-09-25 19:13:28 +04:00
background: white;
margin-top: -40px;
position: relative;
text-align: center;
/* box-shadow: 0 10px 10px -6px rgba(177, 176, 176, 0.3); */
2019-06-03 20:16:05 +04:00
}
.sectionTitle {
2019-09-25 19:13:28 +04:00
border-bottom: 4px solid #e0e0e0;
margin: 0 auto;
margin-top: 35px;
padding-bottom: 15px;
2019-06-03 20:16:05 +04:00
}
.sectionTitle.blockTitle {
2019-09-25 19:13:28 +04:00
margin-bottom: -20px;
2019-06-03 20:16:05 +04:00
}
2019-09-25 19:13:28 +04:00
.lightBackground,
body,
html {
background: white;
2019-06-03 20:16:05 +04:00
}
.copyright a {
2019-09-25 19:13:28 +04:00
color: #b2210c;
2019-06-03 20:16:05 +04:00
}
.toc .toggleNav {
2019-09-25 19:13:28 +04:00
margin-top: 12px;
}
.mainContainer {
2019-09-25 19:13:28 +04:00
padding-top: 60px;
}
2019-09-26 00:59:07 +04:00
.mainContainer > * {
padding: var(--padding-level-4) 0;
}
.tocActive .onPageNav > .toc-headings {
2019-09-25 19:13:28 +04:00
padding-top: 24px;
}
.docsSliderActive #tocToggler {
2019-09-25 19:13:28 +04:00
opacity: 0;
visibility: hidden;
}
2019-06-11 05:37:12 +04:00
code {
2019-09-25 19:13:28 +04:00
background: rgb(240, 240, 240);
color: #444;
}
body
> div.fixedHeaderContainer
> div
> header
> div
> nav
> ul
> li:nth-child(5) {
background: url("/img/discord.svg");
background-repeat: no-repeat;
background-position: center center;
min-width: 50px;
padding-top: 5px;
opacity: 0.8;
}
body
> div.fixedHeaderContainer
> div
> header
> div
> nav
> ul
> li:nth-child(5):hover {
opacity: 1;
}
body
> div.fixedHeaderContainer
> div
> header
> div
> nav
> ul
> li:nth-child(5)
> a:hover {
background: transparent;
2019-06-11 05:37:12 +04:00
}
2019-09-25 19:13:28 +04:00
.cheatsheet tr > td:first-of-type {
min-width: 240px;
}
2019-09-25 19:13:28 +04:00
/** Buttons **/
.button,
.large-primary-button,
.large-secondary-button {
border: none;
color: var(--color-white);
font-size: 1rem;
font-weight: normal;
line-height: 1.375rem;
text-transform: none;
2019-09-26 00:59:07 +04:00
text-align: center;
}
2019-09-25 19:13:28 +04:00
.button,
.button:hover {
border-radius: 36px;
padding: 10px 20px;
background-color: var(--color-primary-brand);
min-width: 130px;
color: var(--color-white);
}
2019-09-25 19:13:28 +04:00
.button:hover {
box-shadow: 0px 2px 15px rgba(58, 160, 255, 0.3);
}
.button:focus {
background-color: #0078e8;
}
.button[disabled] {
background: rgba(58, 160, 255, 0.35);
}
.large-primary-button,
.large-primary-button:hover,
.large-secondary-button,
.large-secondary-button:hover {
border-radius: 37px;
2019-09-26 00:59:07 +04:00
padding: 5px 20px;
min-height: 56px;
2019-09-25 19:13:28 +04:00
min-width: 132px;
color: var(--color-white);
}
.large-primary-button {
background-color: var(--color-primary-text);
}
.large-primary-button:hover {
box-shadow: 0px 2px 25px rgba(13, 15, 51, 0.3);
}
.large-primary-button:focus {
background-color: #010212;
box-shadow: 0px 2px 25px rgba(13, 15, 51, 0.3);
}
.large-primary-button[disabled] {
background: rgba(13, 15, 51, 0.35);
}
.large-secondary-button {
background-color: var(--color-secondary-brand);
}
.large-secondary-button:hover {
box-shadow: 0px 2px 25px rgba(252, 104, 58, 0.3);
}
.large-secondary-button:focus {
background-color: #f33e24;
box-shadow: 0px 2px 25px rgba(252, 104, 58, 0.3);
}
.large-secondary-button[disabled] {
background: rgba(252, 104, 58, 0.35);
}
.version-button {
background-color: var(--color-gray);
padding: 5px;
border-radius: 2px;
color: var(--color-primary-text);
}
.version-button:hover {
background-color: var(--color-light-blue);
}
.version-button:focus {
background: rgba(47, 152, 249, 0.3);
}
.version-button[disabled] {
background: rgba(58, 160, 255, 0.35);
}
.page-button * {
stroke: var(--color-primary-text);
}
.page-button:hover * {
stroke: var(--color-secondary-text);
}
.page-button:focus * {
stroke: #010212;
}
.discord-button #background {
fill: var(--color-primary-brand);
}
.discord-button:hover svg {
box-shadow: 0px 2px 15px rgba(58, 160, 255, 0.3);
}
.discord-button:focus #background {
fill: #0078e8;
2019-06-21 16:45:52 +04:00
}
2019-09-25 19:45:37 +04:00
/** Profile Images **/
.profileContainer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2019-09-27 18:11:05 +04:00
width: 20%;
2019-09-25 19:45:37 +04:00
padding: 0 var(--padding-level-1);
}
2019-09-27 18:11:05 +04:00
.profileContainer p {
color: var(--color-primary-text);
}
.profileContainer:hover p {
2019-09-25 19:45:37 +04:00
color: var(--color-primary-brand);
}
2019-09-26 01:58:03 +04:00
.profileContainer:hover .profileImage {
box-shadow: 12px 12px 0px var(--color-primary-brand);
}
2019-09-25 19:45:37 +04:00
.profileImage {
2019-09-25 21:32:06 +04:00
width: 100%;
2019-09-25 19:45:37 +04:00
border: var(--color-gray);
}
2019-09-25 21:32:06 +04:00
.flex-inline-container {
2019-09-25 19:45:37 +04:00
display: flex;
flex-direction: row;
justify-content: space-around;
padding: var(--padding-level-1);
flex-wrap: wrap;
2019-09-25 21:39:08 +04:00
align-items: stretch;
2019-09-25 21:32:06 +04:00
}
2019-09-25 22:28:48 +04:00
.team .flex-inline-container {
align-items: flex-start;
}
2019-09-25 21:32:06 +04:00
/** Feature Cards **/
.card {
display: flex;
flex-direction: column;
padding: 2rem;
align-items: center;
justify-content: flex-start;
max-width: 30%;
background-color: var(--color-light-gray);
}
.card:hover {
background-color: var(--color-light-blue);
}
.card-text {
text-align: center;
}
2019-09-25 22:28:48 +04:00
/** Partners **/
.partners-container {
background-color: var(--color-light-gray);
display: flex;
justify-content: space-around;
align-content: center;
padding: var(--padding-level-3);
2019-09-26 00:59:07 +04:00
margin: var(--padding-level-4) 0;
2019-09-25 22:28:48 +04:00
}
.partners-container a {
display: flex;
align-content: center;
justify-content: center;
margin: 0 10px;
}
.partners-text {
padding: 0 var(--padding-level-1);
border-left: 5px solid var(--color-primary-brand);
}
2019-09-25 21:32:06 +04:00
@media (min-width: 560px) and (max-width: 768px) {
/** Special rules to reorient feature cards at only one screen size**/
.card {
flex-direction: row;
width: 100%;
max-width: 100%;
justify-content: left;
margin: var(--padding-level-1) 0;
}
.card-text {
text-align: left;
}
}
@media (max-width: 768px) {
.profileContainer {
max-width: 30%;
}
}
@media (max-width: 560px) {
.card {
max-width: 100%;
margin: var(--padding-level-1) 0;
}
.profileContainer {
max-width: 100%;
width: 100%;
}
2019-09-25 22:28:48 +04:00
.hide-small {
display: none;
}
2019-09-25 19:45:37 +04:00
}
2019-06-03 20:16:05 +04:00
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
}
2019-09-26 00:59:07 +04:00
@media only screen and (max-width: 1023px) {
2019-09-26 01:36:43 +04:00
.home-container {
flex-direction: column-reverse;
margin-top: var(--padding-level-1);
}
.home-text {
align-content: center;
text-align: center;
2019-09-27 18:11:05 +04:00
width: 90%;
2019-09-26 01:36:43 +04:00
padding-top: var(--padding-level-2);
}
.sample-code-container {
2019-09-27 18:11:05 +04:00
width: 90%;
2019-09-26 01:36:43 +04:00
}
2019-06-03 20:16:05 +04:00
}
2019-09-26 00:59:07 +04:00
@media only screen and (min-width: 1280px) {
2019-06-03 20:16:05 +04:00
}
2019-09-26 01:36:43 +04:00
@media only screen and (min-width: 1440px) {
2019-09-26 00:59:07 +04:00
.landing h4.tagline-text {
font-size: 2.25rem;
}
2019-06-03 20:16:05 +04:00
}
@media only screen and (min-width: 1500px) {
2019-09-25 19:13:28 +04:00
}