mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 11:55:50 +00:00
Split styles into multiple files
This commit is contained in:
File diff suppressed because one or more lines are too long
19
styles/_breadcrumbs.scss
Normal file
19
styles/_breadcrumbs.scss
Normal file
@@ -0,0 +1,19 @@
|
||||
/* Breadcrumbs -------------------------------------------------------------- */
|
||||
|
||||
.breadcrumb-item + .breadcrumb-item:before {
|
||||
content: "\f105"; /* fontawesome angle-right */
|
||||
font-family: FontAwesome;
|
||||
padding-right: 5px;
|
||||
}
|
||||
.breadcrumbs-wrap .breadcrumb {
|
||||
padding: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 0.833em;
|
||||
}
|
||||
.breadcrumb-item a {
|
||||
color: hsla(14.999999999999947, 1.98%, 39.61%, 1.00);
|
||||
text-decoration: none;
|
||||
}
|
||||
.breadcrumb-item a:hover {
|
||||
color: #000;
|
||||
}
|
||||
132
styles/_buttons.scss
Normal file
132
styles/_buttons.scss
Normal file
@@ -0,0 +1,132 @@
|
||||
.content a.button {
|
||||
color: $black;
|
||||
border: 1px solid $gray-300;
|
||||
}
|
||||
.content a.button:hover {
|
||||
border: 1px solid $black;
|
||||
}
|
||||
|
||||
.btn-outline-secondary {
|
||||
color: $black;
|
||||
border-color: $gray-300;
|
||||
}
|
||||
|
||||
#main_content_wrapper .btn-outline-secondary:hover,
|
||||
#main_content_wrapper .btn-outline-secondary:active,
|
||||
.button:hover, #request_button:hover {
|
||||
/* Undo Bootstrap styling */
|
||||
color: $black;
|
||||
background-color: inherit;
|
||||
border: 1px solid $black;
|
||||
}
|
||||
|
||||
/* Button styling ----------------------------------------------------------- */
|
||||
|
||||
p + .readmore {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.readmore .btn {
|
||||
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;
|
||||
}
|
||||
|
||||
/* (Jump to) "Top" button */
|
||||
|
||||
.jump-to-top {
|
||||
background-color: $gray-700;
|
||||
display: none;
|
||||
position: fixed;
|
||||
bottom: 15px;
|
||||
right: 30px;
|
||||
font-weight: 700;
|
||||
z-index: 1000;
|
||||
color: white;
|
||||
}
|
||||
@media screen and (max-width: 767px) {
|
||||
.jump-to-top {
|
||||
bottom: 40px;
|
||||
right: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-outline-secondary {
|
||||
padding: 9px 16px;
|
||||
transition: box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.content a.button {
|
||||
/* should match the bootstrap buttons */
|
||||
display: inline-block;
|
||||
font-weight: 400;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
text-decoration: none;
|
||||
line-height: 1.5;
|
||||
padding: 9px 16px;
|
||||
transition: 0.5s;
|
||||
}
|
||||
|
||||
.content a.button::after {
|
||||
content: " ➝";
|
||||
padding-left: 7px;
|
||||
transition: all .2s ease-in-out;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.content a.button:hover::after {
|
||||
padding-left: 14px;
|
||||
}
|
||||
|
||||
.btn:not(.external-link):not(.dropdown-toggle):not(.jump-to-top)::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):not(.dropdown-toggle):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;
|
||||
}
|
||||
|
||||
.btn.fa-search::after,
|
||||
.btn.fa-search:hover::after,
|
||||
.request-options .btn::after,
|
||||
.request-options .btn:hover::after,
|
||||
.response-options .btn::after,
|
||||
.response-options .btn:hover::after {
|
||||
content: "";
|
||||
padding: 0;
|
||||
}
|
||||
81
styles/_callouts.scss
Normal file
81
styles/_callouts.scss
Normal file
@@ -0,0 +1,81 @@
|
||||
/* Callouts ----------------------------------------------------------------- */
|
||||
|
||||
.devportal-callout.tip,
|
||||
.devportal-callout.ヒント {
|
||||
border-color: $success;
|
||||
}
|
||||
.devportal-callout.tip > strong:first-child:before,
|
||||
.devportal-callout.ヒント > strong:first-child:before {
|
||||
color: $success;
|
||||
}
|
||||
.devportal-callout.note > strong:first-child:before,
|
||||
.devportal-callout.注記 > strong:first-child:before {
|
||||
color: $info;
|
||||
}
|
||||
.devportal-callout.note,
|
||||
.devportal-callout.注記 {
|
||||
border-color: $info;
|
||||
}
|
||||
.devportal-callout.caution,
|
||||
.devportal-callout.注意 {
|
||||
border-color: $warning; /* not a typo */
|
||||
}
|
||||
.devportal-callout.caution > strong:first-child:before,
|
||||
.devportal-callout.注意 > strong:first-child:before {
|
||||
color: $warning; /* not a typo */
|
||||
}
|
||||
.devportal-callout.warning,
|
||||
.devportal-callout.警告 {
|
||||
border-color: $danger;
|
||||
}
|
||||
.devportal-callout.warning > strong:first-child:before,
|
||||
.devportal-callout.警告 > strong:first-child:before {
|
||||
color: $danger;
|
||||
}
|
||||
|
||||
.devportal-callout {
|
||||
border-style: solid;
|
||||
border-radius: 0;
|
||||
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 > strong:first-child:before {
|
||||
content: "\f058"; /* fontawesome check-circle icon */
|
||||
font-family: FontAwesome;
|
||||
/* color in scss */
|
||||
margin-left: -20px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.devportal-callout.note > strong:first-child:before {
|
||||
content: "\f05a"; /* fontawesome (i) info-circle icon */
|
||||
font-family: FontAwesome;
|
||||
/* color in scss */
|
||||
margin-left: -20px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.devportal-callout.caution > strong:first-child:before {
|
||||
content: "\f071"; /* fontawesome /!\ exclamation-triangle icon */
|
||||
font-family: FontAwesome;
|
||||
/* color in scss */
|
||||
margin-left: -20px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.devportal-callout.warning > strong:first-child:before {
|
||||
content: "\f057"; /* fontawesome (x) times-circle icon */
|
||||
font-family: FontAwesome;
|
||||
/* color in scss */
|
||||
margin-left: -20px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
107
styles/_code-tabs.scss
Normal file
107
styles/_code-tabs.scss
Normal file
@@ -0,0 +1,107 @@
|
||||
/* Code Tabs ---------------------------------------------------------------- */
|
||||
|
||||
.multicode {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.multicode a.current {
|
||||
background-color: $gray-200;
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.multicode a,
|
||||
a.current {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.multicode li {
|
||||
border-color: $gray-300;
|
||||
}
|
||||
|
||||
.code_sample pre code {
|
||||
background-color: $gray-200;
|
||||
}
|
||||
|
||||
.multicode a:hover {
|
||||
color: $black;
|
||||
border-bottom: 1px solid $black;
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
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: 24em;
|
||||
border-radius: 4px;
|
||||
display: block;
|
||||
padding: 24px;
|
||||
}
|
||||
.code_sample pre code.expanded {
|
||||
overflow: visible;
|
||||
max-height: none;
|
||||
position: absolute;
|
||||
}
|
||||
.code_sample .code_toggler {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.multicode {
|
||||
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;
|
||||
list-style-type: none;
|
||||
margin-right: 0px;
|
||||
margin-left: 0px;
|
||||
border-style: none solid;
|
||||
border-width: 0.5px;
|
||||
}
|
||||
.multicode ul > li:before {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
.multicode a,
|
||||
a.current {
|
||||
padding-right: 32px;
|
||||
padding-left: 32px;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 10px;
|
||||
margin: 0px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.multicode a.current:hover {
|
||||
border-bottom: none;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.multicode li:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
.multicode li:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
126
styles/_content.scss
Normal file
126
styles/_content.scss
Normal file
@@ -0,0 +1,126 @@
|
||||
/* Site-wide header link styles --------------------------------------------- */
|
||||
h1 a,
|
||||
h2 a,
|
||||
h3 a {
|
||||
color: $black;
|
||||
text-decoration: none;
|
||||
}
|
||||
h1 a:hover,
|
||||
h2 a:hover,
|
||||
h3 a:hover,
|
||||
.xrpl-footer h5 a:hover {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.header-link:hover {
|
||||
//TODO: this class may not do anything useful?
|
||||
color: $black;
|
||||
}
|
||||
|
||||
/* 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,
|
||||
.blurb a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
.content h1 {
|
||||
margin-top: 32px;
|
||||
line-height: 1.2;
|
||||
font-weight: 400;
|
||||
}
|
||||
.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: -80px;
|
||||
}
|
||||
.content h2 {
|
||||
margin-top: 72px;
|
||||
margin-bottom: 24px;
|
||||
font-weight: 400;
|
||||
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;
|
||||
}
|
||||
|
||||
/* Some list items contain <p> tags, some don't. These styles make sure both
|
||||
kinds are spaced consistently. */
|
||||
.content li {
|
||||
margin: 6px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
.content li p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* "Source" links float right */
|
||||
.content a[title="Source"] {
|
||||
float: right;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Tables ------------------------------- */
|
||||
|
||||
.content table {
|
||||
clear: right;
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
|
||||
.content table code {
|
||||
word-break: normal;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
th {
|
||||
border-bottom: 1px solid $black;
|
||||
}
|
||||
tr {
|
||||
border-bottom: 1px solid $gray-200;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 0.2em;
|
||||
vertical-align: text-top;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
td:nth-child(1) {
|
||||
font-weight: bold;
|
||||
}
|
||||
73
styles/_dev-tools.scss
Normal file
73
styles/_dev-tools.scss
Normal file
@@ -0,0 +1,73 @@
|
||||
/* Dev Tool styles stuff ---------------------------------------------------- */
|
||||
|
||||
#tx-sender-history .list-group-item {
|
||||
font-size: small;
|
||||
color: $gray-600;
|
||||
}
|
||||
|
||||
.response-metadata .timestamp {
|
||||
color: $gray-600;
|
||||
position: relative;
|
||||
top: 16px;
|
||||
}
|
||||
|
||||
/* 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; /* TODO: adjust this color */
|
||||
border-color: #2BCB96; /* TODO: adjust this color */
|
||||
}
|
||||
|
||||
#tx-sender-history ul {
|
||||
overflow: auto;
|
||||
height: 220px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.125)
|
||||
}
|
||||
|
||||
.page-tx-sender .input-group .form-control {
|
||||
flex: 1 1 20%;
|
||||
}
|
||||
|
||||
.bootstrap-growl {
|
||||
max-width: 90vw !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
26
styles/_external-links.scss
Normal file
26
styles/_external-links.scss
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
/* Reduce external link icon size */
|
||||
.fa.fa-external-link:before {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
.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-left: 1px;
|
||||
padding-right: 7px;
|
||||
}
|
||||
.content .external-link:hover .fa-external-link {
|
||||
padding-left: 7px;
|
||||
padding-right: 1px;
|
||||
}
|
||||
33
styles/_font-face.scss
Normal file
33
styles/_font-face.scss
Normal file
@@ -0,0 +1,33 @@
|
||||
// Font face stuff from Google
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local("Roboto"), url("../font/Roboto-Regular.woff2") format('woff2'), url(https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url("../font/Roboto-Bold.woff2") format('woff2'), url(https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Space Mono';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: auto;
|
||||
src: local('Space Mono'), local('SpaceMono-Regular'), url("../font/SpaceMono-Regular.woff2") format('woff2'), url(https://fonts.gstatic.com/s/spacemono/v4/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Space Mono';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: auto;
|
||||
src: local('Space Mono Bold'), local('SpaceMono-Bold'), url("../font/SpaceMono-Bold.woff2") format('woff2'), url(https://fonts.gstatic.com/s/spacemono/v4/i7dMIFZifjKcF5UAWdDRaPpZUFWaHg.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
37
styles/_font.scss
Normal file
37
styles/_font.scss
Normal file
@@ -0,0 +1,37 @@
|
||||
// Font Settings ===============================================================
|
||||
|
||||
body {
|
||||
font-feature-settings: "liga", "kern";
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
pre, code {
|
||||
/* Disable ligatures on code-font, so, for example,
|
||||
</ doesn't become a diagonal arrow. */
|
||||
font-feature-settings: "liga" 0;
|
||||
font-variant-ligatures: none;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5 {
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-weight: 700;
|
||||
color: $black;
|
||||
}
|
||||
|
||||
/* Japanese language font override ------------------------------------------ */
|
||||
|
||||
.lang-ja {
|
||||
h1, h2, h3, h4, h5,
|
||||
.github-edit-wrap .github-edit,
|
||||
.navbar .navbar-nav .nav-link,
|
||||
.content .children-display li a,
|
||||
.right-sidebar .level-1 a,
|
||||
.right-sidebar .separator,
|
||||
.use-case-step-num {
|
||||
//font-family: 'M PLUS 1p', 'Space Mono', sans-serif;
|
||||
//font-family: '851Gkktt', 'Space Mono', sans-serif;
|
||||
font-family: 'Makinas-4-Flat', 'Makinas-4-Square', 'Space Mono', sans-serif;
|
||||
}
|
||||
}
|
||||
52
styles/_footer.scss
Normal file
52
styles/_footer.scss
Normal file
@@ -0,0 +1,52 @@
|
||||
/* Footer ------------------------------------------------------------------- */
|
||||
|
||||
.xrpl-footer {
|
||||
border-top: 1px solid $black;
|
||||
border-bottom: 1px solid $black;
|
||||
}
|
||||
.xrpl-footer .container-fluid {
|
||||
border-bottom: 1px solid $gray-200;
|
||||
}
|
||||
|
||||
.xrpl-footer h5 a {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.xrpl-footer {
|
||||
margin: 0 48px;
|
||||
}
|
||||
|
||||
.xrpl-footer .card-body {
|
||||
margin-top: -15px;
|
||||
}
|
||||
|
||||
.xrpl-footer .card {
|
||||
padding-top: 24px;
|
||||
}
|
||||
|
||||
.xrpl-footer h5 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.xrpl-footer li {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.absolute_bottom_footer span {
|
||||
margin-right: 25px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.xrpl-footer .card-header h5 i {
|
||||
margin-left: 0.2em;
|
||||
}
|
||||
|
||||
.xrpl-footer .card-grid .card {
|
||||
padding: 24px 48px 48px 48px;
|
||||
}
|
||||
.xrpl-footer .card-grid .card:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
.xrpl-footer .card-grid .card {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
22
styles/_github-edit.scss
Normal file
22
styles/_github-edit.scss
Normal file
@@ -0,0 +1,22 @@
|
||||
/* Edit on GitHub link ------------------------------------------------------ */
|
||||
.github-edit-wrap {
|
||||
border: 1px solid $gray-400;
|
||||
margin-right: 5px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.github-edit-wrap:hover {
|
||||
border-color: $black;
|
||||
}
|
||||
.github-edit-wrap .github-edit {
|
||||
background-image: url(../vendor/github-marks/GitHub-Mark-32px.png);
|
||||
background-size: 24px 24px;
|
||||
background-position: left 12px center;
|
||||
background-repeat: no-repeat;
|
||||
padding: 8px 16px 8px 48px;
|
||||
color: $gray-600;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
line-height: 17px; /* Match search box height */
|
||||
font-family: "Space Mono", monospace;
|
||||
font-weight: 700;
|
||||
}
|
||||
48
styles/_interactive-tutorials.scss
Normal file
48
styles/_interactive-tutorials.scss
Normal file
@@ -0,0 +1,48 @@
|
||||
/* 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.
|
||||
So the visual styles go on this inner div.
|
||||
*/
|
||||
.interactive-block-inner {
|
||||
border: 1px dashed #25A768;
|
||||
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; /* TODO: adjust this color */
|
||||
}
|
||||
|
||||
.interactive-block .breadcrumb-item.disabled a {
|
||||
color: #6B7075; /* TODO: adjust this color */
|
||||
}
|
||||
|
||||
.interactive-block .breadcrumb-item.done a:after {
|
||||
content: "\f058"; /* fontawesome check-circle icon */
|
||||
font-family: FontAwesome;
|
||||
color: #6B7075; /* TODO: adjust this color */
|
||||
padding-right: 5px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.ws-console {
|
||||
height: 200px;
|
||||
overflow: auto;
|
||||
}
|
||||
223
styles/_landings.scss
Normal file
223
styles/_landings.scss
Normal file
@@ -0,0 +1,223 @@
|
||||
|
||||
.landing .curated-links a,
|
||||
.landing .children-display a,
|
||||
.landing a.card,
|
||||
.xrpl-footer a {
|
||||
color: $gray-600;
|
||||
}
|
||||
|
||||
.landing .curated-links a:hover,
|
||||
.landing .children-display a:hover,
|
||||
.xrpl-footer a:hover {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.card-grid .section-hero.card {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.container-fluid.section-hero {
|
||||
padding: 48px 0;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.landing {
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
/* Common list modules (children, curated links) ---------------------------- */
|
||||
.curated-links ul,
|
||||
.curated-links ol,
|
||||
.children-display ul {
|
||||
padding-left: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.card .curated-links a:hover,
|
||||
.card .children-display a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.level-1,
|
||||
.curated-links ul li {
|
||||
list-style-type: disc;
|
||||
}
|
||||
.level-1,
|
||||
.curated-links li {
|
||||
margin-top: 12px;
|
||||
margin-left: 16px;
|
||||
}
|
||||
|
||||
.landing .level-1,
|
||||
.landing .level-2,
|
||||
.landing .curated-links li {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.landing .card .level-1 a,
|
||||
.landing .card .curated-links li a {
|
||||
padding: 8px;
|
||||
display: block;
|
||||
margin: 0 -8px 0 -8px;
|
||||
}
|
||||
|
||||
.landing .card .level-2 {
|
||||
position: relative;
|
||||
}
|
||||
.landing .card .level-2 a {
|
||||
padding: 8px 8px 8px 28px;
|
||||
display: block;
|
||||
margin: 0 -8px 0 -8px;
|
||||
}
|
||||
|
||||
.landing .card .blurb + .children-display,
|
||||
.landing .card .blurb + .curated-links {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.section-hero .blurb {
|
||||
font-size: 1.2em;
|
||||
line-height: 1.71em;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.landing .card {
|
||||
padding-left: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Landing Pages ------------------------------------------------------------ */
|
||||
|
||||
.landing .display-4 {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.landing h3,
|
||||
#test-net-servers h3 {
|
||||
font-size: 1.4rem;
|
||||
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;
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
|
||||
.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;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
#main_content_wrapper {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.landing .card .card-img-top {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin-left: 0;
|
||||
margin-right: auto;
|
||||
}
|
||||
.image-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/* Full-link cards */
|
||||
.landing a.card {
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.landing a.card:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.landing a.card:hover h3 {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* "Related Projects" boxes -------------- */
|
||||
|
||||
.interledger-link .project-icon {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.xpring-link .project-icon {
|
||||
height: 60px;
|
||||
width: 100px;
|
||||
line-height: 20px;
|
||||
vertical-align: middle;
|
||||
margin: 9px 0;
|
||||
}
|
||||
12
styles/_lang-selector.scss
Normal file
12
styles/_lang-selector.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
/* Language selector (the one in the footer) -------------------------------- */
|
||||
|
||||
.language-selector {
|
||||
.nav-link {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.nav-link.active {
|
||||
color: $black;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
248
styles/_layout.scss
Normal file
248
styles/_layout.scss
Normal file
@@ -0,0 +1,248 @@
|
||||
.landing section,
|
||||
.xrpl-footer .card-grid,
|
||||
#main_content_wrapper {
|
||||
border-bottom: 1px solid $black;
|
||||
}
|
||||
|
||||
|
||||
.landing section:last-of-type {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* main content area ----------------------------------- */
|
||||
.sidebar-primary .main {
|
||||
border-left: 1px solid $gray-200;
|
||||
border-right: 1px solid $gray-200;
|
||||
}
|
||||
|
||||
// Card Grid styles ------------------------------------------------------------
|
||||
|
||||
.card-grid {
|
||||
display: grid;
|
||||
gap: 1px;
|
||||
background-color: $gray-200;
|
||||
padding: 0;
|
||||
|
||||
&.card-grid-2x2 {
|
||||
/* left half is a hero area; right half is a 2x2 grid. */
|
||||
grid-template-columns: 2fr 1fr 1fr;
|
||||
grid-template-rows: auto auto;
|
||||
|
||||
.section-hero {
|
||||
grid-row-end: span 2;
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
/* Switch to 1-column layout on smaller widths */
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: repeat(5, auto);
|
||||
}
|
||||
}
|
||||
|
||||
&.card-grid-2x1 {
|
||||
/* left half is a hero area; right half is a 2x1 grid. */
|
||||
grid-template-columns: 2fr 1fr 1fr;
|
||||
grid-template-rows: 1fr;
|
||||
|
||||
.section-hero {
|
||||
grid-row-end: span 1;
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
/* Switch to 1-column layout on smaller widths */
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
&.card-grid-2x4 {
|
||||
/* left half is a hero area; right half is a 2x4 grid. Total grid is 4x4 */
|
||||
grid-template-columns: 2fr 1fr 1fr;
|
||||
grid-template-rows: 1fr 1fr 1fr 1fr;
|
||||
|
||||
.section-hero {
|
||||
grid-row-end: span 4;
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
/* Switch to 1-column layout on smaller widths */
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: repeat(5, auto);
|
||||
|
||||
.section-hero {
|
||||
grid-row-end: span 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.card-grid-4xN {
|
||||
/* 4 equal columns and any number of auto-sized rows. */
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
grid-auto-rows: auto;
|
||||
|
||||
/* No "hero" blocks expected here. */
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
/* Switch to 1-column layout on smaller widths */
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
&.card-grid-3xN {
|
||||
/* 3 equal columns and any number of auto-sized rows. */
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
grid-auto-rows: auto;
|
||||
|
||||
/* No "hero" blocks expected here. */
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
/* Switch to 1-column layout on smaller widths */
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
&.card-grid-Nx1 {
|
||||
/* 1 row of equal sized columns */
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: 1fr;
|
||||
grid-template-rows: auto;
|
||||
|
||||
/* No "hero" blocks expected here. */
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
/* Switch to 1-column layout on smaller widths */
|
||||
grid-auto-flow: row;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 40px;
|
||||
border: 0;
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Grid Box Vertical numbers ------------------------------------------------ */
|
||||
.flag-vertical {
|
||||
color: $gray-200;
|
||||
position: absolute;
|
||||
top: 2em;
|
||||
right: 3em;
|
||||
width: 20px;
|
||||
-webkit-transform: rotate(90deg);
|
||||
-ms-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
-webkit-transform-origin: 100% 100%;
|
||||
-ms-transform-origin: 100% 100%;
|
||||
transform-origin: 100% 100%;
|
||||
font-size: 0.833em;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
// Misc. layout styles ---------------------------------------------------------
|
||||
.xrp-ledger-dev-portal.sidebar-primary .main {
|
||||
z-index: 5;
|
||||
padding: 44px 24px 48px;
|
||||
min-height: 700px;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin: 0 -1px;
|
||||
}
|
||||
|
||||
|
||||
.doc-index {
|
||||
padding: 48px 0;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.landing .card-grid .card,
|
||||
.landing .card-grid .card-body,
|
||||
.landing .card-grid .card-header {
|
||||
padding-left: 0;
|
||||
}
|
||||
.landing .doc-index {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive design for different viewscreens ------------------------------ */
|
||||
|
||||
@media (max-width: 991px) {
|
||||
|
||||
#main_content_wrapper {
|
||||
padding: 0 24px;
|
||||
}
|
||||
.navbar-brand img {
|
||||
width: 120px;
|
||||
}
|
||||
.landing section:first-of-type h1:first-child {
|
||||
font-size: 3em;
|
||||
font-weight: 400;
|
||||
}
|
||||
.section-hero .blurb {
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
.sidebar-primary .main {
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.right-sidebar .card {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#main_content_body {
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
#main_content_body .container-fluid {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.xrpl-footer {
|
||||
margin: 0 24px;
|
||||
}
|
||||
|
||||
#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;
|
||||
}
|
||||
}
|
||||
58
styles/_print.scss
Normal file
58
styles/_print.scss
Normal file
@@ -0,0 +1,58 @@
|
||||
/* Print styles ------------------------------------------------------------- */
|
||||
@media print {
|
||||
/* undo code tabs */
|
||||
.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;
|
||||
}
|
||||
/* wrap code, not scroll */
|
||||
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;
|
||||
}
|
||||
/* Drop header, footer, sidebars */
|
||||
header,
|
||||
footer,
|
||||
aside {
|
||||
display: none;
|
||||
}
|
||||
/* Full-width content body */
|
||||
.content, #main_content_body {
|
||||
position: static;
|
||||
display: block;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
#main_content_wrapper {
|
||||
margin-top: 0;
|
||||
}
|
||||
#main_content_body::before {
|
||||
display: none;
|
||||
}
|
||||
.xrp-ledger-dev-portal.sidebar-primary .main {
|
||||
border: 0;
|
||||
}
|
||||
.sidebar-primary .row {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
259
styles/_side-nav.scss
Normal file
259
styles/_side-nav.scss
Normal file
@@ -0,0 +1,259 @@
|
||||
/* Left/right nav color scheme ------------------------------- */
|
||||
aside li a {
|
||||
color: $gray-600;
|
||||
text-decoration: none;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
aside .sidenav_cat_title {
|
||||
color: $black;
|
||||
}
|
||||
aside a:hover,
|
||||
aside .sidenav_cat_title:hover {
|
||||
color: $primary;
|
||||
}
|
||||
|
||||
aside a.active,
|
||||
aside a.active:hover {
|
||||
color: $primary;
|
||||
font-weight: 700;
|
||||
}
|
||||
aside a.active-parent {
|
||||
color: $gray-700;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sidebar_pagelist {
|
||||
border-left: 1px solid $gray-200;
|
||||
}
|
||||
.sidebar_pagelist a,
|
||||
.right-sidebar li a {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
margin-left: -17px;
|
||||
padding: 4px 15px 4px 35px;
|
||||
text-indent: -20px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.sidebar_pagelist a:hover {
|
||||
padding-left: 34px;
|
||||
border-left: 1px solid $primary;
|
||||
}
|
||||
.sidebar_pagelist .active,
|
||||
.sidebar_pagelist .active:hover {
|
||||
padding-left: 33px;
|
||||
border-left: 2px solid $primary;
|
||||
}
|
||||
.sidebar_pagelist .subpage {
|
||||
margin-left: 0;
|
||||
margin-top: 0;
|
||||
padding-left: 35px;
|
||||
border-left: 1px solid $gray-200;
|
||||
}
|
||||
.sidebar_pagelist .subpage:hover {
|
||||
padding-left: 35px;
|
||||
border-left: 1px solid $primary;
|
||||
}
|
||||
.sidebar_pagelist .active.subpage,
|
||||
.sidebar_pagelist .active.subpage:hover {
|
||||
padding-left: 33px;
|
||||
border-left: 2px solid $primary;
|
||||
}
|
||||
.sidebar_pagelist li a .fa {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.sidenav_cat_toggler {
|
||||
background-color: $gray-600;
|
||||
}
|
||||
.sidenav_cat_toggler:hover {
|
||||
background-color: $primary;
|
||||
}
|
||||
|
||||
.right-sidebar .card-body {
|
||||
border-left: 1px solid $gray-200;
|
||||
}
|
||||
|
||||
.sidenav_parent a {
|
||||
color: $black;
|
||||
display: block;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
padding: 15px 16px 15px 10px;
|
||||
}
|
||||
|
||||
.right-sidebar .level-1 a {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.right-sidebar .level-3 {
|
||||
padding-left: 16px;
|
||||
border-left: 1px solid $gray-200;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.right-sidebar .level-3 a {
|
||||
margin-top: 0;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.right-sidebar li a:hover {
|
||||
text-decoration: none;
|
||||
border-left: 1px solid $primary;
|
||||
padding-left: 34px;
|
||||
}
|
||||
|
||||
/* Left navigation ---------------------------------------------------------- */
|
||||
|
||||
.tree_nav {
|
||||
top: 48px;
|
||||
padding: 44px 24px 48px 0;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.sidebar_pagelist {
|
||||
margin-bottom: 12px;
|
||||
margin-left: 24px;
|
||||
padding-left: 16px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#sidenav a,
|
||||
.sidenav_parent a {
|
||||
text-decoration: none;
|
||||
line-height: 24px;
|
||||
}
|
||||
#sidenav a.active-parent {
|
||||
font-weight: 700;
|
||||
}
|
||||
#sidenav a:hover,
|
||||
.sidenav_parent a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#sidenav .card + .card {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#sidenav .card {
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
#sidenav .card-body {
|
||||
padding: 0;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
#sidenav .card-body-single {
|
||||
margin-left: -25px;
|
||||
}
|
||||
|
||||
#sidenav .collapse {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
#sidenav .card-header {
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
#sidenav .card {
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#sidenav .card:only-child {
|
||||
border-top: 0;
|
||||
background: none;
|
||||
}
|
||||
|
||||
#sidenav .card-header h5 {
|
||||
margin-bottom: 0;
|
||||
text-transform: none;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
#sidenav .card-header h5 .sidenav_cat_title {
|
||||
display: block;
|
||||
padding: 11px 10px 11px 40px;
|
||||
}
|
||||
|
||||
#sidenav .card-header .sidenav_cat_toggler {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
padding: 10px 12px 12px 12px;
|
||||
line-height: 0;
|
||||
|
||||
-webkit-transform: rotate(90deg);
|
||||
-ms-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
|
||||
#sidenav .card-header .sidenav_cat_toggler {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: block;
|
||||
-webkit-mask-image: url(../img/icon-arrow.svg);
|
||||
mask-image: url(../img/icon-arrow.svg);
|
||||
-webkit-mask-position: center;
|
||||
mask-position: center;
|
||||
-webkit-mask-size: 24px 24px;
|
||||
mask-size: 24px 24px;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
mask-repeat: no-repeat;
|
||||
border: 12px solid transparent;
|
||||
}
|
||||
|
||||
#sidenav .card-header .sidenav_cat_toggler.collapsed {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
|
||||
/* Right navigation --------------------------------------------------------- */
|
||||
|
||||
.right-sidebar .card {
|
||||
position: sticky;
|
||||
max-height: 85vh;
|
||||
top: 48px;
|
||||
overflow: auto;
|
||||
padding: 44px 0 48px 24px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.right-sidebar .card-header {
|
||||
border-bottom: none;
|
||||
background-color: white;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.right-sidebar .card-header h4 {
|
||||
line-height: 20px;
|
||||
font-size: 1.2em;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.right-sidebar .card-body {
|
||||
padding: 0 0 0 16px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.right-sidebar ul li {
|
||||
list-style-type: none;
|
||||
margin-bottom: 8px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.right-sidebar .level-1 a,
|
||||
.right-sidebar .separator {
|
||||
font-weight: 700;
|
||||
font-family: "Space Mono", monospace;
|
||||
}
|
||||
.right-sidebar .level-2,
|
||||
.right-sidebar .method {
|
||||
margin-left: 0;
|
||||
}
|
||||
12
styles/_status-labels.scss
Normal file
12
styles/_status-labels.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
/* Status labels ("DEV" etc) for non-enabled features ----------------------- */
|
||||
|
||||
.status {
|
||||
cursor: help;
|
||||
padding: 1px 2px;
|
||||
font-weight: normal;
|
||||
text-indent: 0;
|
||||
}
|
||||
.status.not_enabled {
|
||||
/* flask icon for "not yet enabled" features */
|
||||
color: $warning;
|
||||
}
|
||||
187
styles/_top-nav.scss
Normal file
187
styles/_top-nav.scss
Normal file
@@ -0,0 +1,187 @@
|
||||
/* Top navigation ----------------------------------------------------------- */
|
||||
|
||||
.navbar.fixed-top {
|
||||
box-shadow: inset 0 -1px 0 0 $gray-200;
|
||||
}
|
||||
|
||||
.navbar .navbar-nav .nav-link {
|
||||
color: $gray-600;
|
||||
}
|
||||
|
||||
.navbar .navbar-nav .nav-link:hover,
|
||||
.navbar .navbar-nav .nav-link:active,
|
||||
.navbar .navbar-nav .active .nav-link,
|
||||
.navbar .active-parent .nav-link {
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.navbar.fixed-top {
|
||||
font-weight: 400;
|
||||
padding: 0;
|
||||
margin: 0 48px;
|
||||
}
|
||||
|
||||
@media (max-width: 1105px) {
|
||||
.navbar.fixed-top {
|
||||
margin: 0 20px;
|
||||
}
|
||||
.navbar .navbar-nav .nav-link {
|
||||
padding-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
text-decoration: none;
|
||||
white-space: pre;
|
||||
-webkit-transition: opacity 200ms ease, color 200ms ease;
|
||||
transition: opacity 200ms ease, color 200ms ease;
|
||||
}
|
||||
.navbar-brand:hover {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.navbar .navbar-nav .nav-link {
|
||||
font-size: 1rem;
|
||||
line-height: 52px;
|
||||
text-decoration: none;
|
||||
font-family: 'Space Mono', monospace;
|
||||
}
|
||||
|
||||
.navbar .navbar-nav .nav-link:hover {
|
||||
background-color: transparent;
|
||||
box-shadow: inset 0 -1px 0 0 #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.navbar .navbar-nav .active a {
|
||||
font-weight: 700;
|
||||
box-shadow: inset 0 -1px 0 0 #000;
|
||||
}
|
||||
.navbar .active-parent a {
|
||||
font-weight: 700;
|
||||
box-shadow: inset 0 -1px 0 0 #000;
|
||||
}
|
||||
|
||||
#navbar-search {
|
||||
position: relative;
|
||||
margin-right: 0.375rem;
|
||||
}
|
||||
|
||||
#navbar-search .form-inline {
|
||||
min-width: 224px; /* more room for placeholder text */
|
||||
}
|
||||
|
||||
#topsearchbar {
|
||||
padding-right: 40px;
|
||||
width: 100%;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
#navbar-search .btn {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
/* Top navigation Mobile ----------------------------------------------------------- */
|
||||
@media (max-width: 991px) {
|
||||
|
||||
.navbar .navbar-nav .nav-link {
|
||||
height: 48px;
|
||||
}
|
||||
.github-edit-wrap {
|
||||
margin: 20px 10px 20px 0;
|
||||
}
|
||||
|
||||
#navbar-search .btn::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.navbar-collapse {
|
||||
background-color: white;
|
||||
position: absolute;
|
||||
top: 200px;
|
||||
right: 0;
|
||||
overflow: scroll;
|
||||
width: 260px;
|
||||
max-height: 60vh;
|
||||
margin-right: 24px;
|
||||
margin-bottom: 108px;
|
||||
padding: 24px;
|
||||
-webkit-box-flex: 1;
|
||||
z-index: 10;
|
||||
|
||||
transform: translateX(1000px);
|
||||
transition-duration: 1s;
|
||||
}
|
||||
|
||||
.navbar-collapse.show {
|
||||
transform: translateX(0px);
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
.menu-overlay.active {
|
||||
transform: translateX(0px);
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
.menu-overlay {
|
||||
background-color: black;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0.88;
|
||||
filter: alpha(opacity=80);
|
||||
/* IE7 & 8 */
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 5;
|
||||
transform: translateX(1000px);
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Push content below fixed header ------------------------------------------ */
|
||||
#main_content_wrapper {
|
||||
margin-top: 68px;
|
||||
padding: 0 48px;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 1010px) {
|
||||
.navbar-brand,
|
||||
.github-edit-wrap,
|
||||
#navbar-search {
|
||||
margin-right: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
#navbarHolder .language-selector .btn {
|
||||
font-size: 0.875rem;
|
||||
padding: .375rem .75rem;
|
||||
}
|
||||
75
styles/_use-cases.scss
Normal file
75
styles/_use-cases.scss
Normal file
@@ -0,0 +1,75 @@
|
||||
/* Use Cases ---------------------------------------------------------------- */
|
||||
.related-tasks-links a {
|
||||
color: $gray-600;
|
||||
text-decoration: none;
|
||||
}
|
||||
.related-tasks-links a:hover {
|
||||
color: $black;
|
||||
}
|
||||
.use-case-external-link {
|
||||
border: 1px solid $gray-300;
|
||||
}
|
||||
|
||||
.content .use-case-external-link a {
|
||||
text-decoration: none;
|
||||
color: $black;
|
||||
}
|
||||
|
||||
.use-case-step-num {
|
||||
margin-top: 64px;
|
||||
margin-bottom: 24px;
|
||||
color: #eae7e6;
|
||||
font-size: 5.16em;
|
||||
font-weight: 400;
|
||||
font-family: 'Space Mono', sans-serif;
|
||||
}
|
||||
|
||||
.use-case-step-length {
|
||||
float: right;
|
||||
color: #888;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.use-case-steps h2 {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 1.728em;
|
||||
line-height: 32px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.use-case-steps h2 a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.use-case-steps h2:first-of-type:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.use-case h1 {
|
||||
font-size: 2.4em;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.use-case-steps h2:before {
|
||||
margin-top: -30px;
|
||||
height: 0;
|
||||
}
|
||||
.use-case-steps h2:first-of-type {
|
||||
margin-top: -30px;
|
||||
}
|
||||
|
||||
.related-tasks-links ul {
|
||||
list-style-type: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
.related-tasks-links ul li {
|
||||
margin: 0px;
|
||||
padding-top: 2px;
|
||||
}
|
||||
.related-tasks-links a:hover::after {
|
||||
padding-left: .5em;
|
||||
}
|
||||
.related-tasks-links a::after {
|
||||
content: " ➝";
|
||||
padding-left: 0;
|
||||
transition: all .2s ease-in-out;
|
||||
}
|
||||
1874
styles/xrpl.scss
1874
styles/xrpl.scss
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user