Sass

BS4 Reduce Padding Between 2-Up Grid Cards on Mobile

老子叫甜甜 提交于 2021-01-29 22:52:45
问题 I have a bootstrap-4 page grid cards. On mobile devices (col), I would like them to display 2 up, but I get twice the padding between the cards than I do on the outside. This is the result of the left and right card padding meeting in between the two cards. Because the number of cards can vary from 1 to 99 I am not sure how to reduce the inner padding to even things out. See image: Green is left and right padding. Gray is the card area. 回答1: try this css to your card element that has padding,

BS4 Reduce Padding Between 2-Up Grid Cards on Mobile

时光毁灭记忆、已成空白 提交于 2021-01-29 22:51:54
问题 I have a bootstrap-4 page grid cards. On mobile devices (col), I would like them to display 2 up, but I get twice the padding between the cards than I do on the outside. This is the result of the left and right card padding meeting in between the two cards. Because the number of cards can vary from 1 to 99 I am not sure how to reduce the inner padding to even things out. See image: Green is left and right padding. Gray is the card area. 回答1: try this css to your card element that has padding,

BS4 Reduce Padding Between 2-Up Grid Cards on Mobile

左心房为你撑大大i 提交于 2021-01-29 22:51:02
问题 I have a bootstrap-4 page grid cards. On mobile devices (col), I would like them to display 2 up, but I get twice the padding between the cards than I do on the outside. This is the result of the left and right card padding meeting in between the two cards. Because the number of cards can vary from 1 to 99 I am not sure how to reduce the inner padding to even things out. See image: Green is left and right padding. Gray is the card area. 回答1: try this css to your card element that has padding,

BS4 Reduce Padding Between 2-Up Grid Cards on Mobile

我的未来我决定 提交于 2021-01-29 22:07:19
问题 I have a bootstrap-4 page grid cards. On mobile devices (col), I would like them to display 2 up, but I get twice the padding between the cards than I do on the outside. This is the result of the left and right card padding meeting in between the two cards. Because the number of cards can vary from 1 to 99 I am not sure how to reduce the inner padding to even things out. See image: Green is left and right padding. Gray is the card area. 回答1: try this css to your card element that has padding,

Laravel 8 JetStream Bootstrap 4

老子叫甜甜 提交于 2021-01-29 19:57:39
问题 I am using the jetstream UI with Laravel 8 and I have checked an I am aware that the Laravel team has no plans to make a Bootstrap version of the UI but I'm only comfortable with bootstrap and can't use a CDN because I need to make changes to BS4. Is it possible to install BS4 and SASS on a Laravel project without affecting the Laravel JetStream UI. 回答1: By default Laravel Jetstream is powered by TailwindCSS. All defaults pages is made by this CSS framework but you can easily add Bootstrap to

ISO proper way to chain Webpack via vue.config.js to add global .scss imports to my .vue files (vue-cli-plugin-nativescript-vue)

扶醉桌前 提交于 2021-01-29 16:15:28
问题 I have Vue.js project I've setup previously that dynamically adds defined .scss files to my .vue template files, so I can access my variables, mixins, etc. in the templates without @importing them, or having them duplicate code from imports. My problem is I'm setting up a NativeScript/Vue.js project with vue-cli-plugin-nativescript-vue and was curious if anyone has successfully setup their webpack to allow the same functionality. It's my understanding that the plugin replaces webpack with the

Undefined mixin

限于喜欢 提交于 2021-01-29 14:54:11
问题 I'm using SASS to style a landing page but I am getting an error when I try to compile my sass into CSS. I receive an error that reads error sass/modules/_buttons.sass (Line 11: Undefined mixin 'button-size'.) Here is the code for this particular part .btn display: inline-block font-weight: $font-weight-normal line-height: $base-line-height text-align: center font-size: $font-base vertical-align: middle border: $border-width solid transparent transition: $btn-transition border-radius: $border

Sass extend class from module

和自甴很熟 提交于 2021-01-29 14:06:08
问题 With the new module system in sass (with @use instead of @import) how can i define a class in one file and the use it in another file with @extend ? File colors.scss .element { background-color: blue; } main file @use "./colors.scss" as colors; body { @extend .element; } This gives the following error: "body" failed to @extend ".element". The selector ".element" was not found. Use "@extend .element !optional" if the extend should be able to fail. Example: https://stackblitz.com/edit/angular

Incremental transition-delay for appended items

不打扰是莪最后的温柔 提交于 2021-01-29 11:13:21
问题 I have a page using infinite-scroll.js, which loads 8 .product div on initial load (and adds a .loaded class), and then a further 8 .product div upon clicking a button to run infinite-scroll (which adds an .appended class to each). I am trying to add incremental transition-delay to each .product (first 100ms, second 200ms, third 300ms and so on), but to only take effect as and when they are added to the DOM. The code I'm currently using adds a transition-delay to all .product div's using :nth

How to change sass import file when body class is changing

我的梦境 提交于 2021-01-29 08:12:00
问题 Is any way to change scss file with color variables when class in body is changing? I mean when I have in html: <body class="custom"> ... </body> I want to load in style.scss @import 'custom'; and when I have <body class="dark-mode"> ... </body> I want to load in style.scss @import 'dark-mode'; 回答1: You can not make an @import depending on a condition, but there is a ton of possible other approaches to this. Here is a small framework I wrote back then. @function keyFilter($iKey, $fKey, $rKey)