UNPKG

@interpals/react-redux-modal

Version:

react-redux-modal is a React modal implemented with Redux

132 lines (117 loc) 2.82 kB
.react-redux-modal { font-family: "Arial"; box-sizing: content-box; button { &:focus { outline: 0; } } .rrm-holder { width: 100%; height: 100%; position: fixed; top: 0; left: 0; .scroll { width: 100%; height: 100%; position: relative; overflow-y: auto; z-index: 1; .rrm-content { z-index: 1; background-color: #fcfcfc; position: relative; border-radius: 4px; box-shadow: 0px 0px 20px #333; margin: 80px auto; overflow: hidden; &.m-small { width: 300px; .rrm-title { h2 { width: 140px; } } } &.m-medium { width: 500px; .rrm-title { h2 { width: 340px; } } } &.m-large { width: 800px; .rrm-title { h2 { width: 640px; } } } .rrm-title { width: 100%; height: 60px; border-bottom: 1px solid #dbdbdb; position: relative; color: #444; box-sizing: content-box; h2 { height: 60px; padding: 0px 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.4em; margin: 0; line-height: 60px; float: left; box-sizing: content-box; } .rr-title-actions { width: 120px; height: 100%; text-align: center; float: left; button { width: 40px; height: 40px; margin: 10px 8px; line-height: 40px; position: relative; border: 1px solid transparent; float: right; background-color: transparent; text-align: center; padding: 0; color: #666; font-size: 1.2em; border-radius: 50%; &:hover { color: #4186bf; cursor: pointer; background-color: rgba(65, 134, 191, .1); border-color: rgba(65, 134, 191, .2); box-shadow: 2px 2px 3px #f0f0f0; } } } } .rrm-body { width: 100%; padding: 20px; } } } .rrm-shadow { width: 100%; height: 100%; background-color: rgba(50,58,68, .8); position: absolute; top: 0; left: 0; z-index: 0; } } }