Files
xrpl-dev-portal/assets/css/devportal.css
2019-06-13 11:59:33 -07:00

1187 lines
22 KiB
CSS

/* Generic styles and colors not in the bootstrap files --------------------- */
td {
border: 1px solid #dbdde2;
padding: 0.2em;
vertical-align: text-top;
}
th {
padding: 0.2em;
}
/* Reduce external link icon size */
.fa.fa-external-link:before {
font-size: 80%;
}
/* Top navigation ----------------------------------------------------------- */
.navbar.fixed-top {
font-weight: 400;
border-bottom: 1px solid #C9CDD1;
}
.navbar-brand {
text-decoration: none;
white-space: pre;
}
.navbar .navbar-brand .brand-text {
color: #777;
}
@media (max-width: 1010px) {
.navbar-brand {
margin-right: 5px;
}
}
.navbar .navbar-nav .nav-link {
font-size: 20px;
line-height: 38px;
text-decoration: none;
transition: 0.5s;
}
.navbar .navbar-nav .nav-link:hover {
color: #27a2db;
}
.navbar .navbar-nav .active a {
font-weight: 700;
color: #3B4147;
background-color: #E1E5E8;
}
.navbar .active-parent a {
font-weight: 700;
background-color: #E1E5E8;
}
#navbar-search {
position: relative;
margin-right: 0.375rem;
}
#topsearchbar {
padding-right: 60px;
width: 100%;
}
#navbar-search .btn {
position: absolute;
right: 0.375rem;
}
/* Push content below fixed header ------------------------------------------ */
#main_content_wrapper {
margin-top: 55px;
}
/* Fix so anchors don't jump under the fixed header ------------------------- */
.main h1:before,
.main h2:before,
.main h3:before,
.main h4:before,
.main h5:before,
.main h6:before,
#main_content_wrapper:before,
.interactive-block:before {
display: block;
content: " ";
margin-top: -67px;
height: 67px;
visibility: hidden;
}
.card h1:before,
.card h2:before,
.card h3:before,
.card h4:before,
.card h5:before,
.card h6:before {
display: none;
}
/* Content text styling ----------------------------------------------------- */
.content {
padding-bottom: 50px;
}
/* Images should not exceed the main column */
.content img {
max-width: 100%;
height: auto;
}
/* But badge images shouldn't be resized */
.content img.dactyl_badge {
width: initial;
}
.content a {
text-decoration: underline;
}
.content h1 {
margin-top: 32px;
line-height: 1.2;
}
.content h1:first-child,
.landing section:first-of-type h1:first-child {
margin-top: 0;
line-height: 1.2;
}
.content h1:first-child:before {
margin-top: -90px;
}
.content h2 {
margin-top: 28px;
line-height: 1.2;
}
.content h3 {
margin-top: 24px;
line-height: 1.2;
}
.content h4 {
margin-top: 20px;
line-height: 1.2;
}
.content h5 {
margin-top: 16px;
line-height: 1.2;
font-weight: 700;
}
.content h6 {
margin-top: 12px
line-height: 1.2;
font-weight: 700;
}
.content p,
.content li,
.content td {
line-height: 1.65;
}
/* "Source" links float right */
.content a[title="Source"] {
float: right;
padding-left: 20px;
}
.content table {
clear: right;
margin-bottom: 1rem;
font-size: 15px;
}
.content table code {
word-break: normal;
white-space: nowrap;
}
/* Big draft warning at top of page so it's hard to mix up with the live site */
.draft-warning {
background-color: red;
color: white;
padding: 2px 6px;
margin: 10px;
position: absolute;
top: 25px;
left: 150px;
font-size: 12px;
font-weight: 700;
}
.content .children-display li a {
/* Category landing pages */
font-family: 'Space Mono', monospace;
font-weight: 700;
font-size: 1.25rem;
text-decoration: none;
}
.content .children-display li a:hover {
text-decoration: underline;
}
/* Footer ------------------------------------------------------------------- */
.build-disclaimer {
font-size: 10px;
}
.xrpl-footer h5 {
font-size: 14px;
}
.xrpl-footer li {
font-size: 12px;
}
.xrpl-footer .card li a {
font-weight: 400;
font-family: 'Space Mono', monospace;
}
.absolute_bottom_footer span {
margin-right: 25px;
font-size: 10px;
}
/* Callouts ----------------------------------------------------------------- */
.devportal-callout {
border-style: solid;
border-radius: 5px;
border-width: 1px;
border-left-width: 4px;
padding: 5px;
padding-left: 25px;
page-break-inside: avoid;
}
.devportal-callout > strong:first-child {
display: block;
page-break-after: avoid;
}
.devportal-callout.tip {
border-color: #5cb85c;
}
.devportal-callout.tip > strong:first-child:before {
content: "\f058"; /* fontawesome check-circle icon */
font-family: FontAwesome;
color: #5cb85c;
margin-left: -20px;
padding-right: 5px;
}
.devportal-callout.note {
border-color: #5bc0de;
}
.devportal-callout.note > strong:first-child:before {
content: "\f05a"; /* fontawesome (i) info-circle icon */
font-family: FontAwesome;
color: #5bc0de;
margin-left: -20px;
padding-right: 5px;
}
.devportal-callout.caution {
border-color: #f0ad4e;
}
.devportal-callout.caution > strong:first-child:before {
content: "\f071"; /* fontawesome /!\ exclamation-triangle icon */
font-family: FontAwesome;
color: #f0ad4e;
margin-left: -20px;
padding-right: 5px;
}
.devportal-callout.warning {
border-color: #d9534f;
}
.devportal-callout.warning > strong:first-child:before {
content: "\f057"; /* fontawesome (x) times-circle icon */
font-family: FontAwesome;
color: #d9534f;
margin-left: -20px;
padding-right: 5px;
}
/* Button styling ----------------------------------------------------------- */
p + .readmore {
margin-top: 12px;
}
.readmore .btn {
font-size: 18px;
transition: 0.5s;
white-space: normal;
}
.readmore .btn i,
.card-header a i {
margin: 0 0.2em 0 0.8em;
}
.btn-primary code,
.btn-secondary code {
color: inherit;
}
a.button {
cursor: pointer;
text-decoration: none !important;
}
.button, #request_button { /* Should be same as btn btn-primary */
display: inline-block;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: middle;
user-select: none;
border: 1px solid transparent;
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: 0.25rem;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
color: #fff;
background-color: #1db4ff;
border-color: #1db4ff;
}
.button:hover {
background-color: #43bded;
-o-transition: .5s;
-webkit-transition: .5s;
transition: .5s;
}
/* Code Tabs ---------------------------------------------------------------- */
pre {
overflow: visible;
word-wrap: normal;
}
pre code {
white-space: pre;
}
.code_sample pre {
background: none;
border: none;
border-radius: 0;
}
.code_sample pre code {
overflow: auto;
max-height: 14em;
background-color: #E1E4E8;
border: 1px solid #C9CDD1;
border-radius: 4px;
display: block;
padding: 0.5em;
}
.code_sample pre code.expanded {
overflow: visible;
max-height: none;
position: absolute;
min-width: 661px;
}
.code_sample .code_toggler {
position: absolute;
bottom: 0;
right: 0;
}
.multicode {
color: #000;
margin: 12px 0px 0px 0px;
padding: 0 0 0 0;
z-index: 1;
padding-left: 10px;
position: relative;
}
.multicode ul {
margin: 0 !important;
padding: 0;
}
.multicode pre {
padding-top: 0;
clear: both;
}
.multicode li {
display: block;
float: left;
overflow: hidden;
list-style-type: none;
margin-right: 5px;
border-top: 1px solid #DBDDE2;
}
.multicode ul > li:before {
background: none;
border: none;
}
.multicode a,
a.current {
color: black;
background: #DFE2E7;
border: 1px solid #DBDDE2;
padding: 1em 1em 0 1em;
margin: 0px;
text-decoration: none;
}
.multicode a.current {
background: #fff;
border-bottom: 1px solid #fff;
color: black;
}
.multicode a:hover {
color: black;
background: white;
}
/* Common list modules (children, curated links) ---------------------------- */
.curated-links ul,
.curated-links ol,
.children-display ul {
padding-left: 0;
margin-bottom: 0;
}
.level-1,
.curated-links ul li {
list-style-type: disc;
}
.level-1,
.curated-links li {
margin-top: 15px;
margin-left: 15px;
}
.level-1 a,
.curated-links li a {
font-weight: 700;
}
.landing .level-1,
.landing .level-2,
.landing .curated-links li {
font-weight: 400;
font-size: 14px;
margin-top: 0;
position: relative;
}
.landing .card .level-1 a,
.landing .card .curated-links li a {
padding: 8px;
display: block;
margin: 0 -8px 0 -8px;
font-weight: 400;
}
.landing .card .level-2 {
position: relative;
}
.landing .card .level-2 a {
padding: 8px 8px 8px 28px;
display: block;
margin: 0 -8px 0 -8px;
font-weight: 400;
}
.landing .card .blurb + .children-display,
.landing .card .blurb + .curated-links {
margin-top: 1rem;
}
.level-1:first-child {
margin-top: 0;
}
.level-2 {
list-style-type: circle;
margin-left: 30px;
}
.level-3 {
list-style-type: square;
margin-left: 45px;
}
.level-4 {
margin-left: 60px;
}
.level-5 {
margin-left: 75px;
list-style-type: circle;
}
.level-6 {
/* Probably not used */
margin-left: 90px;
list-style-type: square;
}
/* (Jump to) "Top" button --------------------------------------------------- */
.jump-to-top {
display: none;
position: fixed;
bottom: 15px;
right: 30px;
background-color: #3B4147;
font-weight: 700;
z-index: 1000;
color: white;
}
@media screen and (max-width: 767px) {
.jump-to-top {
bottom: 40px;
right: 40px;
}
}
/* Breacrumbs --------------------------------------------------------------- */
.breadcrumb-item + .breadcrumb-item:before {
content: "\f105"; /* fontawesome angle-right */
font-family: FontAwesome;
padding-right: 5px;
}
.breadcrumbs-wrap .breadcrumb {
padding: 0;
margin-bottom: 0;
}
/* Left navigation ---------------------------------------------------------- */
.sidebar_pagelist {
margin-left: 0;
margin-bottom: 0;
padding-left: 0;
padding-bottom: 15px;
list-style-type: none;
}
#sidenav a,
.sidenav_parent a {
text-decoration: none;
color: black;
}
#sidenav a.active-parent {
color: #3B4147;
font-weight: 700;
}
#sidenav a:hover,
.sidenav_parent a:hover {
text-decoration: underline;
color: #1db4ff;
}
#sidenav a.active,
#sidenav a.active:hover,
.sidenav_parent a.active,
.sidenav_parent a.active:hover {
color: #0F72E5;
font-weight: 700;
cursor: default;
text-decoration: none;
}
#sidenav .card + .card {
margin: 0;
}
#sidenav .card {
border-width: 0;
border-color: #E1E5E8;
}
#sidenav .card-body {
padding: 0;
}
#sidenav .collapse {
padding-bottom: 0;
}
#sidenav .card.active {
background-color: #F1F5F8;
}
#sidenav .card-header {
padding: 0;
background-color: transparent;
border-bottom: 0;
}
#sidenav .card {
padding: 0;
border-radius: 0;
border-top: 1px solid #C9CDD1;
}
#sidenav .card:only-child {
border-top: 0;
background: none;
}
#sidenav .card:only-child .sidebar_pagelist li a {
padding-left: 55px;
}
#sidenav .card-header h5 {
margin-bottom: 0;
text-transform: none;
font-size: 16px;
}
#sidenav .card-header h5 .sidenav_cat_title {
display: block;
padding: 11px 10px 11px 50px;
}
#sidenav .card-header .sidenav_cat_toggler {
position: absolute;
left: 0;
padding: 10px 12px 12px 12px;
background-color: #e0e0e0;
color: black;
line-height: 0;
transition: background-color 0.5s;
}
#sidenav .card-header .sidenav_cat_toggler.collapsed {
background-color: #C9CDD1;
}
#sidenav .card-header .sidenav_cat_toggler:hover {
text-decoration: none;
}
#sidenav .card-header .sidenav_cat_toggler:before {
content: "-";
width: 0.8em;
text-align: center;
display: block;
line-height: 17.7px;
}
#sidenav .card-header .sidenav_cat_toggler.collapsed:before {
content: "+";
}
.xrp-ledger-dev-portal.sidebar-primary .sidebar {
padding-right: 0;
padding-left: 0;
}
.xrp-ledger-dev-portal.sidebar-primary .main {
z-index: 5;
border-left: 1px solid #C9CDD1;
padding-left: 40px;
min-height: 700px;
}
/* Right navigation --------------------------------------------------------- */
#dactyl_toc_sidebar a {
text-decoration: none;
}
#dactyl_toc_sidebar a:hover {
text-decoration: underline;
}
#page-toc-wrapper {
position: fixed;
top: 75px;
max-height: calc(100% - 150px);
margin-right: 1.5rem;
overflow: auto;
z-index: 10;
}
.card .sidebar_pagelist li a {
display: block;
margin-top: 5px;
padding: 4px 15px 4px 75px;
text-indent: -20px;
font-size: 14px;
color: #27a2db;
}
.card .sidebar_pagelist a.active {
color: black;
font-weight: 700;
}
.card .sidebar_pagelist a:hover {
color: #3B4147;
}
.subcat-title.active-parent {
font-weight: 700;
}
.card .sidebar_pagelist li .subpage {
padding-left: 105px;
}
.sidenav_parent a {
display: block;
text-decoration: none;
font-size: 18px;
font-weight: 700;
padding: 15px 16px 15px 10px;
}
/* Edit on GitHub link ------------------------------------------------------ */
.github-edit-wrap {
background-image: linear-gradient(180deg, #fafafa 0%, #ddd 90%);
border: 1px solid #C9CDD1;
border-radius: 5px;
}
.github-edit-wrap:hover {
border-color: #777;
}
.github-edit-wrap:active {
background-image: linear-gradient(180deg, #ddd 0%, #fafafa 90%);
}
.github-edit-wrap .github-edit {
/* background-color: black; */
background-image: url(../vendor/github-marks/GitHub-Mark-32px.png);
background-size: 24px 24px;
background-position: left 5px center;
background-repeat: no-repeat;
padding: 8px 8px 8px 34px;
color: #777;
text-decoration: none;
font-size: 13px;
display: block;
line-height: 16px;
}
/* Use Cases ---------------------------------------------------------------- */
.use-case-steps {
padding-left: 1.5rem;
margin-left: 1.5rem;
border-left: 1px dashed #3B4147;
position: relative;
}
.use-case-step-num {
border: 1px solid #3B4147;
border-radius: 50%;
padding: 0.9rem;
position: absolute;
left: -1.8rem;
height: 3.5rem;
width: 3.5rem;
text-align: center;
background-color: white;
}
.use-case-step-length {
float: right;
color: #888;
font-size: 16px;
}
.use-case-steps p {
margin-left: .8rem;
}
.use-case-steps h2 {
margin-left: .8rem;
margin-top: 0;
}
.use-case-steps h2:first-of-type:before {
display: none;
}
/* Landing Pages ------------------------------------------------------------ */
.landing p {
font-size: 18px;
}
.landing .display-4 {
margin-bottom: 1.5rem;
}
.landing h3,
#test-net-servers h3 {
font-size: 20px;
line-height: 20px;
font-weight: 700;
}
.card-header h3.card-title {
margin-bottom: 0;
}
#test-net-servers pre {
overflow-x: auto;
}
.landing .card li,
.xrpl-footer .card li {
list-style-type: none;
margin-left: 0;
}
.landing section:first-of-type {
padding-top: 0;
border-top-width: 0;
}
.card-grid .card-body {
padding: 8px;
}
.landing .card-header,
.landing .card-footer,
.xrpl-footer .card-header {
background: none;
border-bottom: none;
border-top: none;
}
.landing .card-header,
.xrpl-footer .card-header {
padding: 8px;
}
.landing .card-footer {
padding: 8px;
}
.landing .card-body > p {
padding: 0;
font-size: 18px;
line-height: 18px;
margin-bottom: 0;
}
.btn-outline-secondary {
padding: 9px 16px;
transition: box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
background-color: transparent;
box-shadow: inset 0 0 0 1px #d3d0cf;
}
#main_content_wrapper .btn-outline-secondary:hover,
#main_content_wrapper .btn-outline-secondary:active {
/* Undo Bootstrap styling */
color: #1b1818;
background-color: inherit;
border: 1px solid #1b1818;
}
.btn:not(.external-link)::after,
.landing .card .level-1 a::after,
.landing .card .level-2 a::after,
.landing .card .curated-links li a::after,
.content .children-display li a::after {
content: " ➝";
padding-left: 7px;
transition: all .2s ease-in-out;
display: inline-block;
text-decoration: none;
}
.btn.jump-to-top::after {
content: " ↑"
}
.btn:not(.external-link):hover::after,
.landing .card .level-1 a:hover::after,
.landing .card .level-2 a:hover::after,
.landing .card .curated-links li a:hover::after,
.landing a.card:hover .btn::after,
.content .children-display li a:hover::after {
padding-left: 14px;
text-decoration: none;
}
.external-link .fa-external-link,
.related-projects a .fa-external-link {
transition: all .2s ease-in-out;
display: inline-block;
padding-left: 7px;
}
.external-link:hover .fa-external-link,
.related-projects a:hover .fa-external-link {
padding-left: 14px;
}
/* Avoid shifting other text over */
.content .external-link .fa-external-link {
padding-right: 7px;
}
.content .external-link:hover .fa-external-link {
padding-right: 0;
}
.blurb a {
font-weight: 700;
text-decoration: underline;
}
.landing .card > .card-img-top {
padding: 8px;
width: 60px;
height: 60px;
margin-left: 0;
margin-right: auto;
}
/* Full-link cards */
.landing a.card {
border: 1px solid transparent;
}
.landing a.card:hover {
text-decoration: none;
border: 1px solid black;
}
.landing a.card:hover h3 {
text-decoration: underline;
}
.landing a.card:hover .btn-outline-secondary {
border: 1px solid #1b1818;
color: #1b1818;
}
.recently-updated-date {
font-style: italic;
color: #6B7075;
font-size: 13px;
padding-left: 8px;
}
/* "Related Projects" boxes -------------- */
.interledger-link .project-icon {
width: 120px;
float: left;
margin-right: 10px;
}
.xpring-link .project-icon {
background-color: #212529;
padding: 4px;
border-radius: 4px;
height: 24px;
line-height: 20px;
vertical-align: middle;
}
/* Interactive blocks in tutorial contents ---------------------------------- */
/* I don't get it, but apparently setting padding or border on
.interactive-block breaks the fixed-header anchor fix from lines 90-104.
So the visual styles go on this inner div.
*/
.interactive-block-inner {
border: 1px dashed #ff5c00;
padding: 10px;
margin: 5px;
}
.interactive-block-ui > button {
margin: 10px 0;
}
.interactive-block .breadcrumb-wrap {
margin-bottom: 5px;
}
.interactive-block .breadcrumb-item a {
text-decoration: none;
}
.interactive-block .breadcrumb-item.current a {
font-weight: bold;
}
.interactive-block .breadcrumb-item.active a {
color: #43bded;
}
.interactive-block .breadcrumb-item.disabled a {
color: #6B7075;
}
.interactive-block .breadcrumb-item.done a:after {
content: "\f058"; /* fontawesome check-circle icon */
font-family: FontAwesome;
color: #6B7075;
padding-right: 5px;
padding-left: 5px;
}
.ws-console {
height: 200px;
overflow: auto;
}
/* Status labels ("DEV" etc) for non-enabled features ----------------------- */
.status {
cursor: help;
padding: 1px 2px;
font-weight: normal;
text-indent: 0;
}
.status.not_enabled {
color: #0F72E5;
}
.status.enabled {
color: #5cb85c;
}
/* Responsive design for different viewscreens ------------------------------ */
@media (max-width: 991px) {
#page-toc-wrapper {
position: static;
display: block;
clear: both;
overflow-y: inherit;
max-width: 100%;
max-height: inherit;
word-break: break-all;
}
.main {
overflow-wrap: break-word;
word-wrap: break-word;
overflow: hidden;
}
}
@media (max-width: 480px) {
html {
overflow-x: hidden !important;
}
}
@media (max-width: 400px) {
.navbar .navbar-brand .brand-text {
margin-right: 0;
letter-spacing: -0.08rem;
}
.navbar .navbar-brand {
margin-right: 0;
}
.navbar .navbar-brand .logo {
margin-right: 0;
margin-left: -1rem;
}
.btn {
white-space: normal;
}
}
/* Test Net Faucet stuff ---------------------------------------------------- */
/* Progress spinner animation */
@keyframes rotating {
from {
transform: rotate(0deg);
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
}
to {
transform: rotate(360deg);
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
}
}
@-webkit-keyframes rotating /* Safari and Chrome */ {
from {
transform: rotate(0deg);
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
}
to {
transform: rotate(360deg);
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
}
}
.page-test-net .throbber,
.page-tx-sender .throbber,
.interactive-block .throbber {
width: 24px;height:24px;
}
#connection-status-item.active {
background-color: #2BCB96;
border-color: #2BCB96;
}
#tx-sender-history ul {
overflow: auto;
height: 220px;
border: 1px solid rgba(0, 0, 0, 0.125)
}
#tx-sender-history .list-group-item {
font-size: small;
color: #6c757d;
}
.page-tx-sender .input-group .form-control {
flex: 1 1 20%;
}
.bootstrap-growl {
max-width: 90vw !important;
overflow: hidden;
}
/* Print styles ------------------------------------------------------------- */
@media print {
{
/* undo code tabs */
/* wrap code, not scroll */
/* Source URLs are too big to float */
/* Show URLs after links - even for anchors */
/* Drop header, footer, google translate */
/* table of contents can't scroll */
/* better margins on main content */
/* crazy print-section-numbering idea */
}
.multicode > div {
display: block !important;
}
.multicode > ul {
display: none !important;
}
.multicode > em,
.multicode > p > em {
display: block !important;
page-break-after: avoid;
}
.multicode > p {
display: block !important;
}
pre {
white-space: pre-wrap;
max-height: none !important;
overflow: visible;
page-break-inside: auto;
word-wrap: break-word;
}
pre code {
white-space: pre-wrap !important;
}
.content a[title="Source"] {
float: none;
}
header,
footer {
display: none;
}
#goog-gt-tt {
display: none;
}
h1 {
page-break-before: always;
}
.main {
float: none !important;
width: 85% !important;
border-left: 0 !important;
padding: 0 !important;
margin: 0 !important;
display: block !important;
overflow: visible !important;
}
}