Template:MonthlyConvert/Default/styles.css: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
No edit summary
align styles with codex & banner dialogs
Line 33: Line 33:
left: 0;
left: 0;
z-index: 100;
z-index: 100;
background: rgba( 0, 0, 0, 0.8 );
background: rgba( 255, 255, 255, 0.65 );
width: 100%;
width: 100%;
height: 100%;
height: 100%;
Line 51: Line 51:
font-size: 16px;
font-size: 16px;
line-height: 1.4;
line-height: 1.4;
border: 1px solid #a2a9b1;
font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
font-style: normal;
border-radius: 2px;
box-shadow: 0 0 20px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.2 );
width: calc( 90% );
width: calc( 90% );
max-width: 600px;
max-height: 90vh;
max-height: 90vh;
overflow: auto;
overflow: auto;

Revision as of 19:02, 26 April 2024

.mc-modal *,
.mc-modal *:before,
.mc-modal *:after {
	box-sizing: border-box;
}

/* Back button */
.mc-back {
	cursor: pointer;
	position: absolute;
	top: 20px;
	left: 15px;
	opacity: 0.6;
}

.mc-back:hover {
	opacity: 1;
}

.mc-icon-back {
	height: 18px;
	width: 26px;
}

body.rtl .mc-icon-back {
	transform: rotate(180deg);
}

/* Modal Screen */
.mc-modal-screen {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	background: rgba( 255, 255, 255, 0.65 );
	width: 100%;
	height: 100%;
	display: none;
}

/* Modal Box */
.mc-modal {
	position: absolute;
	top: 5vh;
	left: 5%;
	z-index: 110;
	background: #fff;
	padding: 40px 30px;
	text-align: center;
	color: #000;
	font-size: 16px;
	line-height: 1.4;
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.2 );
	width: calc( 90% );
	max-width: 600px;
	max-height: 90vh;
	overflow: auto;
}

@media ( min-width: 800px ) {
	.mc-modal {
		left: 50%;
		top: 10vh;
		margin-left: -330px;
		padding: 60px;
		font-size: 17px;
		width: 660px;
	}
}

.mc-modal h2 {
	line-height: 1.3;
	border: 0;
	font-size: 120%;
	font-weight: bold;
}

.mc-modal p {
	margin: 1em 0 0;
}

/* Buttons */
.mc-buttons {
	margin: 1em auto;
	text-align: center;
}

@media ( min-width: 800px ) {
	.mc-buttons {
		margin: 2em auto 1em;
	}
}

.mc-button {
	width: 100%;
	min-height: 64px;
	padding: 12px;
	margin-bottom: 10px;
	font-size: 17px;
	font-weight: bold;
	background-color: #36c;
	border: 1px solid #36c;
	border-radius: 6px;
	outline: 0;
	color: #fff;
	cursor: pointer;
	transition: all 0.25s ease-in-out;
}

.mc-button:focus {
	outline: 0;
	border-color: #36c !important;
	box-shadow: inset 0 0 0 1px #36c, inset 0 0 0 2px #fff;
}

.mc-button:hover {
	background-color: #447ff5;
	border-color: #447ff5;
}

.mc-button:active {
	background-color: #2a4b8d;
	border-color: #2a4b8d;
	box-shadow: none;
}

.mc-link {
	color: #36c;
	font-weight: bold;
	text-decoration: underline;
	cursor: pointer;
}

.mc-edit-amount label {
	display: block;
	margin: 1em 0;
}

.mc-other-amount {
	font-size: 200%;
}

#mc-other-amount-input {
	width: 30%;
	font-size: 100%;
	border: 0;
	outline: 0;
	border-bottom: 1px solid #000;
	text-align: center;
}

/* Error messages */
.mc-error {
	display: none;
	font-size: 14px;
	color: #d33;
}