@drozdik.m/common-dialog-window
Version:
Nice and easy-to-use list of common info dialog windows
271 lines (268 loc) • 9.75 kB
CSS
.dialogWindow {
position: fixed;
z-index: 201;
display: none;
opacity: 0;
text-align: center;
padding: 1rem;
left: 0;
right: 0;
top: 0;
bottom: 0;
-webkit-transition: opacity 250ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-moz-transition: opacity 250ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-o-transition: opacity 250ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: opacity 250ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
-ms-transform: scale(1.1);
-o-transform: scale(1.1);
transform: scale(1.1);
}
.dialogWindow .dialogBackground {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.8);
font-size: 0;
z-index: 205;
}
.dialogWindow .dialogContent {
max-width: 55rem;
padding: 1rem;
padding-top: 2rem;
display: block;
margin-left: auto;
margin-right: auto;
position: relative;
z-index: 206;
text-align: center;
background-color: white;
overflow-y: auto;
}
.dialogWindow .dialogContent .dialogWindowHeading {
font-size: 1.25rem;
text-align: center;
display: block;
font-weight: bold;
}
.dialogWindow.opened {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
opacity: 1;
}
.dialogWindow .dialogCross {
position: absolute;
top: 0.5rem;
right: 0.5rem;
font-size: 0;
height: 1.5rem;
width: 1.5rem;
cursor: pointer;
}
.dialogWindow .dialogCross .line {
width: 4px;
height: 100%;
-webkit-transition: background-color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-moz-transition: background-color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-o-transition: background-color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: background-color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
background-color: #383838;
position: absolute;
top: 0;
left: 50%;
margin-left: -2px;
}
.dialogWindow .dialogCross .line.line1 {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.dialogWindow .dialogCross .line.line2 {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.dialogWindow .dialogCross:hover .line {
background-color: black;
}
.dialogWindow .dialogCross:hover .line.line1 {
-webkit-transform: rotate(135deg);
-moz-transform: rotate(135deg);
-ms-transform: rotate(135deg);
-o-transform: rotate(135deg);
transform: rotate(135deg);
}
.dialogWindow .dialogCross:hover .line.line2 {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.dialogWindow .commonDialogWindowContent .dialogWindowHeading {
font-size: 1.375rem;
color: #212121;
margin-bottom: 0.75rem;
}
.dialogWindow .commonDialogWindowContent .message {
color: black;
margin-bottom: 1rem;
}
.dialogWindow .commonDialogWindowContent .message a {
color: blue;
}
.dialogWindow .commonDialogWindowContent .message a:hover {
text-decoration: underline;
}
.dialogWindow .commonDialogWindowContent .commonButton {
display: inline-block;
text-align: center;
margin: 0.5rem 0.625rem;
font-size: 1rem;
padding: 0.4375rem 1.125rem;
cursor: pointer;
border: 0.125rem solid grey;
-webkit-box-shadow: 0.1875rem 0.1875rem 0.25rem 0 rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0.1875rem 0.1875rem 0.25rem 0 rgba(0, 0, 0, 0.5);
box-shadow: 0.1875rem 0.1875rem 0.25rem 0 rgba(0, 0, 0, 0.5);
-webkit-transition: background-color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-moz-transition: background-color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-o-transition: background-color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: background-color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), color 250ms cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
outline: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
position: relative;
text-decoration: none;
}
.dialogWindow .commonDialogWindowContent .commonButton, .dialogWindow .commonDialogWindowContent .commonButton:after {
-webkit-border-radius: 0.5rem;
-moz-border-radius: 0.5rem;
border-radius: 0.5rem;
}
.dialogWindow .commonDialogWindowContent .commonButton:disabled, .dialogWindow .commonDialogWindowContent .commonButton:disabled:hover {
cursor: not-allowed;
color: white;
background-color: grey;
border-color: grey;
}
.dialogWindow .commonDialogWindowContent .commonButton:active {
-webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5);
}
.dialogWindow .commonDialogWindowContent .commonButton:active:after {
-webkit-box-shadow: inset 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.6);
-moz-box-shadow: inset 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.6);
box-shadow: inset 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.6);
}
.dialogWindow .commonDialogWindowContent .commonButton:after {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
content: " ";
font-size: 0;
-webkit-transition: box-shadow 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-moz-transition: box-shadow 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
-o-transition: box-shadow 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
transition: box-shadow 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
.dialogWindow .commonDialogWindowContent .commonButton.alignLeft {
margin-left: 0;
}
.dialogWindow .commonDialogWindowContent .commonButton.alignRight {
margin-right: 0;
}
.dialogWindow .commonDialogWindowContent .commonButtonWrapper {
text-align: center;
margin: 0.5rem 0.4375rem;
}
.dialogWindow .commonDialogWindowContent .commonButtonWrapper.alignLeft {
margin-left: 0;
text-align: left;
}
.dialogWindow .commonDialogWindowContent .commonButtonWrapper.alignLeft .commonButton {
margin-left: 0;
}
.dialogWindow .commonDialogWindowContent .commonButtonWrapper.alignRight {
margin-right: 0;
text-align: right;
}
.dialogWindow .commonDialogWindowContent .commonButtonWrapper.alignRight .commonButton {
margin-right: 0;
}
.dialogWindow .commonDialogWindowContent .commonButton {
color: white;
background-color: #212121;
border: 0.125rem solid #212121;
}
.dialogWindow .commonDialogWindowContent .commonButton:hover, .dialogWindow .commonDialogWindowContent .commonButton:active {
color: white;
background-color: #060606;
}
.dialogWindow .commonDialogWindowContent .commonButton.commonButtonGreen {
color: white;
background-color: #0a7b12;
border: 0.125rem solid #0a7b12;
}
.dialogWindow .commonDialogWindowContent .commonButton.commonButtonGreen:hover, .dialogWindow .commonDialogWindowContent .commonButton.commonButtonGreen:active {
color: white;
background-color: #09470d;
}
.dialogWindow .commonDialogWindowContent .commonButton.commonButtonRed {
color: white;
background-color: #b00606;
border: 0.125rem solid #b00606;
}
.dialogWindow .commonDialogWindowContent .commonButton.commonButtonRed:hover, .dialogWindow .commonDialogWindowContent .commonButton.commonButtonRed:active {
color: white;
background-color: #6b0505;
}
.dialogWindow .commonDialogWindowContent .commonButton.commonButtonYellow {
color: white;
background-color: #f1c817;
border: 0.125rem solid #f1c817;
}
.dialogWindow .commonDialogWindowContent .commonButton.commonButtonYellow:hover, .dialogWindow .commonDialogWindowContent .commonButton.commonButtonYellow:active {
color: white;
background-color: #aaa100;
}
.dialogWindow .commonDialogWindowContent .commonButton.commonButtonGrey {
color: white;
background-color: #212121;
border: 0.125rem solid #212121;
}
.dialogWindow .commonDialogWindowContent .commonButton.commonButtonGrey:hover, .dialogWindow .commonDialogWindowContent .commonButton.commonButtonGrey:active {
color: white;
background-color: #060606;
}
.dialogWindow .commonDialogWindowContent#dialogSuccess.dialogContent .message, .dialogWindow .commonDialogWindowContent#dialogGreenConfirmation.dialogContent .message {
color: #0a7b12;
}
.dialogWindow .commonDialogWindowContent#dialogWarning.dialogContent .message, .dialogWindow .commonDialogWindowContent#dialogYellowConfirmation.dialogContent .message {
color: #f1c817;
}
.dialogWindow .commonDialogWindowContent#dialogError.dialogContent .message, .dialogWindow .commonDialogWindowContent#dialogRedConfirmation.dialogContent .message {
color: #b00606;
}
.dialogWindow .commonDialogWindowContent#dialogInfo.dialogContent .message, .dialogWindow .commonDialogWindowContent#dialogGreyConfirmation.dialogContent .message {
color: #212121;
}
/*# sourceMappingURL=module.css.map */