[LIGO-92] button styles

This commit is contained in:
Sarah Fowler 2019-09-25 11:13:28 -04:00
parent 920f304824
commit 5c24207c3b

View File

@ -1,177 +1,181 @@
:root { :root {
--color-primary-brand: #3AA0FF; --color-primary-brand: #3aa0ff;
--color-secondary-brand: #FC683A; --color-secondary-brand: #fc683a;
--color-accent: #37D7C3; --color-accent: #37d7c3;
--color-primary-text: #0D0F33; --color-primary-text: #0d0f33;
--color-secondary-text: #5A5C74; --color-secondary-text: #5a5c74;
--color-gray: #EBEBEB; --color-gray: #ebebeb;
--color-light-blue: #EBF6FF; --color-light-blue: #ebf6ff;
--color-light-gray: #FAFAFA; --color-light-gray: #fafafa;
--color-white: #FFFFFF; --color-white: #ffffff;
--color-code-background1: #EFF4F7; --color-code-background1: #eff4f7;
--color-code-background2: #D2DFE9; --color-code-background2: #d2dfe9;
--padding-level-1: 20px; --padding-level-1: 20px;
--padding-level-2: 25px; --padding-level-2: 25px;
--padding-level-3: 30px; --padding-level-3: 30px;
--padding-level-4: 45px; --padding-level-4: 45px;
--padding-level-5: 60px; --padding-level-5: 60px;
--padding-level-6: 100px; --padding-level-6: 100px;
} }
html { html {
font-size: 16px; font-size: 16px;
} }
h1, h2, h3, h4, .landing .headline { h1,
font-family: "DM Sans", sans-serif; h2,
font-weight: bold; h3,
h4,
.landing .headline {
font-family: "DM Sans", sans-serif;
font-weight: bold;
} }
body, .body, .headline, .subhead, .footnote { body,
font-family: "Open Sans", sans-serif; .body,
.headline,
.subhead,
.footnote {
font-family: "Open Sans", sans-serif;
} }
code, .mono { code,
font-family: "Source Code Pro", monospace; .mono {
font-size: 1rem; font-family: "Source Code Pro", monospace;
font-size: 1rem;
} }
h1 { h1 {
font-size: 2.625rem; font-size: 2.625rem;
} }
.landing h1 { .landing h1 {
font-size: 4.5rem; font-size: 4.5rem;
} }
h2 { h2 {
font-size: 2.25rem; font-size: 2.25rem;
} }
.landing h2 { .landing h2 {
font-size: 3rem; font-size: 3rem;
} }
h3 { h3 {
font-size: 1.5rem; font-size: 1.5rem;
} }
.landing h3 { .landing h3 {
font-size: 2.25rem; font-size: 2.25rem;
} }
h4 { h4 {
font-size: 1.125rem; font-size: 1.125rem;
} }
.landing h4 { .landing h4 {
font-size: 1.5rem; font-size: 1.5rem;
} }
.headline { .headline {
font-weight: bold; font-weight: bold;
font-size: 1rem; font-size: 1rem;
} }
.landing .headline { .landing .headline {
font-size: 1.125rem; font-size: 1.125rem;
} }
body, .body { body,
font-size: 1rem; .body {
} font-size: 1rem;
.landing .body, .landing { }
font-size: 1.125rem; .landing .body,
} .landing {
.subhead { font-size: 1.125rem;
font-size: 0.875rem; }
} .subhead {
.landing .subhead { font-size: 0.875rem;
font-size: 1rem; }
} .landing .subhead {
.footnote { font-size: 1rem;
font-size: 0.75rem; }
} .footnote {
font-size: 0.75rem;
}
.projectTitle small { .projectTitle small {
max-width: 700px; max-width: 700px;
text-align: center; text-align: center;
margin: 0 auto; margin: 0 auto;
margin-top: 0.7em; margin-top: 0.7em;
} }
.fixedHeaderContainer header .headerTitleWithLogo { .fixedHeaderContainer header .headerTitleWithLogo {
display: none; display: none;
} }
.fixedHeaderContainer header img {} .fixedHeaderContainer header img {
}
.nav-footer { .nav-footer {
background: var(--color-primary-text); background: var(--color-primary-text);
} }
.navigationSlider .slidingNav { .navigationSlider .slidingNav {
background: #1A1A1A; background: #1a1a1a;
} }
.homeContainer { .homeContainer {
box-shadow: inset 0 -10px 10px -6px rgba(177, 176, 176, 0.2); box-shadow: inset 0 -10px 10px -6px rgba(177, 176, 176, 0.2);
background: #f6f4f4; background: #f6f4f4;
} }
.homeContainer .hljs { .homeContainer .hljs {
text-align: left; text-align: left;
background: transparent; background: transparent;
} }
.tabs { .tabs {
max-width: 800px; max-width: 800px;
margin: 0 auto; margin: 0 auto;
border-top: none; border-top: none;
border-bottom: 4px solid #e0e0e0; border-bottom: 4px solid #e0e0e0;
} }
.tabs .nav-tabs > div { .tabs .nav-tabs > div {
cursor: pointer; cursor: pointer;
color: #24292e; color: #24292e;
border-bottom: none; border-bottom: none;
padding-bottom: 8px; padding-bottom: 8px;
} }
.tab-content { .tab-content {
padding-top: 12px; padding-top: 12px;
} }
.tabs .nav-tabs > div.active { .tabs .nav-tabs > div.active {
border-bottom: 4px solid #1A1A1A; border-bottom: 4px solid #1a1a1a;
} }
.homeContainer .tabs .nav-tabs > div:last-of-type { .homeContainer .tabs .nav-tabs > div:last-of-type {
cursor: default; cursor: default;
color: #24292e64; color: #24292e64;
border-bottom: none; border-bottom: none;
} }
.tab-content { .tab-content {
border-top: 4px solid #e0e0e0; border-top: 4px solid #e0e0e0;
} }
.nav-tabs { .nav-tabs {
border: none; border: none;
position: relative; position: relative;
top: 4px; top: 4px;
} }
.promoSection .buttonWrapper:first-of-type > a.button {
.button { background: #b2210c;
border: 1px solid #B2210C; color: white;
color: #B2210C;
} }
.button:hover, .promoSection .buttonWrapper:first-of-type > a.button {
background: #B2210C;
color: white;
}
blockquote { blockquote {
background-color: rgba(26, 26, 26, 0.3); background-color: rgba(26, 26, 26, 0.3);
border-left: 8px solid rgba(26, 26, 26, 0.1); border-left: 8px solid rgba(26, 26, 26, 0.1);
color: rgba(255,255,255, 1); color: rgba(255, 255, 255, 1);
} }
blockquote code { blockquote code {
opacity: 0.5; opacity: 0.5;
} }
/* /*
blockquote a { blockquote a {
@ -191,129 +195,265 @@ blockquote {
} */ } */
a { a {
color: rgba(178, 33, 12, 0.8); color: rgba(178, 33, 12, 0.8);
} }
a:hover { a:hover {
color: rgba(178, 33, 12, 1); color: rgba(178, 33, 12, 1);
} }
.homeContainer .homeWrapper .projectLogo { .homeContainer .homeWrapper .projectLogo {
display: block; display: block;
position: relative; position: relative;
padding: 0; padding: 0;
} }
.projectTitle { .projectTitle {
margin-top: 30px; margin-top: 30px;
margin-bottom: 0; margin-bottom: 0;
} }
.projectTitle small { .projectTitle small {
margin: 0 auto; margin: 0 auto;
} }
.promoSection .promoRow { .promoSection .promoRow {
padding-top: 0; padding-top: 0;
margin-top: 30px; margin-top: 30px;
} }
.promoSection .promoRow .pluginRowBlock .pluginWrapper { .promoSection .promoRow .pluginRowBlock .pluginWrapper {
padding: 0 4px; padding: 0 4px;
} }
.blockElement { .blockElement {
color: #1A1A1A; color: #1a1a1a;
} }
.blockImage { .blockImage {
margin-bottom: 0px; margin-bottom: 0px;
} }
.blockContent { .blockContent {
margin-top: -25px; margin-top: -25px;
} }
.features { .features {
background: white; background: white;
margin-top: -40px; margin-top: -40px;
position: relative; position: relative;
text-align: center; text-align: center;
/* box-shadow: 0 10px 10px -6px rgba(177, 176, 176, 0.3); */ /* box-shadow: 0 10px 10px -6px rgba(177, 176, 176, 0.3); */
} }
.sectionTitle { .sectionTitle {
border-bottom: 4px solid #e0e0e0; border-bottom: 4px solid #e0e0e0;
margin: 0 auto; margin: 0 auto;
margin-top: 35px; margin-top: 35px;
padding-bottom: 15px; padding-bottom: 15px;
} }
.sectionTitle.blockTitle { .sectionTitle.blockTitle {
margin-bottom: -20px; margin-bottom: -20px;
} }
.lightBackground, body, html { .lightBackground,
background: white; body,
html {
background: white;
} }
.copyright a { .copyright a {
color: #B2210C; color: #b2210c;
} }
.productShowcaseSection.team .logos img { .productShowcaseSection.team .logos img {
border-radius: 50%; border-radius: 50%;
height: 150px; height: 150px;
margin-bottom: 0px; margin-bottom: 0px;
padding-left: 40px; padding-left: 40px;
padding-right: 40px; padding-right: 40px;
} }
.productShowcaseSection.team .logos p { .productShowcaseSection.team .logos p {
padding-top: 0px; padding-top: 0px;
} }
.toc .toggleNav { .toc .toggleNav {
margin-top: 12px; margin-top: 12px;
} }
.mainContainer { .mainContainer {
padding-top: 60px; padding-top: 60px;
} }
.tocActive .onPageNav > .toc-headings { .tocActive .onPageNav > .toc-headings {
padding-top: 24px; padding-top: 24px;
} }
.docsSliderActive #tocToggler { .docsSliderActive #tocToggler {
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
} }
code { code {
background: rgb(240, 240, 240); background: rgb(240, 240, 240);
color: #444; color: #444;
} }
body > div.fixedHeaderContainer > div > header > div > nav > ul > li:nth-child(5) { body
background: url('/img/discord.svg'); > div.fixedHeaderContainer
background-repeat: no-repeat; > div
background-position: center center; > header
min-width: 50px; > div
padding-top: 5px; > nav
opacity: 0.8; > 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 { body
opacity: 1; > 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 { body
background: transparent; > div.fixedHeaderContainer
> div
> header
> div
> nav
> ul
> li:nth-child(5)
> a:hover {
background: transparent;
} }
.cheatsheet tr > td:first-of-type { .cheatsheet tr > td:first-of-type {
min-width: 240px; min-width: 240px;
}
/** 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;
}
.button,
.button:hover {
border-radius: 36px;
padding: 10px 20px;
background-color: var(--color-primary-brand);
min-width: 130px;
color: var(--color-white);
}
.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;
padding: 20px;
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;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
@ -329,4 +469,4 @@ body > div.fixedHeaderContainer > div > header > div > nav > ul > li:nth-child(5
} }
@media only screen and (min-width: 1500px) { @media only screen and (min-width: 1500px) {
} }