|
33 | 33 | border-radius: 4px; |
34 | 34 | margin: 0px !important; |
35 | 35 | } |
| 36 | + |
| 37 | +.bbcodeplus.modal { |
| 38 | + display: none; |
| 39 | + position: fixed; |
| 40 | + z-index: 1030; |
| 41 | + padding-top: 100px; |
| 42 | + left: 0; |
| 43 | + top: 0; |
| 44 | + width: 100%; |
| 45 | + height: 100%; |
| 46 | + overflow: auto; |
| 47 | + background-color: rgb(0,0,0); |
| 48 | + background-color: rgba(0,0,0,0.4); |
| 49 | + } |
| 50 | + |
| 51 | +.bbcodeplus.modal-close { |
| 52 | + color: black; |
| 53 | +} |
| 54 | + |
| 55 | +.bbcodeplus.modal-close:hover, |
| 56 | +.bbcodeplus.modal-close:focus { |
| 57 | + color: red; |
| 58 | + text-decoration: none; |
| 59 | + cursor: pointer; |
| 60 | +} |
| 61 | + |
| 62 | +.bbcodeplus.modal-content { |
| 63 | + position: relative; |
| 64 | + background-color: #fefefe; |
| 65 | + margin: auto; |
| 66 | + padding: 0; |
| 67 | + padding-bottom: 10px; |
| 68 | + border: 1px solid #888; |
| 69 | + width: 50%; |
| 70 | + max-height: 50%; |
| 71 | + overflow: hidden; |
| 72 | + z-index: 1031; |
| 73 | + box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); |
| 74 | + animation-name: animatetop; |
| 75 | + animation-duration: 0.4s |
| 76 | +} |
| 77 | + |
| 78 | +.bbcodeplus.modal-body { |
| 79 | + padding: 10px; |
| 80 | +} |
| 81 | + |
| 82 | +.bbcodeplus.image-picker { |
| 83 | + margin: 1em 0; |
| 84 | + padding: 0; |
| 85 | + list-style: none; |
| 86 | + display: grid; |
| 87 | + grid: auto-flow / repeat(auto-fill, minmax(110px, 1fr)); |
| 88 | + align-items: baseline; |
| 89 | + grid-gap: 10px; |
| 90 | + gap: 10px; |
| 91 | +} |
| 92 | + |
| 93 | +.bbcodeplus.image-picker li { |
| 94 | + width: 100px; |
| 95 | + height: 100px; |
| 96 | + min-height: 100px; |
| 97 | + display: -moz-inline-stack; |
| 98 | + display: inline-block; |
| 99 | + vertical-align: middle; |
| 100 | + margin: 5px; |
| 101 | + zoom: 1; |
| 102 | + *display: inline; |
| 103 | +} |
| 104 | + |
| 105 | +.bbcodeplus.image-picker li img { |
| 106 | + width: 100%; |
| 107 | + padding: 5px; |
| 108 | + border: 1px solid rgba(221,221,221,1); |
| 109 | + border-radius: 5px; |
| 110 | + max-width: 100%; |
| 111 | +} |
| 112 | + |
| 113 | +.bbcodeplus.image-picker li img:hover { |
| 114 | + filter: brightness(80%); |
| 115 | + background-color: rgba(221,221,221,1); |
| 116 | +} |
| 117 | + |
| 118 | +/* Add Animation */ |
| 119 | +@-webkit-keyframes animatetop { |
| 120 | + from {top:-300px; opacity:0} |
| 121 | + to {top:0; opacity:1} |
| 122 | + } |
| 123 | + |
| 124 | + @keyframes animatetop { |
| 125 | + from {top:-300px; opacity:0} |
| 126 | + to {top:0; opacity:1} |
| 127 | + } |
0 commit comments