mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
SCSS: use breakpoint mixins, avoid tabs
This commit is contained in:
@@ -52,15 +52,13 @@ p + .readmore {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
|
||||||
@media screen and (max-width: 767px) {
|
&::after {
|
||||||
.jump-to-top {
|
content: " ↑"
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
bottom: 40px;
|
bottom: 40px;
|
||||||
right: 40px;
|
right: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.btn.jump-to-top::after {
|
|
||||||
content: " ↑"
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -116,27 +116,28 @@ td:nth-child(1) {
|
|||||||
}
|
}
|
||||||
.square {
|
.square {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-basis: calc(25% - 30px);
|
flex-basis: calc(50% - 30px); // Mobile
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
&-50 {
|
|
||||||
flex-basis: calc(50% - 30px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.square {
|
|
||||||
flex-basis: calc(50% - 30px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.square:before {
|
&::before {
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: 100%;
|
padding-top: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-50 {
|
||||||
|
flex-basis: calc(50% - 30px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
flex-basis: calc(25% - 30px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-wrapper {
|
.card-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@@ -144,7 +145,7 @@ td:nth-child(1) {
|
|||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
background: rgba(34, 37, 43, 0.5);
|
background: rgba(34, 37, 43, 0.5);
|
||||||
backdrop-filter: blur(3px);
|
backdrop-filter: blur(3px);
|
||||||
@media (max-width: 768px) {
|
@include media-breakpoint-down(sm) {
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
@@ -158,7 +159,7 @@ td:nth-child(1) {
|
|||||||
margin-left: -32px;
|
margin-left: -32px;
|
||||||
transform-origin: top left;
|
transform-origin: top left;
|
||||||
}
|
}
|
||||||
@media (max-width: 992px) {
|
@include media-breakpoint-down(md) {
|
||||||
.card-deck {
|
.card-deck {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 576px) {
|
@include media-breakpoint-down(xs) {
|
||||||
.overflow-xs {
|
.overflow-xs {
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
list-style-type: square;
|
list-style-type: square;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
@include media-breakpoint-down(md) {
|
||||||
.landing .card {
|
.landing .card {
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ section {
|
|||||||
padding: 48px 0;
|
padding: 48px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
@include media-breakpoint-down(md) {
|
||||||
.landing .card-grid .card,
|
.landing .card-grid .card,
|
||||||
.landing .card-grid .card-body,
|
.landing .card-grid .card-body,
|
||||||
.landing .card-grid .card-header {
|
.landing .card-grid .card-header {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
background-size: 90%;
|
background-size: 90%;
|
||||||
background-position: 90px -180px;
|
background-position: 90px -180px;
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 992px) {
|
@include media-breakpoint-down(md) {
|
||||||
#bg-home-1 {
|
#bg-home-1 {
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
background-position: bottom;
|
background-position: bottom;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 70px;
|
background-size: 100% 70px;
|
||||||
@media (max-width: 991px) {
|
@include media-breakpoint-down(md) {
|
||||||
padding-left: 2rem !important;
|
padding-left: 2rem !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
#hero-impact {
|
#hero-impact {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
@media only screen and (min-width: 768px) {
|
@include media-breakpoint-up(md) {
|
||||||
#hero-impact {
|
#hero-impact {
|
||||||
margin-top: -120px;
|
margin-top: -120px;
|
||||||
}
|
}
|
||||||
@@ -177,7 +177,7 @@
|
|||||||
margin: 0 12px;
|
margin: 0 12px;
|
||||||
max-width: 188px;
|
max-width: 188px;
|
||||||
width: 33%;
|
width: 33%;
|
||||||
@media only screen and (max-width: 992px) {
|
@include media-breakpoint-down(md) {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
animation-fill-mode: forwards;
|
animation-fill-mode: forwards;
|
||||||
animation: fadeIn 1s ease-in-out;
|
animation: fadeIn 1s ease-in-out;
|
||||||
@media only screen and (max-width: 992px) {
|
@include media-breakpoint-down(md) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
border-bottom: 1px solid $black;
|
border-bottom: 1px solid $black;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 576px) {
|
@include media-breakpoint-down(xs) {
|
||||||
.d-output {
|
.d-output {
|
||||||
display: none;
|
display: none;
|
||||||
width: auto;
|
width: auto;
|
||||||
@@ -218,7 +218,7 @@
|
|||||||
border-bottom: 1px solid $black;
|
border-bottom: 1px solid $black;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 992px) {
|
@include media-breakpoint-down(md) {
|
||||||
#calculator-inputs-offset.offset {
|
#calculator-inputs-offset.offset {
|
||||||
height: 248px;
|
height: 248px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
td {
|
td {
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.25rem 0.5rem;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
@media only screen and (max-width: 768px) {
|
@include media-breakpoint-down(sm) {
|
||||||
font-size: $base-size;
|
font-size: $base-size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
font-size: .075rem;
|
font-size: .075rem;
|
||||||
color: #656E81;
|
color: #656E81;
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 992px) {
|
@include media-breakpoint-down(md) {
|
||||||
.ratio {
|
.ratio {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
line-height: 125%;
|
line-height: 125%;
|
||||||
margin-top: .5rem;
|
margin-top: .5rem;
|
||||||
}
|
}
|
||||||
@media(max-width: 991px) {
|
@include media-breakpoint-down(md) {
|
||||||
.wrap-button {
|
.wrap-button {
|
||||||
padding: 1.5rem 0;
|
padding: 1.5rem 0;
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Desktop version
|
// Desktop version
|
||||||
@media(min-width: 992px) {
|
@include media-breakpoint-up(lg) {
|
||||||
.dropdown-toggle::after {
|
.dropdown-toggle::after {
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
top: 80%;
|
top: 80%;
|
||||||
@@ -148,7 +148,7 @@
|
|||||||
|
|
||||||
// Search bar & controls -----------------------------------------------------
|
// Search bar & controls -----------------------------------------------------
|
||||||
#navbar-search {
|
#navbar-search {
|
||||||
@media(min-width: 992px) {
|
@include media-breakpoint-up(lg) {
|
||||||
position: static; // allows search bar to be positioned screen-center
|
position: static; // allows search bar to be positioned screen-center
|
||||||
.dropdown-toggle {
|
.dropdown-toggle {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -227,7 +227,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobile --------------------------------------------------------------------
|
// Mobile --------------------------------------------------------------------
|
||||||
@media (max-width: 991px) {
|
@include media-breakpoint-down(md) {
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user