1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package reading.component.style import scalacss.Defaults._ import reading.Media object Index extends StyleSheet.Inline { import dsl._ val page = style( display.flex, overflowY.scroll, height(100.%%) ) val main = style( Media.desktop(width :=! "calc(100% - 280px)"), Media.mobile(width(100.%%)) ) }