113 views
1.notification { 2 position: relative; 3 width: 250px; 4 display: -webkit-box; 5 display: -ms-flexbox; 6 display: flex; 7 -webkit-box-pack: center; 8 -ms-flex-pack: center; 9 justify-content: center; 10 -webkit-box-align: center; 11 -ms-flex-align: center; 12 align-items: center; 13 font-family: Verdana; 14 font-size: 16px; 15 border-radius: 1rem; 16 text-transform: uppercase; 17 font-weight: bold; 18 letter-spacing: 2px; 19 line-height: 1.5; 20 padding: 0.5rem; 21 overflow: hidden; 22 background-color: #840f00; 23 color: rgba(0, 0, 0, 0.9); 24 -webkit-box-shadow: inset 0 1px 0 hsl(6, 100%, 25%), 0 2px 0 hsl(6, 100%, 22%), 25 0 3px 0 hsl(6, 100%, 18%), 0 4px 0 hsl(6, 100%, 16%), 26 0 5px 0 hsl(6, 100%, 12%), 0 6px 0 hsl(6, 100%, 10%), 27 0 7px 0 hsl(6, 100%, 8%), 0 9px 0 hsl(6, 100%, 6%); 28 box-shadow: inset 0 1px 0 hsl(6, 100%, 25%), 0 2px 0 hsl(6, 100%, 22%), 29 0 3px 0 hsl(6, 100%, 18%), 0 4px 0 hsl(6, 100%, 16%), 30 0 5px 0 hsl(6, 100%, 12%), 0 6px 0 hsl(6, 100%, 10%), 31 0 7px 0 hsl(6, 100%, 8%), 0 9px 0 hsl(6, 100%, 6%); 32} 33 34.notification:hover { 35 top: 2px; 36 background: radial-gradient(hsl(6, 100%, 18%), hsl(6, 100%, 16%)); 37 -webkit-box-shadow: inset 0 1px 0 hsl(6, 100%, 25%), 0 2px 0 hsl(6, 100%, 22%), 38 0 3px 0 hsl(6, 100%, 18%), 0 4px 0 hsl(6, 100%, 16%), 39 0 5px 0 hsl(6, 100%, 12%), 0 6px 0 hsl(6, 100%, 10%); 40 box-shadow: inset 0 1px 0 hsl(6, 100%, 25%), 0 2px 0 hsl(6, 100%, 22%), 41 0 3px 0 hsl(6, 100%, 18%), 0 4px 0 hsl(6, 100%, 16%), 42 0 5px 0 hsl(6, 100%, 12%), 0 6px 0 hsl(6, 100%, 10%); 43} 44 45.star { 46 padding: 0.5rem; 47 -webkit-transform: scale(1.5); 48 -ms-transform: scale(1.5); 49 transform: scale(1.5); 50 -webkit-animation: fade 2s ease-in 1s infinite; 51 animation: fade 2s ease-in 1s infinite; 52} 53 54@-webkit-keyframes fade { 55 0% { 56 color: rgba(0, 0, 0, 0.9); 57 -webkit-transform: scale(1.5); 58 transform: scale(1.5); 59 } 60 61 50% { 62 color: rgba(0, 0, 0, 0.1); 63 -webkit-transform: scale(1); 64 transform: scale(1); 65 } 66 67 100% { 68 color: rgba(0, 0, 0, 0.9); 69 -webkit-transform: scale(1.5); 70 transform: scale(1.5); 71 } 72} 73 74@keyframes fade { 75 0% { 76 color: rgba(0, 0, 0, 0.9); 77 -webkit-transform: scale(1.5); 78 transform: scale(1.5); 79 } 80 81 50% { 82 color: rgba(0, 0, 0, 0.1); 83 -webkit-transform: scale(1); 84 transform: scale(1); 85 } 86 87 100% { 88 color: rgba(0, 0, 0, 0.9); 89 -webkit-transform: scale(1.5); 90 transform: scale(1.5); 91 } 92} 93 94
MazontheMoon
Mary Ronan
MIT License