Sha256: 4963affa61639f56c933f64b7dabc8765849c0c1abe6412f8030b2b6c3b53df7

Contents?: true

Size: 1.12 KB

Versions: 24

Compression:

Stored size: 1.12 KB

Contents

$stratum: 10000
//$width: 700px
//$height: 450px
$close-height: 24px
$close-width: 36px

=transform($transform)
  transform: $transform
  -ms-transform: $transform // IE9
  -webkit-transform: $transform // Safari, Some Android

.up-modal
  position: fixed
  top: 0
  left: 0
  bottom: 0
  right: 0
  z-index: $stratum
  background-color: rgba(90, 90, 90, 0.4)

.up-modal-dialog
  position: absolute
  top: 50%
  left: 50%
  +transform(translate(-50%, -50%))
  max-width: 100%
  max-height: 100%
  background-color: #fff
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.3)
  // In case someone sets padding on the dialog box,
  // the width and height attributes set by up.modal
  // should be honored exactly.
  box-sizing: border-box 

.up-modal-close
  position: absolute
  right: 0
  top: 0
  width: $close-width
  text-align: center
  line-height: $close-height
  height: $close-height
  background-color: #999
  color: #fff
  font-weight: bold
  text-transform: uppercase
  cursor: pointer
  +transform(translateY(-100%))

.up-modal-content
  overflow-x: hidden
  overflow-y: auto
  width: 100%
  height: 100%
  padding: 20px
  box-sizing: border-box

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
upjs-rails-0.8.0 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.8 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.7 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.6 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.5 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.4 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.3 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.2 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.1 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.7.0 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.6.5 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.6.4 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.6.3 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.6.2 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.6.1 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.6.0 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.5.0 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.4.4 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.4.3 lib/assets/stylesheets/up/modal.css.sass
upjs-rails-0.4.2 lib/assets/stylesheets/up/modal.css.sass