I have a project where I want to use this input type:

I installed the modality correctly, and I can reject it without any problems, but my problem is that it occupies the entire page, and I just want it to be the same as in the picture.
I do not know how to select the entire page in the css file that has already tried with *, but it has mixed up too much with what is inside the html file.
Thank you in advance!
Edit:
on the page that opens the modal version:
showLogin() { let modal = this.modalCtrl.create(LoginPage);
modality code: HTML:
<ion-navbar class="modal-wrapper" *navbar> <ion-title>Sample Modal</ion-title> </ion-navbar> <ion-content padding class="sample-modal-page"> <p>my sample modal page<p> <ion-buttons start> <button (click)="dismiss()"> Cancel </button> </ion-buttons> </ion-content>
CSS:
page-login { .modal-wrapper { padding: 30px; background: rgba(0,0,0,0.5); } }
TS:
import { Component } from '@angular/core'; import { NavController, NavParams, ViewController } from 'ionic-angular'; @Component({ selector: 'page-login', templateUrl: 'login.html' }) export class LoginPage { constructor(public navCtrl: NavController, public navParams: NavParams,public viewCtrl: ViewController) {} dismiss(data) { this.viewCtrl.dismiss(data); } }
My error is probably related to html and css
css ionic-framework ionic2
Raphael ABADIE-MOREAU
source share