def test_css_embed(): from makeweb import CSS, Doc, style css = CSS() css('body', background_color='black', color='green') doc = Doc() with style(): css.embed() assert str( doc) == '<style>body{background-color:black;color:green}</style>'
def test_css(): from makeweb import CSS css = CSS() css('body', background_color='black', color='green') assert str(css) == 'body{background-color:black;color:green}' css('.main li', __webkit__filter='blur(1px)') assert str(css) == 'body{background-color:black;color:green}\
) META = { 'viewport': 'width=device-width, initial-scale=1', } app = Quart(__name__, static_folder=os.path.join( os.path.dirname(os.path.abspath(__file__)), 'static'), static_url_path='/static', ) app.secret_key = os.getenv('SECRET_KEY', '2#76hsdv76r7e9f(e76f13%fr17ifr#1*re') css = CSS() css('*', font__family='Verdana', ) css('#loading', display='none', ) css('#exec_label', color='#888', display='none', ) css('#exec_input', font__size='1.6em', width='20em', max__width='100%', height='1.8em',