html_css
70 строк · 932.0 Байт
1body {2margin: 0;3font-family: Arial, sans-serif;4font-size: 16px;5line-height: 1.6;6}
7
8* {9box-sizing: border-box;10}
11
12.text {13width: 400px;14margin: 0 auto;15}
16.mask {17width: 100%;18height: 100%;19
20position: fixed;21top: 0;22left: 0;23z-index: 999;24
25background-color: rgba(0, 0, 0, 0.8);26}
27
28.modal {29width: 320px;30padding: 15px;31margin-left: -160px;32
33background-color: #fff;34
35position: fixed;36top: 75px;37left: 50%;38z-index: 1000;39}
40
41
42.modal-close {43width: 20px;44height: 20px;45
46background: none;47border: 0;48cursor: pointer;49
50position: absolute;51top: -20px;52right: -20px;53}
54.btn {55display: inline-block;56vertical-align: top;57padding: 7px 15px;58
59font-family: inherit;60color: #fff;61cursor: pointer;62border: 0;63}
64
65.btn.success {66background-color: #35bb27;67}
68.btn.cancel {69background-color: #f9861f;70}
71