All Questions
336
questions
0
votes
1
answer
571
views
How use nice-select2?
Link to the plugin https://github.com/bluzky/nice-select2/tree/master
I can't connect nice-select 2, I added css and js files from the dist folder to my project, connected them and wrote a line from ...
0
votes
0
answers
30
views
How using bootstrap styles with jade framework? [duplicate]
I use jade framework. In my jade file view.jade I have strings:
| #{mytext.text.slice(0, 30) + '...'} // The text in my table that needs to be displayed all the time
.tooltip-inner
| #{mytext....
-1
votes
1
answer
39
views
Why is an empty space not being created by the period inside my grid-template-areas between two div's? [duplicate]
I have specified the areas for two div's labeled as class search1 and search2. They are the children of a div labeled with id searchContainer. Here is the CSS and Pug Template code used:
PUG Template ...
1
vote
1
answer
166
views
Pug template not loading CSS on Mac in safari
Safari on Mac (Ventura 13.2.1) neither loads CSS nor favicon in combination with Pug.
Please help find a solution.
Error:
Unsafe attempt to load URL https://localhost:3000/img/icons.svg from origin ...
0
votes
0
answers
39
views
Hero element with translateZ applied is skewed to the right on Chromium browsers, but not on Firefox. How do I fix it?
body {
margin: 0;
padding: 0;
}
.wrapper {
max-height: 100vh;
overflow-y: auto;
perspective: 10px;
transform-style: preserve-3d;
}
.hero {
min-height: 100vh;
transform: translateZ(-...
-1
votes
1
answer
55
views
How do you scale an immutable SVG?
If I have a regular SVG element like this, but it is immutable as in you cannot clone, or change any parameters such as height and width. Is there any way to scale it?
<svg xmlns="http://www....
0
votes
1
answer
29
views
svgprite loading all icons expect one
I'm using pug engine and trying to load svgs from a spritemap.vsg and i have 4 icons they all appear normally except one
so i have this mixin and its working totally fine
but one of the icons doesn't ...
0
votes
1
answer
311
views
.pug file is not adding spacing between element. Causing a margin issue with Bootstrap
The main question is, is there a way to add a space between the html div's generated by a .pug file?
I have been converting a collogues HTML into Pugs format, and everything transitioned fine except ...
1
vote
0
answers
522
views
How to set param value in a custom error object with express-validator?
I am using express-validator to validate input fields in a sign up form. If an input field does not validate, the sign-up form is rendered again. I am using Pug as the view engine. The express-...
-1
votes
1
answer
51
views
Background image is not loading up
I have been creating a website for my project using nodejs. I'm using expressjs and have choosen pug to be my template engine of my choice. I created the home page using pure pug, and tried adding the ...
0
votes
1
answer
250
views
I have problem in including pug-bootstrap file inside my pug file. How to include pug-bootstrap inside layout.pug file
Inside my layout.pug file. I am trying to include pug-bootstrap as follows.
include /node_modules/pug-bootstrap/_bootstrap.pug
doctype html
html
head
title= title
link(rel='stylesheet', href=...
0
votes
0
answers
44
views
Show images from my cloudinary library in pug template
I get an error when I display the images in timeline which it comes from my cloudinary on the format "https://res.cloudinary.........."
That does not display using this code
timeline.pug
...
0
votes
1
answer
511
views
Using express to serve public static files
I'm trying to get my express to serve files from my public folder but I can't seem to get anything to work here. I have tried so many variations in my file paths yet I can't seem to get pug to ...
0
votes
1
answer
830
views
passing dynamic url into html/pug
I have social buttons for sharing the current page on all my web application pages, the URL attribute is as follows data-url="https://www.myPage.com/whateverComes". However, I am looking for ...
4
votes
3
answers
3k
views
Tailwind PostCSS inject styles inline instead of generating a CSS file
I am using PUG + Tailwind + PostCSS for a static, single page HTML file which is generated using basic NPM scripts (shown below)
I would like the final HTML to have the tailwind styles inlined ...