Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save davidlagace/4157f6a6f92103515f7914de0afb817a to your computer and use it in GitHub Desktop.

Select an option

Save davidlagace/4157f6a6f92103515f7914de0afb817a to your computer and use it in GitHub Desktop.
/* *****************************************************************************
*
* Utilities
*
* ***************************************************************************** */
// Paddings
// --------------------------------------------------------
.pl-card {
padding-left: $card-body-padding-x;
}
.pl-responsive {
@include media-breakpoint-down(md){
padding-left: $responsive-padding;
}
}
.pr-responsive {
@include media-breakpoint-down(md){
padding-right: $responsive-padding;
}
}
.pr-card {
padding-right: $card-body-padding-x;
}
.p-input {
padding: $input-padding-y $input-padding-x;
}
.pt-section {
@include media-scale(padding-top, 2rem, 3rem, 4rem);
}
.pb-section {
@include media-scale(padding-bottom, 2rem, 3rem, 4rem);
}
.py-section {
@extend .pt-section;
@extend .pb-section;
}
.pt-hero {
@include media-scale(padding-top, 2rem, 2.5rem, 3rem);
}
.pb-hero {
@include media-scale(padding-bottom, 2rem, 2.5rem, 3rem);
}
.py-hero {
@extend .pt-hero;
@extend .pb-hero;
}
// Others
// --------------------------------------------------------
.font-weight-medium {
font-weight: 600 !important;
}
.font-italic {
font-style: italic;
}
.text-underline {
text-decoration: underline;
}
.text-strike {
text-decoration: line-through;
}
.viewport-freeze{
width: 100vw;
height: 100vh;
overflow: hidden;
}
.border-rounded {
border-radius: $border-radius;
}
.overflow-hidden{
overflow: hidden;
}
.list-reset {
list-style-type: none;
}
.pointer-none {
pointer-events: none!important;
}
.w-100--mobile-only {
@include media-breakpoint-down(sm){
width: 100%;
}
}
.text-transform-initial {
text-transform: initial !important;
}
.mh-70-autoscroll {
max-height: 70vh;
overflow: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment