diff --git a/applications/examples/models/menu.py b/applications/examples/models/menu.py index d81bfa36..3f331c44 100644 --- a/applications/examples/models/menu.py +++ b/applications/examples/models/menu.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- response.menu = [ - (T('Home'), False, URL('default', 'index')), - (T('About'), False, URL('default', 'what')), - (T('Download'), False, URL('default', 'download')), - (T('Docs & Resources'), False, URL('default', 'documentation')), - (T('Support'), False, URL('default', 'support')), - (T('Contributors'), False, URL('default', 'who'))] + (T('Home'), request.controller == 'default' and request.function == 'index', URL('default', 'index')), + (T('About'), request.controller == 'default' and request.function == 'what', URL('default', 'what')), + (T('Download'), request.controller == 'default' and request.function == 'download', URL('default', 'download')), + (T('Docs & Resources'), request.controller == 'default' and request.function == 'documentation', URL('default', 'documentation')), + (T('Support'), request.controller == 'default' and request.function == 'support', URL('default', 'support')), + (T('Contributors'), request.controller == 'default' and request.function == 'who', URL('default', 'who'))] ######################################################################### ## Changes the menu active item diff --git a/applications/examples/static/css/examples.css b/applications/examples/static/css/examples.css new file mode 100644 index 00000000..293b8b89 --- /dev/null +++ b/applications/examples/static/css/examples.css @@ -0,0 +1,28 @@ +h1,h2,h3,h4,h5,h6{color: #111; text-transform:none} + +th, td {color: black} +tbody tr:hover {background-color:transparent} +tbody tr {border-bottom: none} +p {text-align: left} +p, li { line-height: 1.6em} +pre {background-color: black!important;border-radius:5px; color:white; padding:10px} +a.btn.btn180 {padding:20px; font-size:1.2em; width:200px} + +.menu .web2py-menu-active a { + color: #26a69a; +} + +.spaced-vertical { + margin: 0 0.5em 0.5em 0; +} + +.btn:hover, +a.noeffect img:hover { + transition: scale .5s; + transform: scale(1.05); +} + +.btn, +a.noeffect img { + transition: all .2s ease-in-out; +} diff --git a/applications/examples/views/default/download.html b/applications/examples/views/default/download.html index 6ac7b0c5..eaca3a8e 100644 --- a/applications/examples/views/default/download.html +++ b/applications/examples/views/default/download.html @@ -17,7 +17,7 @@ - For Windows + For Windows For Windows @@ -28,7 +28,7 @@ - For Mac + For Mac For Mac @@ -37,7 +37,7 @@ - Source Code + Source Code Source Code @@ -48,7 +48,7 @@ - Manual + Manual Change Log diff --git a/applications/examples/views/default/index.html b/applications/examples/views/default/index.html index 8cd013ca..19708c79 100644 --- a/applications/examples/views/default/index.html +++ b/applications/examples/views/default/index.html @@ -3,22 +3,22 @@
-

web2pyTM Web Framework

+

Web Framework

Free open source full-stack framework for rapid development of fast, scalable, secure and portable database-driven web-based applications. Written and programmable in Python.

@@ -29,8 +29,8 @@
- - + + Download Now diff --git a/applications/examples/views/default/who.html b/applications/examples/views/default/who.html index 14f76d69..0b939b62 100644 --- a/applications/examples/views/default/who.html +++ b/applications/examples/views/default/who.html @@ -82,6 +82,7 @@
  • Keith Yang (openid)
  • Kenji Hosoda (plugins)
  • Kyle Smith (javascript) +
  • Leonel Câmara
  • Limodou (winservice)
  • Lucas D'Ávila
  • Marc Abramowitz (tests and travis continuous integration) diff --git a/applications/examples/views/layout.html b/applications/examples/views/layout.html index 6026ddea..b6dbcb4c 100644 --- a/applications/examples/views/layout.html +++ b/applications/examples/views/layout.html @@ -4,19 +4,13 @@ - + + - + + {{ left_sidebar_enabled = globals().get('left_sidebar_enabled', False) right_sidebar_enabled = globals().get('right_sidebar_enabled', False) @@ -29,7 +23,7 @@
    - +
    {{=MENU(response.menu,_class='menu')}}
  • - + - + - +