package reading.component.widget.style import scalacss.Defaults._ import reading.Media import reading.component.style.{ Color => C, Button } object Popup extends StyleSheet.Inline { import dsl._ val popup = style( display.flex, justifyContent.center, alignItems.center, position.fixed, width(100.%%), height(100.%%), top(0.px), right(0.px), bottom(0.px), left(0.px) ) val curtain = style( Media.desktop( width(100.%%), height(100.%%), position.absolute, top(0.px), left(0.px), backgroundColor(C.black.value), opacity(0.5), cursor.pointer ), Media.mobile( display.none ) ) val content = style( position.relative, backgroundColor(C.white.value), Media.desktop( width(50.%%), borderRadius(5.px) ), Media.mobile( width(100.%%), height(100.%%), overflowY.auto ), padding(30.px, 30.px, 0.px, 30.px) ) val close = style( Button.simple, marginTop(20.px), marginBottom(30.px) ) }