Im trying to change swipe.js arrow button images to another svg image.
I have found actual path to svg in swiper.scss file
.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
left: 10px;
right: auto;
}
But when I'm trying to re-write the path it does not change.Any ideas ?
.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
background-image: url("#/assets/svg/arrow.svg");
}
This solution works in my case (swiper#8) but it's not svg but png (but it should work with svg) :
.swiper {
.swiper-button-prev, .swiper-button-next {
background-repeat: no-repeat;
&:after {
content:'';
}
}
.swiper-button-prev {
background-image: url(../images/arrow-left.png);
}
.swiper-button-next {
background-image: url(../images/arrow-right.png);
}
}
Maybe, yo should to use !important in the css rule declaration.
Related
when changing the direction of Vuexy from ltr to rtl. bootstrap-vue data picker style will fail as illustrated in attachment image
.custom-timePicker {
width: max-content;
right: 0px !important;
}
[dir=rtl] .custom-timePicker {
right: 0px !important;
}
add to style.scss
I'm not very good with javascript so I don't know how to make a image to change in darkMode.
theese images are SVG, and are in the index.js, not in the markdowns.
I've been looking for a way, but the Docusaurus documentation only says how to change the images in the NavBar and Footer..
:root {
--dev-dash-bg: url("../../static/img/dev-dash-light.png") no-repeat;
--dev-dash-bg: url("../../static/img/dev-dash-dark.png") no-repeat;
}
[data-theme="dark"] {
--dev-dash-bg: url("../../static/img/dev-dash-dark.png") no-repeat;
}
.dev-dash {
height: <desried height>;
background: var(--dev-dash-bg);
}
I might make a obvious mistake but somehow I am stuck with the following:
only for large screens i don't want the vertical scrollbar so i have this simple css:
#media (min-width : 2000px) {
// hacky
body {
overflow-y:hidden !important;
}
.mt-5{
margin-top: 80px !important;
}
.mb-5{
margin-bottom: 80px !important;
}
...more style definitions
but somehow this doesn't work
i am using chrome's toggle device bar tool to switch between different resolutions. All other css definitions for > 2000px are there, only body doesn't seem to be set??
#media (min-width : 2000px) {
body {
overflow-y:hidden !important;
}
.mt-5{
margin-top: 80px !important;
}
.mb-5{
margin-bottom: 80px !important;
}
}
Did you set 100% height for html and body, like this:
html, body {
height: 100%;
}
And also for possible other child elements inside body which span the whole height of body?
Otherwise one of them will get a scroll bar (not necessarily body, but it will look very similar)
I just want to change the size of Dojo Filtering Select design element via CSS.
I tried manual or CSS File. It did not work.
<xe:djFilteringSelect id="djselect1" value="#{document1.Language}" style="min-height: 8px;height:8.px;"></xe:djFilteringSelect>
Any suggestion is important
Cumhur Ata
You just need to override the dijitTextBox CSS class.
You might need to use CSS specificity to make sure that the CSS is picked up (instead of using !important).
Here's a simple example:
.dijitTextBox {
width: 40px;
height: 8px;
}
As you are using Bootstrap theme you need to adjust the arrow button too.
This works for me:
.dbootstrap .dijitTextBox {
height: 24px;
}
.dbootstrap .dijitComboBox .dijitButtonNode.dijitArrowButton {
height: 22px;
}
.xsp.dbootstrap .dijitInputContainer {
padding-top: 0px;
}
.dbootstrap .dijitComboBox input.dijitArrowButtonInner {
margin-top: -3px;
margin-left: -5px;
}
.dbootstrap .dijitMenuItem {
padding: 0px 10px;
}
Is there a way to remove plus icon on Choose button in primefaces component.
I tried #Darka's approach but it failed with Primefaces 3.5.10.
This worked for me.
.ui-fileupload-choose .ui-icon {
visibility: hidden !important;
}
.ui-fileupload-upload .ui-icon {
visibility: hidden !important;
}
.ui-fileupload-cancel .ui-icon {
visibility: hidden !important;
}
I hope it helps also.
if still no luck. You can put this css code (tested) to remove icon:
.fileupload-buttonbar .fileinput-button .ui-icon-plusthick{
display: none !important;
}
And this code to move Choose more left:
.fileupload-buttonbar .fileinput-button .ui-button-text{
padding-left: 1em!important;
}
I hope this helped.
In Primefaces 5.3 use:
span.ui-fileupload-choose > span.ui-icon-plusthick{
display: none !important;
}
span.ui-fileupload-choose > span.ui-button-text{
padding-left: 1em !important;
}
In Primefaces 6.1 use:
.ui-fileupload-simple .ui-icon-plusthick {
display: none !important;
}
.ui-fileupload-simple .ui-button-text{
padding-left: 1em !important;
}
For file upload in advanced mode (tested on PrimeFaces 6+):
.ui-fileupload .ui-icon-plusthick {
display: none !important;
}
.ui-fileupload .ui-icon-arrowreturnthick-1-n {
display: none !important;
}
.ui-fileupload .ui-icon-cancel {
display: none !important;
}
the file primeicons.css has all the icons classes.
Overwrite the property content value with the respective chosen icon code.
For example, if you want to replace the icon for the papper-clip:
/* \e97b is the papper-clip code found in primeicons.css */
.pi-plus:before {
content: "\e97b";
}