All Questions
145
questions
0
votes
1
answer
152
views
How to make the build process not compile all .scss files into a main.css
All my various components have some .scss files which get eventually merged into a single main.css This make it hard to debug as the Chrome Developer Console has no back-references to the source scss ...
0
votes
0
answers
92
views
SCSS variables to CSS in Ionic 3-4 transition — How?
I'm upgrading an Ionic 3 project to Ionic 4 (then later to 5 and 6, but 4 first).
One of the things that I need to do for this is to convert all the SCSS variable-setting to CSS variables. What's the ...
0
votes
2
answers
618
views
Add [ngClass] only on the element that is clicked on
I have several columns that I need to differentiate when one is clicked to only have the class activate on that one and if a different one is activated to de-activate the previous one and activate ...
0
votes
1
answer
271
views
Icon resize and align left
In a page I have to show a list of items with icons. These icons vary in size as you can see in the picture (first one is larger for example. To have the same icon size everywhere in css I put the ...
3
votes
1
answer
1k
views
How to create an oblong ion-fab-button with width set automatically according to content?
Currently I am using the ion-fab-button as this:
<ion-fab-button size="small" [ngClass]="{'active-tab': currentTab === 'bookmarks'}">
<ion-icon name="bookmark-...
0
votes
1
answer
29
views
How to display Google Maps on the remaining screen?
In my ionic 3 application, I want to display google map on all of the remaining screen.
But when I set height to 100%, the map doesn't show up.
The html and scss files are given as below, by setting ...
0
votes
1
answer
195
views
Failed to render sass to css at newBuild error
I am getting below error while building my ionic project. Please help me out in resolving this issue.
0
votes
1
answer
259
views
Ionic put two background images
I want to put two images in my ionic app like this.
and later this
i am testing this
ion-content {
background: url('../assets/imgs/Untitleddesign.jpg'),
url('../assets/imgs/...
0
votes
1
answer
118
views
Is there any possiblity to center currenlty selected slide in ion-slides?
I have a slider with name and avatar of kids. Once user click on specific kid it adds edit button above an avatar. The slider
What I'm trying to achieve is to center the active slide once user click ...
1
vote
1
answer
1k
views
How do I change the style of a single button inside a *ngFor in Ionic 3?
I am trying to change the style of the specific button I click in the *ngFor in the ion-col. Currently when I click on a button, the styles for all buttons changes at the same time.
Here are my codes:...
0
votes
0
answers
401
views
Can't print the entire page when I have a scrollable content with many items in IONIC3
I used Cordova Print Plugin to print a table that has scrollable content.
I want to print that page from a print button in an Android device.
But when I do that, I am getting the content of only one ...
1
vote
1
answer
7k
views
Ionic cards constant height
I'm showing some ion-cards in slides and the height of the cards varies depending on the content size. How to make it constant?
code:
<ion-col *ngIf="types && types.length" no-padding>
...
0
votes
2
answers
93
views
Unable to override scss in ionic3
I Have specified a global color for header in app.scss which is working fine but I want to change the color of a specific page header to black color but I can't find a way to override header color ...
5
votes
1
answer
5k
views
Show/Hide password button not working when input is active in Ionic 3
I am trying to implement the show/hide button for the password field in Ionic 3. I have got the code help from here
login.html
<ion-item>
<ion-input [type]="passwordType" placeholder="...
1
vote
1
answer
232
views
Ionic 3 Changing ion card header padding is not overriding the existing one
I am trying to override existing sass styling of ion-card, by changing the headers padding to something that fit my app.
I did the following:
ion-card-header{
.card-header-md{
padding-right: ...