Skip to content
Snippets Groups Projects
portal.css 966 B
Newer Older
  • Learn to ignore specific revisions
  • Andris Borbás's avatar
    Andris Borbás committed
    #portal {
    	position: absolute;
    	top: 0;
    	left: 0;
    	right: 0;
    	bottom: 0;
    }
    
    #portal > div {
    	background-color: rgba(0, 0, 0, 0.3);
    	backdrop-filter: blur(5px);
    	width: 100%;
    	height: 100%;
    	padding: 0.5rem;
    	padding-top: 2rem;
    	display: flex;
    	align-items: center;
    }
    
    .dialogBox {
    	position: relative;
    	max-width: 400px;
    	width: 100%;
    	margin-right: auto;
    	margin-left: auto;
    	padding: 1rem;
    	padding-top: 44px;
    	background-color: #ddd;
    	border-radius: 1rem;
    }
    
    .dialogBox::before {
    	position: absolute;
    	top: 0;
    	left: 0;
    	border-radius: 1rem 1rem 0 0;
    	content: "";
    	height: 38px;
    	width: 100%;
    	background-color: #aaa;
    }
    
    .dialogBox > button {
    	position: absolute;
    	top: 8px;
    	right: 1rem;
    	font-size: 1.25rem;
    	line-height: 1;
    }
    
    .dialogBox h3 {
    	text-align: center;
    	font-size: 1.25rem;
    	margin-bottom: 1rem;
    }
    
    .dialogBox > form {
    	display: grid;
    	grid-template-columns: auto 1fr;
    	gap: 0.5rem;
    	align-items: center;
    }
    
    .dialogBox input {
    	padding: 0.25rem;
    }