Files
xrpl-dev-portal/styles/_buttons.scss

105 lines
2.0 KiB
SCSS

// Button styling --------------------------------------------------------------
.btn, .content a.button, .content .btn {
font-weight: bold;
cursor: pointer;
text-decoration: none;
transition: 0.2s;
}
.content a.button {
padding: .5rem 1rem;
margin: 0 0.5rem;
display: inline-block;
}
.btn.disabled,
button.disabled,
.btn[disabled="disabled"],
button[disabled="disabled"] {
cursor: not-allowed;
}
// .btn-outline-secondary,
.content a.button,
.navbar-dark .navbar-nav .nav-link.btn-outline-secondary {
color: $white;
border-color: $white;
border-width: 2px;
border-style: solid;
&:not(:disabled):not(.disabled):hover, &:not(:disabled):not(.disabled):active {
color: $primary;
border-color: $primary;
background-color: transparent;
}
}
.navbar-dark .navbar-nav .nav-link:hover {
color: $white;
}
p + .readmore {
margin-top: 12px;
}
.card-header a i {
margin: 0 0.2em 0 0.8em;
}
.btn-primary code,
.btn-secondary code {
color: inherit;
}
.btn-primary {
background: $blue-purple-500;
font-weight: bold;
color: $white;
border: none;
border-color: transparent;
border-radius: 4px;
padding: 0.5rem 1rem;
line-height: 16px;
&::after {
display: inline-block;
content: url(../../img/icons/arrow-right.svg);
vertical-align: middle;
padding-left: 8px;
-webkit-transition: transform 0.3s ease-out;
-moz-transition: transform 0.3s ease-out;
-ms-transition: transform 0.3s ease-out;
-o-transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
&:hover {
background: $blue-purple-500 !important;
border: none;
&::after {
-webkit-transform: translateX(4px);
-moz-transform: translateX(4px);
-ms-transform: translateX(4px);
-o-transform: translateX(4px);
transform: translateX(4px);
}
}
}
/* (Jump to) "Top" button */
.jump-to-top {
display: none;
position: fixed;
bottom: 36px;
right: 36px;
font-weight: 700;
z-index: 1000;
color: white;
background-color: transparent;
&::after {
content: ""
}
}