Exemplo n.º 1
0
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>'
Exemplo n.º 2
0
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}\
Exemplo n.º 3
0
)

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',