Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rip out Popper.

  • Loading branch information...
commit 0b5aea34af8aaa415e42c398c7f7cfc7c54ad32d 1 parent bd39584
Chris Rossi chrisrossi authored
Showing with 1 addition and 19,332 deletions.
  1. +1 −4 bottlecap/config.py
  2. 0  bottlecap/layouts/__init__.py
  3. +0 −5 bottlecap/layouts/popper/__init__.py
  4. +0 −185 bottlecap/layouts/popper/layout.py
  5. +0 −87 bottlecap/layouts/popper/microtemplates/chatter.mustache
  6. +0 −60 bottlecap/layouts/popper/microtemplates/radar.mustache
  7. +0 −235 bottlecap/layouts/popper/panels.py
  8. +0 −96 bottlecap/layouts/popper/static/css/PIE.htc
  9. +0 −23 bottlecap/layouts/popper/static/css/_grid.less
  10. +0 −419 bottlecap/layouts/popper/static/css/_mixins.less
  11. +0 −31 bottlecap/layouts/popper/static/css/elements/actions.less
  12. +0 −42 bottlecap/layouts/popper/static/css/elements/badges.less
  13. +0 −155 bottlecap/layouts/popper/static/css/elements/button-groups.less
  14. +0 −232 bottlecap/layouts/popper/static/css/elements/buttons.less
  15. +0 −400 bottlecap/layouts/popper/static/css/elements/dropdowns.less
  16. +0 −533 bottlecap/layouts/popper/static/css/elements/forms.less
  17. +0 −45 bottlecap/layouts/popper/static/css/elements/labels.less
  18. +0 −103 bottlecap/layouts/popper/static/css/elements/login-form.less
  19. +0 −108 bottlecap/layouts/popper/static/css/elements/modal.less
  20. +0 −344 bottlecap/layouts/popper/static/css/elements/navs.less
  21. +0 −99 bottlecap/layouts/popper/static/css/elements/notifications.less
  22. +0 −116 bottlecap/layouts/popper/static/css/elements/portlets.less
  23. +0 −206 bottlecap/layouts/popper/static/css/elements/pushdowns.less
  24. +0 −156 bottlecap/layouts/popper/static/css/elements/sprites.less
  25. +0 −157 bottlecap/layouts/popper/static/css/elements/tagbox.less
  26. +0 −208 bottlecap/layouts/popper/static/css/html5boilerplate/basic.css
  27. +0 −20 bottlecap/layouts/popper/static/css/html5boilerplate/helpers.less
  28. +0 −14 bottlecap/layouts/popper/static/css/html5boilerplate/print.css
  29. +0 −39 bottlecap/layouts/popper/static/css/ie.css
  30. +0 −227 bottlecap/layouts/popper/static/css/ie.less
  31. +0 −620 bottlecap/layouts/popper/static/css/main.css
  32. +0 −826 bottlecap/layouts/popper/static/css/main.less
  33. +0 −145 bottlecap/layouts/popper/static/css/responsive/1024.less
  34. +0 −35 bottlecap/layouts/popper/static/css/responsive/1265.less
  35. +0 −34 bottlecap/layouts/popper/static/css/responsive/2024.less
  36. +0 −36 bottlecap/layouts/popper/static/css/responsive/320.less
  37. +0 −33 bottlecap/layouts/popper/static/css/responsive/480.less
  38. +0 −229 bottlecap/layouts/popper/static/css/responsive/640.less
  39. +0 −224 bottlecap/layouts/popper/static/css/responsive/768.less
  40. +0 −142 bottlecap/layouts/popper/static/css/typography.less
  41. +0 −93 bottlecap/layouts/popper/static/css/variables.less
  42. BIN  bottlecap/layouts/popper/static/img/cog.png
  43. BIN  bottlecap/layouts/popper/static/img/cog_globalnav.png
  44. BIN  bottlecap/layouts/popper/static/img/cog_globalnav_hover.png
  45. BIN  bottlecap/layouts/popper/static/img/cog_section.png
  46. BIN  bottlecap/layouts/popper/static/img/favicon.ico
  47. BIN  bottlecap/layouts/popper/static/img/fluid_background_tail_black.png
  48. BIN  bottlecap/layouts/popper/static/img/fluid_background_tail_north_black.png
  49. BIN  bottlecap/layouts/popper/static/img/glyphicons-halflings-white.png
  50. BIN  bottlecap/layouts/popper/static/img/glyphicons-halflings.png
  51. BIN  bottlecap/layouts/popper/static/img/icons.png
  52. BIN  bottlecap/layouts/popper/static/img/loader.gif
  53. BIN  bottlecap/layouts/popper/static/img/logo.png
  54. BIN  bottlecap/layouts/popper/static/img/person.orig.png
  55. BIN  bottlecap/layouts/popper/static/img/person.png
  56. BIN  bottlecap/layouts/popper/static/img/right_arrow_icon.png
  57. BIN  bottlecap/layouts/popper/static/img/search_icon.png
  58. BIN  bottlecap/layouts/popper/static/img/search_icon_dark.png
  59. BIN  bottlecap/layouts/popper/static/img/sections_icon.png
  60. BIN  bottlecap/layouts/popper/static/img/sections_icon_dark.png
  61. BIN  bottlecap/layouts/popper/static/img/selected_item.png
  62. BIN  bottlecap/layouts/popper/static/img/table_photo_view.png
  63. BIN  bottlecap/layouts/popper/static/img/vertical_stripes.png
  64. +0 −88 bottlecap/layouts/popper/static/js/PIE.js
  65. +0 −92 bottlecap/layouts/popper/static/js/bootstrap-dropdown.js
  66. +0 −210 bottlecap/layouts/popper/static/js/bootstrap-modal.js
  67. +0 −1  bottlecap/layouts/popper/static/js/ios-orientationchange-fix.js
  68. +0 −4 bottlecap/layouts/popper/static/js/jquery-1.6.3.min.js
  69. +0 −4 bottlecap/layouts/popper/static/js/jquery-1.7.1.min.js
  70. +0 −6 bottlecap/layouts/popper/static/js/jquery-extra-selectors.min.js
  71. +0 −271 bottlecap/layouts/popper/static/js/jquery.ui.widget.js
  72. +0 −4 bottlecap/layouts/popper/static/js/modernizr-2.0.6.min.js
  73. +0 −324 bottlecap/layouts/popper/static/js/mustache-0.3.0.js
  74. +0 −163 bottlecap/layouts/popper/static/js/popper.js
  75. +0 −1  bottlecap/layouts/popper/static/js/pushdown-min.js
  76. +0 −32 bottlecap/layouts/popper/static/js/pushdown.js
  77. +0 −2  bottlecap/layouts/popper/static/js/respond.min.js
  78. +0 −5 bottlecap/layouts/popper/static/js/selectivizr-min.js
  79. +0 −4 bottlecap/layouts/popper/static/popper-plugins/popper-example/popper.example.css
  80. +0 −31 bottlecap/layouts/popper/static/popper-plugins/popper-example/popper.example.js
  81. +0 −47 bottlecap/layouts/popper/static/popper-plugins/popper-example/tests/test.html
  82. +0 −51 bottlecap/layouts/popper/static/popper-plugins/popper-example/tests/test.js
  83. +0 −310 bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/bc-core/jquery.ajaxmanager-3.0.7.js
  84. +0 −10 bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/bc-core/jquery.caret-1.0.2.min.js
  85. +0 −89 bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/bc-core/jquery.cookie.js
  86. +0 −147 bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/bc-core/jquery.timeago-0.9.3.js
  87. BIN  bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/images/headshot.jpg
  88. BIN  bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/images/livesearch_bg.gif
  89. BIN  bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/images/pbar-ani.gif
  90. BIN  bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/images/ui-bg_glass_75_f0f2f4_1x400.png
  91. BIN  bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/images/xls_small.gif
  92. +0 −267 bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/popper.livesearch.css
  93. +0 −833 bottlecap/layouts/popper/static/popper-plugins/popper-livesearch/popper.livesearch.js
  94. +0 −22 bottlecap/layouts/popper/static/popper-plugins/popper-pushdown/buster-test/buster.js
  95. +0 −179 bottlecap/layouts/popper/static/popper-plugins/popper-pushdown/buster-test/popper.pushdown-test.js
  96. +0 −4 bottlecap/layouts/popper/static/popper-plugins/popper-pushdown/popper.pushdown.css
  97. +0 −645 bottlecap/layouts/popper/static/popper-plugins/popper-pushdown/popper.pushdown.js
  98. +0 −42 bottlecap/layouts/popper/static/popper-plugins/popper-pushdown/tests/test.html
  99. +0 −1,390 bottlecap/layouts/popper/static/popper-plugins/popper-pushdown/tests/test.js
  100. +0 −4 bottlecap/layouts/popper/static/popper-plugins/popper-tagbox/popper.tagbox.css
  101. +0 −317 bottlecap/layouts/popper/static/popper-plugins/popper-tagbox/popper.tagbox.js
  102. +0 −45 bottlecap/layouts/popper/static/popper-plugins/popper-tagbox/tests/test.html
  103. +0 −251 bottlecap/layouts/popper/static/popper-plugins/popper-tagbox/tests/test.js
  104. +0 −12 bottlecap/layouts/popper/static/popper-plugins/qunit.html
  105. +0 −62 bottlecap/layouts/popper/static/popper-plugins/testlib/jquery-1.6.2-jquery-ui-1.9m5.min.js
  106. +0 −23 bottlecap/layouts/popper/static/popper-plugins/testlib/jquery-1.6.2.min.js
  107. +0 −7 bottlecap/layouts/popper/static/popper-plugins/testlib/jquery-animation-workaround.js
  108. +0 −1  bottlecap/layouts/popper/static/popper-plugins/testlib/jquery-ui-1.9m5-unthemed.min.css
  109. +0 −152 bottlecap/layouts/popper/static/popper-plugins/testlib/jquery.simulate.js
  110. +0 −407 bottlecap/layouts/popper/static/popper-plugins/testlib/jquery.ui.widget.js
  111. +0 −7 bottlecap/layouts/popper/static/popper-plugins/testlib/json2.js
  112. +0 −234 bottlecap/layouts/popper/static/popper-plugins/testlib/qunit-git.css
  113. +0 −1,634 bottlecap/layouts/popper/static/popper-plugins/testlib/qunit-git.js
  114. +0 −3,469 bottlecap/layouts/popper/static/popper-plugins/testlib/sinon-1.3.1.js
  115. +0 −82 bottlecap/layouts/popper/static/popper-plugins/testlib/sinon-ie-1.3.1.js
  116. +0 −9 bottlecap/layouts/popper/static/popper-plugins/testlib/swarminject.js
  117. +0 −32 bottlecap/layouts/popper/templates/actions_menu.pt
  118. +0 −84 bottlecap/layouts/popper/templates/anonymous_layout.pt
  119. +0 −35 bottlecap/layouts/popper/templates/context_tools.pt
  120. +0 −4 bottlecap/layouts/popper/templates/footer_panel.pt
  121. +0 −13 bottlecap/layouts/popper/templates/global_logo.pt
  122. +0 −59 bottlecap/layouts/popper/templates/global_nav.pt
  123. +0 −18 bottlecap/layouts/popper/templates/grid_footer.pt
  124. +0 −38 bottlecap/layouts/popper/templates/grid_header.pt
  125. +0 −12 bottlecap/layouts/popper/templates/personal_tools.pt
  126. +0 −136 bottlecap/layouts/popper/templates/popper_layout.pt
  127. +0 −99 bottlecap/layouts/popper/templates/search.pt
  128. +0 −7 bottlecap/layouts/popper/templates/site_announcement.pt
  129. +0 −1  bottlecap/layouts/popper/templates/tagbox.pt
  130. +0 −34 bottlecap/layouts/popper/tests.py
5 bottlecap/config.py
View
@@ -46,7 +46,7 @@ def includeme(config):
config.add_directive('add_panel', add_panel)
config.add_subscriber(add_renderer_globals, BeforeRender)
config.add_subscriber(create_layout_manager, ContextFound)
-
+
defaults = {
'bottlecap.site_title': 'KARL',
'bottlecap.site_title_link': '/'
@@ -57,9 +57,6 @@ def includeme(config):
defaults.pop(key)
config.registry.settings.update(defaults)
- # Include Popper layout by default
- config.include('bottlecap.layouts.popper')
-
def add_panel(config, panel=None, name="", context=None,
renderer=None, attr=None):
0  bottlecap/layouts/__init__.py
View
No changes.
5 bottlecap/layouts/popper/__init__.py
View
@@ -1,5 +0,0 @@
-
-def includeme(config):
- config.add_static_view('popper-static', 'bottlecap.layouts.popper:static')
- config.scan('bottlecap.layouts.popper.layout')
- config.scan('bottlecap.layouts.popper.panels')
185 bottlecap/layouts/popper/layout.py
View
@@ -1,185 +0,0 @@
-import json
-
-from pyramid.decorator import reify
-from pyramid.settings import asbool
-from bottlecap.layout import layout_config
-
-
-@layout_config(name='anonymous', template='templates/anonymous_layout.pt')
-@layout_config(template='templates/popper_layout.pt')
-class PopperLayout(object):
-
- # Some configurable options that can be overriden in a view
- project_name = 'Popper Sample'
- section_title = 'Section Title'
- page_title = 'Page Title'
- section_style = 'full'
- extra_css = ()
- extra_js = ()
- extra_css_head = ()
- extra_js_head = ()
-
- def __init__(self, context, request):
- self.context = context
- self.request = request
- self.app_url = request.application_url
- # what if context is not traversable?
- if getattr(context, '__name__', None) is not None:
- self.context_url = request.resource_url(context)
- else:
- self.context_url = request.url
- self.portlets = []
-
- @reify
- def devmode(self):
- """Let templates know if we are in devmode, for comments """
-
- sn = 'bottlecap.devmode'
- dm = self.request.registry.settings.get(sn, "false")
- return dm == "true"
-
- @reify
- def use_css_pie(self):
- sn = 'bottlecap.use_css_pie'
- return asbool(self.request.registry.settings.get(sn, False))
-
- def add_portlet(self, name, *args, **kw):
- self.portlets.append((name, args, kw))
-
- # --
- # Head data for urls
- # and page globals for the client
- #
- # The static panel data below is temporary.
- # The microtemplates and the pushdown data handling
- # has already been moved out from here, and not coming back.
- # --
-
- def popper_static(self, fname):
- return self.request.static_url(
- 'bottlecap.layouts.popper:static/%s' % fname)
-
- @apply
- def show_sidebar():
- def getter(self):
- return bool(self.portlets)
- def setter(self, value):
- # allow manual override
- self.__dict__['show_sidebar'] = value
- return property(getter, setter)
-
- @property
- def head_data(self):
- if getattr(self, '_head_data', None) is None:
- self._head_data = {
- 'app_url': self.app_url,
- 'context_url': self.context_url,
-
- # XXX this does not belong here, but for now
- # we generate the data for some panels here.
- # The pushdowns are already moved out from this place.
- 'panel_data': {
- 'tagbox': {
- 'records': [
- {
- 'count': 2,
- 'snippet': 'nondeleteable',
- 'tag': 'flyers'
- },
- {
- 'count': 2,
- 'snippet': 'nondeleteable',
- 'tag': 'park'
- },
- {
- 'count': 2,
- 'snippet': 'nondeleteable',
- 'tag': 'volunteer'
- },
- {
- 'count': 2,
- 'snippet': '',
- 'tag': 'un'
- },
- {
- 'count': 2,
- 'snippet': 'nondeleteable',
- 'tag': 'foreign_policy'
- },
- {
- 'count': 1,
- 'snippet': 'nondeleteable',
- 'tag': 'unsaid'
- },
- {
- 'count': 2,
- 'snippet': 'nondeleteable',
- 'tag': 'advocacy'
- },
- {
- 'count': 2,
- 'snippet': '',
- 'tag': 'zimbabwe'
- },
- {
- 'count': 2,
- 'snippet': 'nondeleteable',
- 'tag': 'aryeh_neier'
- },
- ],
- 'docid': -1352878729,
- },
- },
- }
- return self._head_data
-
- @property
- def head_data_json(self):
- return json.dumps(self.head_data)
-
- def use_microtemplates(self, names):
- self._used_microtemplate_names = names
- self._microtemplates = None
- # update head data with it
- self.head_data['microtemplates'] = self.microtemplates
-
- @property
- def microtemplates(self):
- """Render the whole microtemplates dictionary"""
- if getattr(self, '_microtemplates', None) is None:
- self._microtemplates = get_microtemplates(directory=_microtemplates,
- names=getattr(self, '_used_microtemplate_names', ()))
- return self._microtemplates
-
-
-# FIXME Use pkg_resources
-import os
-
-_here = os.path.dirname(__file__)
-_microtemplates = os.path.join(_here, 'microtemplates')
-
-
-def get_microtemplates(directory, names=None):
-
- templates = {}
-
- all_filenames = {}
- for _fn in os.listdir(directory):
- if _fn.endswith('.mustache'):
- name = _fn[:-9]
- fname = os.path.join(directory, _fn)
- all_filenames[name] = fname
-
- # XXX Names can be a list of templates that the page needs.
- # For now on, we ignore names and include all the templates we have.
- names = all_filenames.keys()
-
- for name in names:
- #try:
- fname = all_filenames[name]
- #except KeyError:
- # raise "No such microtemplate %s" % name
- templates[name] = file(fname).read()
-
- return templates
-
87 bottlecap/layouts/popper/microtemplates/chatter.mustache
View
@@ -1,87 +0,0 @@
-<div id="chatter-panel">
- <div class="pushdownContent clearfix">
- <div class="panel">
- <h3>On your mind</h3>
- <form class="form-stacked" href="#" id="send-message">
- <div class="control-group clearfix">
- <div class="controls">
- <textarea id="mywords" name="mywords" rows="4">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat vol.</textarea>
- <p class="help-block tips">Tips: Use @username, #tag, and #this for this page</p>
- </div>
- </div>
- <div class="actions">
- <div class="btn-group">
- <button type="submit" class="btn btn-large">Speak</button>
- <!-- <a class="btn btn-large dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
- <div class="dropdown-menu">
- <div class="contentPadding">
- <fieldset>
- <b>To:</b>
- <label>
- <input name="chatter-option-to"
- type="radio" value="allkarl"
- checked="checked"/>
- All KARL
- </label>
- <label>
- <input name="chatter-option-to"
- type="radio" value="staff" />
- Staff
- </label>
- <label>
- <input name="chatter-option-to"
- type="radio" value="users" />
- Users
- </label>
- </fieldset>
- <div>
- <b>Attachments:</b>
- </div>
- </div>
- </div> -->
- </div>
- </div>
- </form>
- <div class="houstonWeHaveAProblem notification info">
- <strong>Something went wrong.</strong>
- <p>We could not update the messages for you. But don't you
- worry, we'll try again as soon as possible.</p>
- </div>
- </div>
- {{#streams}}
- <div id="{{class}}" class="panel">
- <h3>{{title}}<span class="updating">Updating&hellip;</span></h3>
- {{#items}}
- <div class="panel-item clearfix {{#new}}newMessage{{/new}}">
- <div class="panel-item-content">
- <a href="{{author_profile_url}}">
- <img alt="{{author}}" src="{{image_url}}"
- class="avatar" />
- <strong class="fullname">{{author}}</strong>
- </a>
- <div>
- <a href="{{message_url}}" class="messagetext">
- {{text}}
- </a>
- </div>
- </div>
- <div class="panel-footer clearfix">
- <small class="timestamp">{{info}}</small>
- </div>
- </div>
- {{/items}}
- <a href="#fullsize-chatter" class="thereIsMore" title="Go to Chatter">
- {{#has_more_news}}
- <span class="newMessages">1 more new item</span>
- {{/has_more_news}}
- {{^has_more_news}}
- <span class="noNewMessages">&hellip;</span>
- {{/has_more_news}}
- </a>
- </div>
- {{/streams}}
-
- <a class="btn btn-large btn-primary goto" href="#" title="Go to Chatter">Go to Chatter</a>
-
- </div>
-</div>
60 bottlecap/layouts/popper/microtemplates/radar.mustache
View
@@ -1,60 +0,0 @@
-<div id="radar-panel">
- <div class="pushdownContent clearfix">
- <div id="{{class}}" class="panel">
- <ul id="sections" class="pushDownList pushDownNavigation">
- <li class="selected"><a href="#">Home <span class="messageCounter">3</span></a></li>
- <li><a href="#">Approvals</a></li>
- <li><a href="#">Topics <span class="messageCounter">4</span></a></li>
- <li><a href="#">Featured</a></li>
- <li><a href="#">Apps</a></li>
- <li><a href="#">Configure</a></li>
- </ul>
- </div>
-
- {{#communities}}
- <div id="{{id}}" class="panel">
- <h3>{{title}}</h3>
- <ul class="pushDownList">
- {{#items}}
- <li>
- <a href="{{url}}">
- <h4 class="pushDownList-title">{{title}}</h4>
- <div class="pushDownList-info">Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</div>
- </a>
- <div class="pushDownList-helper">
- <a href="" class="btn btn-mini dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
- <ul class="dropdown-menu">
- {{#tools}}
- <li><a class="panel-item-tools" href="{{url}}">{{title}}</a></li>
- {{/tools}}
- </ul>
- </div>
- </li>
- {{/items}}
- </ul>
- </div>
- {{/communities}}
-
- {{#activity}}
- <div id="{{id }}" class="panel">
- <h3>{{title}}</h3>
- <ul class="pushDownList">
- {{#items}}
- <li>
- <a href="#">
- <h4 class="pushDownList-title">{{title}}</h4>
- <div class="pushDownList-info">
- {{type}}<br />
- <cite>Located at {{path}}</cite>
- </div>
- </a>
- <div class="pushDownList-helper">
- <time datetime="{{modified}}">{{modified_readable}}</time>
- </div>
- </li>
- {{/items}}
- </ul>
- </div>
- {{/activity}}
- </div>
-</div>
235 bottlecap/layouts/popper/panels.py
View
@@ -1,235 +0,0 @@
-from pyramid.encode import urlencode
-
-from bottlecap.panel import panel_config
-
-
-@panel_config(name='popper.global_logo',
- renderer='templates/global_logo.pt')
-def global_logo(context, request):
- return {'logo_href': request.application_url,
- 'logo_title': 'Popper'}
-
-
-@panel_config(name='popper.global_nav',
- renderer='templates/global_nav.pt')
-def global_nav(context, request):
- nav_menu = [
- dict(title="Item 1", url='#', selected=None),
- dict(title="Item 2", url='#', selected="selected"),
- dict(title="Item 3", url='#', selected=None),
- dict(title="Item 4", url='#', selected=None),
- dict(title="Item 5", url='#', selected=None)]
- return {'nav_menu': nav_menu}
-
-
-@panel_config(name='popper.personal_tools',
- renderer='templates/personal_tools.pt')
-def personal_tools(context, request):
- return dict(profile_name="John Doe")
-
-
-@panel_config(name='popper.context_tools',
- renderer='templates/context_tools.pt')
-def context_tools(context, request, tools=None):
- """The context tools are a list of dicts with the keys:
- title, url and selected (None or 'selected').
- There's an additional optional key, dropdown, that
- can contain a list with more dicts in the same format
- to allow for one level of submenus."""
- return {'tools': tools}
-
-@panel_config(name='popper.search', renderer='templates/search.pt')
-def generic_panel(context, request):
- return {}
-
-
-@panel_config(name='popper.actions_menu', renderer='templates/actions_menu.pt')
-def action_menu(context, request):
- return {'actions': [
- {'title': 'Add', 'subactions': [
- {'title': 'Page', 'url': '#'},
- {'title': 'Folder', 'url': '#'},
- {'title': 'File', 'url': '#'},
- {'title': 'Blog Entry', 'url': '#'}]},
- {'title': 'Edit', 'url': '#'},
- {'title': 'Delete', 'url': '#', 'confirm': 'Are you sure?'}
- ]}
-
-@panel_config(name='popper.tagbox', renderer='templates/tagbox.pt')
-def tagbox(context, request):
- return {}
-
-@panel_config(name='popper.site_announcement',
- renderer='templates/site_announcement.pt')
-def site_announcement(context, request):
- if "show_announcement" not in request.params:
- # We only want to show the site announcement in the sample
- # app if we ask for it. We'll make a link on the sample page
- # to make this obvious
- return {}
- announcement = """
- Praesent commodo cursus magna, vel scelerisque nisl
- consectetur et. Sed posuere consectetur est at lobortis.
- Aenean eu leo quam. Pellentesque ornare sem lacinia quam
- venenatis vestibulum."""
- return dict(
- ann_headline="The dismissible site announcement",
- ann_body=announcement,
- ann_href="/",
- )
-
-@panel_config(name='popper.grid_header', renderer='templates/grid_header.pt')
-def grid_header(context, request, letters=None, filters=None, formats=None,
- actions=None):
- return {
- 'letters': letters,
- 'filters': filters,
- 'formats': formats,
- 'actions': actions}
-
-
-@panel_config(name='popper.grid_footer', renderer='templates/grid_footer.pt')
-def grid_footer(context, request, batch):
- # Pagination
- batch_size = batch['batch_size']
- n_pages = (batch['total'] - 1) / batch_size + 1
- if n_pages <= 1:
- batch['pagination'] = False
- return batch
-
- url = request.path_url
- def page_url(page):
- params = request.GET.copy()
- params['batch_start'] = str(page * batch_size)
- return '%s?%s' % (url, urlencode(params))
-
- batch['pagination'] = True
- current = batch['batch_start'] / batch['batch_size']
- if current > 0:
- batch['prev_url'] = page_url(current - 1)
- else:
- batch['prev_url'] = None
- if current + 1 < n_pages:
- batch['next_url'] = page_url(current + 1)
- else:
- batch['next_url'] = None
- pages = []
- for i in xrange(n_pages):
- ellipsis = i != 0 and i != n_pages - 1 and abs(current - i) > 3
- if ellipsis:
- if pages[-1]['name'] != 'ellipsis':
- pages.append({
- 'name': 'ellipsis',
- 'title': '...',
- 'url': None,
- 'selected': False})
- else:
- title = '%d' % (i + 1)
- pages.append({
- 'name': title,
- 'title': title,
- 'url': page_url(i),
- 'selected': i == current})
-
- batch['pages'] = pages
- return batch
-
-
-@panel_config(name='popper.column_one', renderer='templates/column_one.pt')
-def column_one(context, request):
- layout_manager = request.layout_manager
- layout = layout_manager.layout
- render = layout_manager.render_panel
- if layout.portlets:
- return '\n'.join(
- [render(name, *args, **kw)
- for name, args, kw in layout.portlets])
- return ''
-
-
-@panel_config(name='popper.footer', renderer='templates/footer_panel.pt')
-def footer(context, request):
- return {}
-
-
-@panel_config(name='popper.extra_css')
-def extra_css(context, request):
- layout = request.layout_manager.layout
- static_url = request.static_url
- css = []
- for spec in layout.extra_css:
- # We allow spec to be an absolute url, in which case
- # we "just use it".
- if not (spec.startswith('http://') or spec.startswith('https://')):
- spec = static_url(spec)
- css.append('\t\t<link rel="stylesheet" href="%s" />' % spec)
- return '\n'.join(css)
-
-
-@panel_config(name='popper.extra_js')
-def extra_js(context, request):
- layout = request.layout_manager.layout
- static_url = request.static_url
- js = []
- for spec in layout.extra_js:
- # We allow spec to be an absolute url, in which case
- # we "just use it".
- if not (spec.startswith('http://') or spec.startswith('https://')):
- spec = static_url(spec)
- # XXX We make it all defer. Revise and provide a parameter,
- # XXX if it makes sense!
- defer = True
- js.append('\t\t<script src="%s" %s></script>' % (spec, 'defer' if defer else ''))
- return '\n'.join(js)
-
-
-
-# --
-# Head resources.
-# --
-# You _probably_ want to inject your code into the
-# non-head panels above, instead of here.
-# You want to add here only 3rdparty
-# libs that initiate more loading, so they should happen
-# as early as possible. (Like, google stuff.)
-# --
-
-@panel_config(name='popper.extra_css_head')
-def extra_css_head(context, request):
- layout = request.layout_manager.layout
- static_url = request.static_url
- css = []
- for spec in layout.extra_css_head:
- # We allow spec to be an absolute url, in which case
- # we "just use it".
- if not (spec.startswith('http://') or spec.startswith('https://')):
- spec = static_url(spec)
- css.append('\t\t<link rel="stylesheet" href="%s" />' % spec)
- return '\n'.join(css)
-
-
-@panel_config(name='popper.extra_js_head')
-def extra_js_head(context, request):
- layout = request.layout_manager.layout
- static_url = request.static_url
- js = []
- for spec in layout.extra_js_head:
- # We allow spec to be an absolute url, in which case
- # we "just use it".
- if not (spec.startswith('http://') or spec.startswith('https://')):
- spec = static_url(spec)
- # XXX We make it all non-defer. Revise and provide a parameter,
- # XXX if it makes sense!
- defer = False
- js.append('\t\t<script src="%s" %s></script>' % (spec, 'defer' if defer else ''))
- return '\n'.join(js)
-
-
-# Can be use to insert arbitrary construct into the head slot.
-# Similar result as inserting from the view into the head_slot of the template,
-# but it is easier accessible from the layout
-# if global script code has to be inserted here.
-@panel_config(name='popper.extra_slot_head')
-def extra_head(context, request):
- return ''
-
96 bottlecap/layouts/popper/static/css/PIE.htc
View
@@ -1,96 +0,0 @@
-<!--
-PIE: CSS3 rendering for IE
-Version 1.0beta5
-http://css3pie.com
-Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
--->
-<PUBLIC:COMPONENT lightWeight="true">
-<!-- saved from url=(0014)about:internet -->
-<PUBLIC:ATTACH EVENT="oncontentready" FOR="element" ONEVENT="init()" />
-<PUBLIC:ATTACH EVENT="ondocumentready" FOR="element" ONEVENT="init()" />
-<PUBLIC:ATTACH EVENT="ondetach" FOR="element" ONEVENT="cleanup()" />
-
-<script type="text/javascript">
-var doc = element.document;var f=window.PIE;
-if(!f){f=window.PIE={Q:"-pie-",nb:"Pie",La:"pie_",Ac:{TD:1,TH:1},cc:{TABLE:1,THEAD:1,TBODY:1,TFOOT:1,TR:1,INPUT:1,TEXTAREA:1,SELECT:1,OPTION:1,IMG:1,HR:1},fc:{A:1,INPUT:1,TEXTAREA:1,SELECT:1,BUTTON:1},Gd:{submit:1,button:1,reset:1},aa:function(){}};try{doc.execCommand("BackgroundImageCache",false,true)}catch(aa){}for(var X=4,Y=doc.createElement("div"),ca=Y.getElementsByTagName("i"),Z;Y.innerHTML="<!--[if gt IE "+ ++X+"]><i></i><![endif]--\>",ca[0];);f.V=X;if(X===6)f.Q=f.Q.replace(/^-/,"");f.Ba=doc.documentMode||
-f.V;Y.innerHTML='<v:shape adj="1"/>';Z=Y.firstChild;Z.style.behavior="url(#default#VML)";f.zc=typeof Z.adj==="object";(function(){var a,b=0,c={};f.p={Za:function(d){if(!a){a=doc.createDocumentFragment();a.namespaces.add("css3vml","urn:schemas-microsoft-com:vml")}return a.createElement("css3vml:"+d)},Aa:function(d){return d&&d._pieId||(d._pieId="_"+ ++b)},Eb:function(d){var e,g,i,j,h=arguments;e=1;for(g=h.length;e<g;e++){j=h[e];for(i in j)if(j.hasOwnProperty(i))d[i]=j[i]}return d},Rb:function(d,e,
-g){var i=c[d],j,h;if(i)Object.prototype.toString.call(i)==="[object Array]"?i.push([e,g]):e.call(g,i);else{h=c[d]=[[e,g]];j=new Image;j.onload=function(){i=c[d]={i:j.width,f:j.height};for(var k=0,n=h.length;k<n;k++)h[k][0].call(h[k][1],i);j.onload=null};j.src=d}}}})();f.Na={gc:function(a,b,c,d){function e(){k=i>=90&&i<270?b:0;n=i<180?c:0;l=b-k;q=c-n}function g(){for(;i<0;)i+=360;i%=360}var i=d.ra;d=d.zb;var j,h,k,n,l,q,s,m;if(d){d=d.coords(a,b,c);j=d.x;h=d.y}if(i){i=i.jd();g();e();if(!d){j=k;h=n}d=
-f.Na.tc(j,h,i,l,q);a=d[0];d=d[1]}else if(d){a=b-j;d=c-h}else{j=h=a=0;d=c}s=a-j;m=d-h;if(i===void 0){i=!s?m<0?90:270:!m?s<0?180:0:-Math.atan2(m,s)/Math.PI*180;g();e()}return{ra:i,xc:j,yc:h,td:a,ud:d,Vd:k,Wd:n,rd:l,sd:q,kd:s,ld:m,rc:f.Na.dc(j,h,a,d)}},tc:function(a,b,c,d,e){if(c===0||c===180)return[d,b];else if(c===90||c===270)return[a,e];else{c=Math.tan(-c*Math.PI/180);a=c*a-b;b=-1/c;d=b*d-e;e=b-c;return[(d-a)/e,(c*d-b*a)/e]}},dc:function(a,b,c,d){a=c-a;b=d-b;return Math.abs(a===0?b:b===0?a:Math.sqrt(a*
-a+b*b))}};f.ea=function(){this.Gb=[];this.oc={}};f.ea.prototype={ba:function(a){var b=f.p.Aa(a),c=this.oc,d=this.Gb;if(!(b in c)){c[b]=d.length;d.push(a)}},Ha:function(a){a=f.p.Aa(a);var b=this.oc;if(a&&a in b){delete this.Gb[b[a]];delete b[a]}},wa:function(){for(var a=this.Gb,b=a.length;b--;)a[b]&&a[b]()}};f.Oa=new f.ea;f.Oa.Qd=function(){var a=this;if(!a.Rd){setInterval(function(){a.wa()},250);a.Rd=1}};(function(){function a(){f.K.wa();window.detachEvent("onunload",a);window.PIE=null}f.K=new f.ea;
-window.attachEvent("onunload",a);f.K.sa=function(b,c,d){b.attachEvent(c,d);this.ba(function(){b.detachEvent(c,d)})}})();f.Qa=new f.ea;f.K.sa(window,"onresize",function(){f.Qa.wa()});(function(){function a(){f.mb.wa()}f.mb=new f.ea;f.K.sa(window,"onscroll",a);f.Qa.ba(a)})();(function(){function a(){c=f.kb.md()}function b(){if(c){for(var d=0,e=c.length;d<e;d++)f.attach(c[d]);c=0}}var c;f.K.sa(window,"onbeforeprint",a);f.K.sa(window,"onafterprint",b)})();f.lb=new f.ea;f.K.sa(doc,"onmouseup",function(){f.lb.wa()});
-f.ge=function(){function a(h){this.Y=h}var b=doc.createElement("length-calc"),c=doc.documentElement,d=b.style,e={},g=["mm","cm","in","pt","pc"],i=g.length,j={};d.position="absolute";d.top=d.left="-9999px";for(c.appendChild(b);i--;){b.style.width="100"+g[i];e[g[i]]=b.offsetWidth/100}c.removeChild(b);b.style.width="1em";a.prototype={Kb:/(px|em|ex|mm|cm|in|pt|pc|%)$/,ic:function(){var h=this.Id;if(h===void 0)h=this.Id=parseFloat(this.Y);return h},yb:function(){var h=this.$d;if(!h)h=this.$d=(h=this.Y.match(this.Kb))&&
-h[0]||"px";return h},a:function(h,k){var n=this.ic(),l=this.yb();switch(l){case "px":return n;case "%":return n*(typeof k==="function"?k():k)/100;case "em":return n*this.xb(h);case "ex":return n*this.xb(h)/2;default:return n*e[l]}},xb:function(h){var k=h.currentStyle.fontSize,n,l;if(k.indexOf("px")>0)return parseFloat(k);else if(h.tagName in f.cc){l=this;n=h.parentNode;return f.n(k).a(n,function(){return l.xb(n)})}else{h.appendChild(b);k=b.offsetWidth;b.parentNode===h&&h.removeChild(b);return k}}};
-f.n=function(h){return j[h]||(j[h]=new a(h))};return a}();f.Ja=function(){function a(e){this.X=e}var b=f.n("50%"),c={top:1,center:1,bottom:1},d={left:1,center:1,right:1};a.prototype={zd:function(){if(!this.ac){var e=this.X,g=e.length,i=f.v,j=i.pa,h=f.n("0");j=j.ma;h=["left",h,"top",h];if(g===1){e.push(new i.ob(j,"center"));g++}if(g===2){j&(e[0].k|e[1].k)&&e[0].d in c&&e[1].d in d&&e.push(e.shift());if(e[0].k&j)if(e[0].d==="center")h[1]=b;else h[0]=e[0].d;else if(e[0].W())h[1]=f.n(e[0].d);if(e[1].k&
-j)if(e[1].d==="center")h[3]=b;else h[2]=e[1].d;else if(e[1].W())h[3]=f.n(e[1].d)}this.ac=h}return this.ac},coords:function(e,g,i){var j=this.zd(),h=j[1].a(e,g);e=j[3].a(e,i);return{x:j[0]==="right"?g-h:h,y:j[2]==="bottom"?i-e:e}}};return a}();f.Ka=function(){function a(b,c){this.i=b;this.f=c}a.prototype={a:function(b,c,d,e,g){var i=this.i,j=this.f,h=c/d;e=e/g;if(i==="contain"){i=e>h?c:d*e;j=e>h?c/e:d}else if(i==="cover"){i=e<h?c:d*e;j=e<h?c/e:d}else if(i==="auto"){j=j==="auto"?g:j.a(b,d);i=j*e}else{i=
-i.a(b,c);j=j==="auto"?i/e:j.a(b,d)}return{i:i,f:j}}};a.Kc=new a("auto","auto");return a}();f.Ec=function(){function a(b){this.Y=b}a.prototype={Kb:/[a-z]+$/i,yb:function(){return this.ad||(this.ad=this.Y.match(this.Kb)[0].toLowerCase())},jd:function(){var b=this.Vc,c;if(b===undefined){b=this.yb();c=parseFloat(this.Y,10);b=this.Vc=b==="deg"?c:b==="rad"?c/Math.PI*180:b==="grad"?c/400*360:b==="turn"?c*360:0}return b}};return a}();f.Jc=function(){function a(c){this.Y=c}var b={};a.Pd=/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d+|\d*\.\d+)\s*\)\s*/;
-a.Fb={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"0FF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000",blanchedalmond:"FFEBCD",blue:"00F",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"0FF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",
-darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"F0F",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",
-hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgreen:"90EE90",lightgrey:"D3D3D3",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"789",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"0F0",limegreen:"32CD32",linen:"FAF0E6",magenta:"F0F",
-maroon:"800000",mediumauqamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370D8",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"688E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",
-palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",red:"F00",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",
-violet:"EE82EE",wheat:"F5DEB3",white:"FFF",whitesmoke:"F5F5F5",yellow:"FF0",yellowgreen:"9ACD32"};a.prototype={parse:function(){if(!this.Ua){var c=this.Y,d;if(d=c.match(a.Pd)){this.Ua="rgb("+d[1]+","+d[2]+","+d[3]+")";this.Yb=parseFloat(d[4])}else{if((d=c.toLowerCase())in a.Fb)c="#"+a.Fb[d];this.Ua=c;this.Yb=c==="transparent"?0:1}}},T:function(c){this.parse();return this.Ua==="currentColor"?c.currentStyle.color:this.Ua},fa:function(){this.parse();return this.Yb}};f.ha=function(c){return b[c]||(b[c]=
-new a(c))};return a}();f.v=function(){function a(c){this.$a=c;this.ch=0;this.X=[];this.Ga=0}var b=a.pa={Ia:1,Wb:2,B:4,Lc:8,Xb:16,ma:32,J:64,na:128,oa:256,Ra:512,Tc:1024,URL:2048};a.ob=function(c,d){this.k=c;this.d=d};a.ob.prototype={Ca:function(){return this.k&b.J||this.k&b.na&&this.d==="0"},W:function(){return this.Ca()||this.k&b.Ra}};a.prototype={ce:/\s/,Jd:/^[\+\-]?(\d*\.)?\d+/,url:/^url\(\s*("([^"]*)"|'([^']*)'|([!#$%&*-~]*))\s*\)/i,nc:/^\-?[_a-z][\w-]*/i,Xd:/^("([^"]*)"|'([^']*)')/,Bd:/^#([\da-f]{6}|[\da-f]{3})/i,
-ae:{px:b.J,em:b.J,ex:b.J,mm:b.J,cm:b.J,"in":b.J,pt:b.J,pc:b.J,deg:b.Ia,rad:b.Ia,grad:b.Ia},fd:{rgb:1,rgba:1,hsl:1,hsla:1},next:function(c){function d(q,s){q=new a.ob(q,s);if(!c){k.X.push(q);k.Ga++}return q}function e(){k.Ga++;return null}var g,i,j,h,k=this;if(this.Ga<this.X.length)return this.X[this.Ga++];for(;this.ce.test(this.$a.charAt(this.ch));)this.ch++;if(this.ch>=this.$a.length)return e();i=this.ch;g=this.$a.substring(this.ch);j=g.charAt(0);switch(j){case "#":if(h=g.match(this.Bd)){this.ch+=
-h[0].length;return d(b.B,h[0])}break;case '"':case "'":if(h=g.match(this.Xd)){this.ch+=h[0].length;return d(b.Tc,h[2]||h[3]||"")}break;case "/":case ",":this.ch++;return d(b.oa,j);case "u":if(h=g.match(this.url)){this.ch+=h[0].length;return d(b.URL,h[2]||h[3]||h[4]||"")}}if(h=g.match(this.Jd)){j=h[0];this.ch+=j.length;if(g.charAt(j.length)==="%"){this.ch++;return d(b.Ra,j+"%")}if(h=g.substring(j.length).match(this.nc)){j+=h[0];this.ch+=h[0].length;return d(this.ae[h[0].toLowerCase()]||b.Lc,j)}return d(b.na,
-j)}if(h=g.match(this.nc)){j=h[0];this.ch+=j.length;if(j.toLowerCase()in f.Jc.Fb||j==="currentColor"||j==="transparent")return d(b.B,j);if(g.charAt(j.length)==="("){this.ch++;if(j.toLowerCase()in this.fd){g=function(q){return q&&q.k&b.na};h=function(q){return q&&q.k&(b.na|b.Ra)};var n=function(q,s){return q&&q.d===s},l=function(){return k.next(1)};if((j.charAt(0)==="r"?h(l()):g(l()))&&n(l(),",")&&h(l())&&n(l(),",")&&h(l())&&(j==="rgb"||j==="hsa"||n(l(),",")&&g(l()))&&n(l(),")"))return d(b.B,this.$a.substring(i,
-this.ch));return e()}return d(b.Xb,j)}return d(b.ma,j)}this.ch++;return d(b.Wb,j)},D:function(){return this.X[this.Ga-- -2]},all:function(){for(;this.next(););return this.X},la:function(c,d){for(var e=[],g,i;g=this.next();){if(c(g)){i=true;this.D();break}e.push(g)}return d&&!i?null:e}};return a}();var da=function(a){this.e=a};da.prototype={Z:0,Nd:function(){var a=this.qb,b;return!a||(b=this.o())&&(a.x!==b.x||a.y!==b.y)},Sd:function(){var a=this.qb,b;return!a||(b=this.o())&&(a.i!==b.i||a.f!==b.f)},
-hc:function(){var a=this.e,b=a.getBoundingClientRect(),c=f.Ba===9;return{x:b.left,y:b.top,i:c?a.offsetWidth:b.right-b.left,f:c?a.offsetHeight:b.bottom-b.top}},o:function(){return this.Z?this.Va||(this.Va=this.hc()):this.hc()},Ad:function(){return!!this.qb},cb:function(){++this.Z},hb:function(){if(!--this.Z){if(this.Va)this.qb=this.Va;this.Va=null}}};(function(){function a(b){var c=f.p.Aa(b);return function(){if(this.Z){var d=this.$b||(this.$b={});return c in d?d[c]:(d[c]=b.call(this))}else return b.call(this)}}
-f.C={Z:0,ja:function(b){function c(d){this.e=d;this.Zb=this.ia()}f.p.Eb(c.prototype,f.C,b);c.$c={};return c},j:function(){var b=this.ia(),c=this.constructor.$c;return b?b in c?c[b]:(c[b]=this.ka(b)):null},ia:a(function(){var b=this.e,c=this.constructor,d=b.style;b=b.currentStyle;var e=this.va,g=this.Fa,i=c.Yc||(c.Yc=f.Q+e);c=c.Zc||(c.Zc=f.nb+g.charAt(0).toUpperCase()+g.substring(1));return d[c]||b.getAttribute(i)||d[g]||b.getAttribute(e)}),h:a(function(){return!!this.j()}),G:a(function(){var b=this.ia(),
-c=b!==this.Zb;this.Zb=b;return c}),ua:a,cb:function(){++this.Z},hb:function(){--this.Z||delete this.$b}}})();f.Sb=f.C.ja({va:f.Q+"background",Fa:f.nb+"Background",cd:{scroll:1,fixed:1,local:1},fb:{"repeat-x":1,"repeat-y":1,repeat:1,"no-repeat":1},sc:{"padding-box":1,"border-box":1,"content-box":1},Od:{top:1,right:1,bottom:1,left:1,center:1},Td:{contain:1,cover:1},eb:{Ma:"backgroundClip",B:"backgroundColor",da:"backgroundImage",Pa:"backgroundOrigin",R:"backgroundPosition",S:"backgroundRepeat",Sa:"backgroundSize"},
-ka:function(a){function b(v){return v&&v.W()||v.k&k&&v.d in m}function c(v){return v&&(v.W()&&f.n(v.d)||v.d==="auto"&&"auto")}var d=this.e.currentStyle,e,g,i,j=f.v.pa,h=j.oa,k=j.ma,n=j.B,l,q,s=0,m=this.Od,r,p,t={L:[]};if(this.wb()){e=new f.v(a);for(i={};g=e.next();){l=g.k;q=g.d;if(!i.N&&l&j.Xb&&q==="linear-gradient"){r={ca:[],N:q};for(p={};g=e.next();){l=g.k;q=g.d;if(l&j.Wb&&q===")"){p.color&&r.ca.push(p);r.ca.length>1&&f.p.Eb(i,r);break}if(l&n){if(r.ra||r.zb){g=e.D();if(g.k!==h)break;e.next()}p=
-{color:f.ha(q)};g=e.next();if(g.W())p.db=f.n(g.d);else e.D()}else if(l&j.Ia&&!r.ra&&!p.color&&!r.ca.length)r.ra=new f.Ec(g.d);else if(b(g)&&!r.zb&&!p.color&&!r.ca.length){e.D();r.zb=new f.Ja(e.la(function(v){return!b(v)},false))}else if(l&h&&q===","){if(p.color){r.ca.push(p);p={}}}else break}}else if(!i.N&&l&j.URL){i.Ab=q;i.N="image"}else if(b(g)&&!i.$){e.D();i.$=new f.Ja(e.la(function(v){return!b(v)},false))}else if(l&k)if(q in this.fb&&!i.bb)i.bb=q;else if(q in this.sc&&!i.Wa){i.Wa=q;if((g=e.next())&&
-g.k&k&&g.d in this.sc)i.ub=g.d;else{i.ub=q;e.D()}}else if(q in this.cd&&!i.bc)i.bc=q;else return null;else if(l&n&&!t.color)t.color=f.ha(q);else if(l&h&&q==="/"&&!i.Xa&&i.$){g=e.next();if(g.k&k&&g.d in this.Td)i.Xa=new f.Ka(g.d);else if(g=c(g)){l=c(e.next());if(!l){l=g;e.D()}i.Xa=new f.Ka(g,l)}else return null}else if(l&h&&q===","&&i.N){i.Hb=a.substring(s,e.ch-1);s=e.ch;t.L.push(i);i={}}else return null}if(i.N){i.Hb=a.substring(s);t.L.push(i)}}else this.Bc(f.Ba<9?function(){var v=this.eb,o=d[v.R+
-"X"],u=d[v.R+"Y"],x=d[v.da],y=d[v.B];if(y!=="transparent")t.color=f.ha(y);if(x!=="none")t.L=[{N:"image",Ab:(new f.v(x)).next().d,bb:d[v.S],$:new f.Ja((new f.v(o+" "+u)).all())}]}:function(){var v=this.eb,o=/\s*,\s*/,u=d[v.da].split(o),x=d[v.B],y,z,D,G,E,B;if(x!=="transparent")t.color=f.ha(x);if((G=u.length)&&u[0]!=="none"){x=d[v.S].split(o);y=d[v.R].split(o);z=d[v.Pa].split(o);D=d[v.Ma].split(o);v=d[v.Sa].split(o);t.L=[];for(o=0;o<G;o++)if((E=u[o])&&E!=="none"){B=v[o].split(" ");t.L.push({Hb:E+" "+
-x[o]+" "+y[o]+" / "+v[o]+" "+z[o]+" "+D[o],N:"image",Ab:(new f.v(E)).next().d,bb:x[o],$:new f.Ja((new f.v(y[o])).all()),Wa:z[o],ub:D[o],Xa:new f.Ka(B[0],B[1])})}}});return t.color||t.L[0]?t:null},Bc:function(a){var b=f.Ba>8,c=this.eb,d=this.e.runtimeStyle,e=d[c.da],g=d[c.B],i=d[c.S],j,h,k,n;if(e)d[c.da]="";if(g)d[c.B]="";if(i)d[c.S]="";if(b){j=d[c.Ma];h=d[c.Pa];n=d[c.R];k=d[c.Sa];if(j)d[c.Ma]="";if(h)d[c.Pa]="";if(n)d[c.R]="";if(k)d[c.Sa]=""}a=a.call(this);if(e)d[c.da]=e;if(g)d[c.B]=g;if(i)d[c.S]=
-i;if(b){if(j)d[c.Ma]=j;if(h)d[c.Pa]=h;if(n)d[c.R]=n;if(k)d[c.Sa]=k}return a},ia:f.C.ua(function(){return this.wb()||this.Bc(function(){var a=this.e.currentStyle,b=this.eb;return a[b.B]+" "+a[b.da]+" "+a[b.S]+" "+a[b.R+"X"]+" "+a[b.R+"Y"]})}),wb:f.C.ua(function(){var a=this.e;return a.style[this.Fa]||a.currentStyle.getAttribute(this.va)}),qc:function(){var a=0;if(f.V<7){a=this.e;a=""+(a.style[f.nb+"PngFix"]||a.currentStyle.getAttribute(f.Q+"png-fix"))==="true"}return a},h:f.C.ua(function(){return(this.wb()||
-this.qc())&&!!this.j()})});f.Vb=f.C.ja({wc:["Top","Right","Bottom","Left"],Hd:{thin:"1px",medium:"3px",thick:"5px"},ka:function(){var a={},b={},c={},d=false,e=true,g=true,i=true;this.Cc(function(){for(var j=this.e.currentStyle,h=0,k,n,l,q,s,m,r;h<4;h++){l=this.wc[h];r=l.charAt(0).toLowerCase();k=b[r]=j["border"+l+"Style"];n=j["border"+l+"Color"];l=j["border"+l+"Width"];if(h>0){if(k!==q)g=false;if(n!==s)e=false;if(l!==m)i=false}q=k;s=n;m=l;c[r]=f.ha(n);l=a[r]=f.n(b[r]==="none"?"0":this.Hd[l]||l);if(l.a(this.e)>
-0)d=true}});return d?{I:a,Yd:b,gd:c,de:i,hd:e,Zd:g}:null},ia:f.C.ua(function(){var a=this.e,b=a.currentStyle,c;a.tagName in f.Ac&&a.offsetParent.currentStyle.borderCollapse==="collapse"||this.Cc(function(){c=b.borderWidth+"|"+b.borderStyle+"|"+b.borderColor});return c}),Cc:function(a){var b=this.e.runtimeStyle,c=b.borderWidth,d=b.borderColor;if(c)b.borderWidth="";if(d)b.borderColor="";a=a.call(this);if(c)b.borderWidth=c;if(d)b.borderColor=d;return a}});(function(){f.jb=f.C.ja({va:"border-radius",
-Fa:"borderRadius",ka:function(b){var c=null,d,e,g,i,j=false;if(b){e=new f.v(b);var h=function(){for(var k=[],n;(g=e.next())&&g.W();){i=f.n(g.d);n=i.ic();if(n<0)return null;if(n>0)j=true;k.push(i)}return k.length>0&&k.length<5?{tl:k[0],tr:k[1]||k[0],br:k[2]||k[0],bl:k[3]||k[1]||k[0]}:null};if(b=h()){if(g){if(g.k&f.v.pa.oa&&g.d==="/")d=h()}else d=b;if(j&&b&&d)c={x:b,y:d}}}return c}});var a=f.n("0");a={tl:a,tr:a,br:a,bl:a};f.jb.Dc={x:a,y:a}})();f.Ub=f.C.ja({va:"border-image",Fa:"borderImage",fb:{stretch:1,
-round:1,repeat:1,space:1},ka:function(a){var b=null,c,d,e,g,i,j,h=0,k=f.v.pa,n=k.ma,l=k.na,q=k.Ra;if(a){c=new f.v(a);b={};for(var s=function(p){return p&&p.k&k.oa&&p.d==="/"},m=function(p){return p&&p.k&n&&p.d==="fill"},r=function(){g=c.la(function(p){return!(p.k&(l|q))});if(m(c.next())&&!b.fill)b.fill=true;else c.D();if(s(c.next())){h++;i=c.la(function(p){return!p.W()&&!(p.k&n&&p.d==="auto")});if(s(c.next())){h++;j=c.la(function(p){return!p.Ca()})}}else c.D()};a=c.next();){d=a.k;e=a.d;if(d&(l|q)&&
-!g){c.D();r()}else if(m(a)&&!b.fill){b.fill=true;r()}else if(d&n&&this.fb[e]&&!b.repeat){b.repeat={f:e};if(a=c.next())if(a.k&n&&this.fb[a.d])b.repeat.Ob=a.d;else c.D()}else if(d&k.URL&&!b.src)b.src=e;else return null}if(!b.src||!g||g.length<1||g.length>4||i&&i.length>4||h===1&&i.length<1||j&&j.length>4||h===2&&j.length<1)return null;if(!b.repeat)b.repeat={f:"stretch"};if(!b.repeat.Ob)b.repeat.Ob=b.repeat.f;a=function(p,t){return{t:t(p[0]),r:t(p[1]||p[0]),b:t(p[2]||p[0]),l:t(p[3]||p[1]||p[0])}};b.slice=
-a(g,function(p){return f.n(p.k&l?p.d+"px":p.d)});if(i&&i[0])b.I=a(i,function(p){return p.W()?f.n(p.d):p.d});if(j&&j[0])b.Da=a(j,function(p){return p.Ca()?f.n(p.d):p.d})}return b}});f.Ic=f.C.ja({va:"box-shadow",Fa:"boxShadow",ka:function(a){var b,c=f.n,d=f.v.pa,e;if(a){e=new f.v(a);b={Da:[],Bb:[]};for(a=function(){for(var g,i,j,h,k,n;g=e.next();){j=g.d;i=g.k;if(i&d.oa&&j===",")break;else if(g.Ca()&&!k){e.D();k=e.la(function(l){return!l.Ca()})}else if(i&d.B&&!h)h=j;else if(i&d.ma&&j==="inset"&&!n)n=
-true;else return false}g=k&&k.length;if(g>1&&g<5){(n?b.Bb:b.Da).push({ee:c(k[0].d),fe:c(k[1].d),blur:c(k[2]?k[2].d:"0"),Ud:c(k[3]?k[3].d:"0"),color:f.ha(h||"currentColor")});return true}return false};a(););}return b&&(b.Bb.length||b.Da.length)?b:null}});f.Uc=f.C.ja({ia:f.C.ua(function(){var a=this.e.currentStyle;return a.visibility+"|"+a.display}),ka:function(){var a=this.e,b=a.runtimeStyle;a=a.currentStyle;var c=b.visibility,d;b.visibility="";d=a.visibility;b.visibility=c;return{be:d!=="hidden",
-nd:a.display!=="none"}},h:function(){return false}});f.u={P:function(a){function b(c,d,e,g){this.e=c;this.s=d;this.g=e;this.parent=g}f.p.Eb(b.prototype,f.u,a);return b},Cb:false,O:function(){return false},Ea:f.aa,Lb:function(){this.m();this.h()&&this.U()},ib:function(){this.Cb=true},Mb:function(){this.h()?this.U():this.m()},sb:function(a,b){this.vc(a);for(var c=this.qa||(this.qa=[]),d=a+1,e=c.length,g;d<e;d++)if(g=c[d])break;c[a]=b;this.H().insertBefore(b,g||null)},ya:function(a){var b=this.qa;return b&&
-b[a]||null},vc:function(a){var b=this.ya(a),c=this.Ta;if(b&&c){c.removeChild(b);this.qa[a]=null}},za:function(a,b,c,d){var e=this.rb||(this.rb={}),g=e[a];if(!g){g=e[a]=f.p.Za("shape");if(b)g.appendChild(g[b]=f.p.Za(b));if(d){c=this.ya(d);if(!c){this.sb(d,doc.createElement("group"+d));c=this.ya(d)}}c.appendChild(g);a=g.style;a.position="absolute";a.left=a.top=0;a.behavior="url(#default#VML)"}return g},vb:function(a){var b=this.rb,c=b&&b[a];if(c){c.parentNode.removeChild(c);delete b[a]}return!!c},kc:function(a){var b=
-this.e,c=this.s.o(),d=c.i,e=c.f,g,i,j,h,k,n;c=a.x.tl.a(b,d);g=a.y.tl.a(b,e);i=a.x.tr.a(b,d);j=a.y.tr.a(b,e);h=a.x.br.a(b,d);k=a.y.br.a(b,e);n=a.x.bl.a(b,d);a=a.y.bl.a(b,e);d=Math.min(d/(c+i),e/(j+k),d/(n+h),e/(g+a));if(d<1){c*=d;g*=d;i*=d;j*=d;h*=d;k*=d;n*=d;a*=d}return{x:{tl:c,tr:i,br:h,bl:n},y:{tl:g,tr:j,br:k,bl:a}}},xa:function(a,b,c){b=b||1;var d,e,g=this.s.o();e=g.i*b;g=g.f*b;var i=this.g.F,j=Math.floor,h=Math.ceil,k=a?a.Jb*b:0,n=a?a.Ib*b:0,l=a?a.tb*b:0;a=a?a.Db*b:0;var q,s,m,r,p;if(c||i.h()){d=
-this.kc(c||i.j());c=d.x.tl*b;i=d.y.tl*b;q=d.x.tr*b;s=d.y.tr*b;m=d.x.br*b;r=d.y.br*b;p=d.x.bl*b;b=d.y.bl*b;e="m"+j(a)+","+j(i)+"qy"+j(c)+","+j(k)+"l"+h(e-q)+","+j(k)+"qx"+h(e-n)+","+j(s)+"l"+h(e-n)+","+h(g-r)+"qy"+h(e-m)+","+h(g-l)+"l"+j(p)+","+h(g-l)+"qx"+j(a)+","+h(g-b)+" x e"}else e="m"+j(a)+","+j(k)+"l"+h(e-n)+","+j(k)+"l"+h(e-n)+","+h(g-l)+"l"+j(a)+","+h(g-l)+"xe";return e},H:function(){var a=this.parent.ya(this.M),b;if(!a){a=doc.createElement(this.Ya);b=a.style;b.position="absolute";b.top=b.left=
-0;this.parent.sb(this.M,a)}return a},mc:function(){var a=this.e,b=a.currentStyle,c=a.runtimeStyle,d=a.tagName,e=f.V===6,g;if(e&&(d in f.cc||d==="FIELDSET")||d==="BUTTON"||d==="INPUT"&&a.type in f.Gd){c.borderWidth="";d=this.g.z.wc;for(g=d.length;g--;){e=d[g];c["padding"+e]="";c["padding"+e]=f.n(b["padding"+e]).a(a)+f.n(b["border"+e+"Width"]).a(a)+(f.V!==8&&g%2?1:0)}c.borderWidth=0}else if(e){if(a.childNodes.length!==1||a.firstChild.tagName!=="ie6-mask"){b=doc.createElement("ie6-mask");d=b.style;d.visibility=
-"visible";for(d.zoom=1;d=a.firstChild;)b.appendChild(d);a.appendChild(b);c.visibility="hidden"}}else c.borderColor="transparent"},he:function(){},m:function(){this.parent.vc(this.M);delete this.rb;delete this.qa}};f.Rc=f.u.P({h:function(){var a=this.ed;for(var b in a)if(a.hasOwnProperty(b)&&a[b].h())return true;return false},O:function(){return this.g.Pb.G()},ib:function(){if(this.h()){var a=this.jc(),b=a,c;a=a.currentStyle;var d=a.position,e=this.H().style,g=0,i=0;i=this.s.o();if(d==="fixed"&&f.V>
-6){g=i.x;i=i.y;b=d}else{do b=b.offsetParent;while(b&&b.currentStyle.position==="static");if(b){c=b.getBoundingClientRect();b=b.currentStyle;g=i.x-c.left-(parseFloat(b.borderLeftWidth)||0);i=i.y-c.top-(parseFloat(b.borderTopWidth)||0)}else{b=doc.documentElement;g=i.x+b.scrollLeft-b.clientLeft;i=i.y+b.scrollTop-b.clientTop}b="absolute"}e.position=b;e.left=g;e.top=i;e.zIndex=d==="static"?-1:a.zIndex;this.Cb=true}},Mb:f.aa,Nb:function(){var a=this.g.Pb.j();this.H().style.display=a.be&&a.nd?"":"none"},
-Lb:function(){this.h()?this.Nb():this.m()},jc:function(){var a=this.e;return a.tagName in f.Ac?a.offsetParent:a},H:function(){var a=this.Ta,b;if(!a){b=this.jc();a=this.Ta=doc.createElement("css3-container");a.style.direction="ltr";this.Nb();b.parentNode.insertBefore(a,b)}return a},ab:f.aa,m:function(){var a=this.Ta,b;if(a&&(b=a.parentNode))b.removeChild(a);delete this.Ta;delete this.qa}});f.Fc=f.u.P({M:2,Ya:"background",O:function(){var a=this.g;return a.w.G()||a.F.G()},h:function(){var a=this.g;
-return a.q.h()||a.F.h()||a.w.h()||a.ga.h()&&a.ga.j().Bb},U:function(){var a=this.s.o();if(a.i&&a.f){this.od();this.pd()}},od:function(){var a=this.g.w.j(),b=this.s.o(),c=this.e,d=a&&a.color,e,g;if(d&&d.fa()>0){this.lc();a=this.za("bgColor","fill",this.H(),1);e=b.i;b=b.f;a.stroked=false;a.coordsize=e*2+","+b*2;a.coordorigin="1,1";a.path=this.xa(null,2);g=a.style;g.width=e;g.height=b;a.fill.color=d.T(c);c=d.fa();if(c<1)a.fill.opacity=c}else this.vb("bgColor")},pd:function(){var a=this.g.w.j(),b=this.s.o();
-a=a&&a.L;var c,d,e,g,i;if(a){this.lc();d=b.i;e=b.f;for(i=a.length;i--;){b=a[i];c=this.za("bgImage"+i,"fill",this.H(),2);c.stroked=false;c.fill.type="tile";c.fillcolor="none";c.coordsize=d*2+","+e*2;c.coordorigin="1,1";c.path=this.xa(0,2);g=c.style;g.width=d;g.height=e;if(b.N==="linear-gradient")this.bd(c,b);else{c.fill.src=b.Ab;this.Md(c,i)}}}for(i=a?a.length:0;this.vb("bgImage"+i++););},Md:function(a,b){var c=this;f.p.Rb(a.fill.src,function(d){var e=c.e,g=c.s.o(),i=g.i;g=g.f;if(i&&g){var j=a.fill,
-h=c.g,k=h.z.j(),n=k&&k.I;k=n?n.t.a(e):0;var l=n?n.r.a(e):0,q=n?n.b.a(e):0;n=n?n.l.a(e):0;h=h.w.j().L[b];e=h.$?h.$.coords(e,i-d.i-n-l,g-d.f-k-q):{x:0,y:0};h=h.bb;q=l=0;var s=i+1,m=g+1,r=f.V===8?0:1;n=Math.round(e.x)+n+0.5;k=Math.round(e.y)+k+0.5;j.position=n/i+","+k/g;if(h&&h!=="repeat"){if(h==="repeat-x"||h==="no-repeat"){l=k+1;m=k+d.f+r}if(h==="repeat-y"||h==="no-repeat"){q=n+1;s=n+d.i+r}a.style.clip="rect("+l+"px,"+s+"px,"+m+"px,"+q+"px)"}}})},bd:function(a,b){var c=this.e,d=this.s.o(),e=d.i,g=
-d.f;a=a.fill;d=b.ca;var i=d.length,j=Math.PI,h=f.Na,k=h.tc,n=h.dc;b=h.gc(c,e,g,b);h=b.ra;var l=b.xc,q=b.yc,s=b.Vd,m=b.Wd,r=b.rd,p=b.sd,t=b.kd,v=b.ld;b=b.rc;e=h%90?Math.atan2(t*e/g,v)/j*180:h+90;e+=180;e%=360;r=k(s,m,h,r,p);g=n(s,m,r[0],r[1]);j=[];r=k(l,q,h,s,m);n=n(l,q,r[0],r[1])/g*100;k=[];for(h=0;h<i;h++)k.push(d[h].db?d[h].db.a(c,b):h===0?0:h===i-1?b:null);for(h=1;h<i;h++){if(k[h]===null){l=k[h-1];b=h;do q=k[++b];while(q===null);k[h]=l+(q-l)/(b-h+1)}k[h]=Math.max(k[h],k[h-1])}for(h=0;h<i;h++)j.push(n+
-k[h]/g*100+"% "+d[h].color.T(c));a.angle=e;a.type="gradient";a.method="sigma";a.color=d[0].color.T(c);a.color2=d[i-1].color.T(c);if(a.colors)a.colors.value=j.join(",");else a.colors=j.join(",")},lc:function(){var a=this.e.runtimeStyle;a.backgroundImage="url(about:blank)";a.backgroundColor="transparent"},m:function(){f.u.m.call(this);var a=this.e.runtimeStyle;a.backgroundImage=a.backgroundColor=""}});f.Gc=f.u.P({M:4,Ya:"border",O:function(){var a=this.g;return a.z.G()||a.F.G()},h:function(){var a=
-this.g;return(a.F.h()||a.w.h())&&!a.q.h()&&a.z.h()},U:function(){var a=this.e,b=this.g.z.j(),c=this.s.o(),d=c.i;c=c.f;var e,g,i,j,h;if(b){this.mc();b=this.wd(2);j=0;for(h=b.length;j<h;j++){i=b[j];e=this.za("borderPiece"+j,i.stroke?"stroke":"fill",this.H());e.coordsize=d*2+","+c*2;e.coordorigin="1,1";e.path=i.path;g=e.style;g.width=d;g.height=c;e.filled=!!i.fill;e.stroked=!!i.stroke;if(i.stroke){e=e.stroke;e.weight=i.Qb+"px";e.color=i.color.T(a);e.dashstyle=i.stroke==="dashed"?"2 2":i.stroke==="dotted"?
-"1 1":"solid";e.linestyle=i.stroke==="double"&&i.Qb>2?"ThinThin":"Single"}else e.fill.color=i.fill.T(a)}for(;this.vb("borderPiece"+j++););}},wd:function(a){var b=this.e,c,d,e,g=this.g.z,i=[],j,h,k,n,l=Math.round,q,s,m;if(g.h()){c=g.j();g=c.I;s=c.Yd;m=c.gd;if(c.de&&c.Zd&&c.hd){if(m.t.fa()>0){c=g.t.a(b);k=c/2;i.push({path:this.xa({Jb:k,Ib:k,tb:k,Db:k},a),stroke:s.t,color:m.t,Qb:c})}}else{a=a||1;c=this.s.o();d=c.i;e=c.f;c=l(g.t.a(b));k=l(g.r.a(b));n=l(g.b.a(b));b=l(g.l.a(b));var r={t:c,r:k,b:n,l:b};
-b=this.g.F;if(b.h())q=this.kc(b.j());j=Math.floor;h=Math.ceil;var p=function(o,u){return q?q[o][u]:0},t=function(o,u,x,y,z,D){var G=p("x",o),E=p("y",o),B=o.charAt(1)==="r";o=o.charAt(0)==="b";return G>0&&E>0?(D?"al":"ae")+(B?h(d-G):j(G))*a+","+(o?h(e-E):j(E))*a+","+(j(G)-u)*a+","+(j(E)-x)*a+","+y*65535+","+2949075*(z?1:-1):(D?"m":"l")+(B?d-u:u)*a+","+(o?e-x:x)*a},v=function(o,u,x,y){var z=o==="t"?j(p("x","tl"))*a+","+h(u)*a:o==="r"?h(d-u)*a+","+j(p("y","tr"))*a:o==="b"?h(d-p("x","br"))*a+","+j(e-
-u)*a:j(u)*a+","+h(e-p("y","bl"))*a;o=o==="t"?h(d-p("x","tr"))*a+","+h(u)*a:o==="r"?h(d-u)*a+","+h(e-p("y","br"))*a:o==="b"?j(p("x","bl"))*a+","+j(e-u)*a:j(u)*a+","+j(p("y","tl"))*a;return x?(y?"m"+o:"")+"l"+z:(y?"m"+z:"")+"l"+o};b=function(o,u,x,y,z,D){var G=o==="l"||o==="r",E=r[o],B,A;if(E>0&&s[o]!=="none"&&m[o].fa()>0){B=r[G?o:u];u=r[G?u:o];A=r[G?o:x];x=r[G?x:o];if(s[o]==="dashed"||s[o]==="dotted"){i.push({path:t(y,B,u,D+45,0,1)+t(y,0,0,D,1,0),fill:m[o]});i.push({path:v(o,E/2,0,1),stroke:s[o],Qb:E,
-color:m[o]});i.push({path:t(z,A,x,D,0,1)+t(z,0,0,D-45,1,0),fill:m[o]})}else i.push({path:t(y,B,u,D+45,0,1)+v(o,E,0,0)+t(z,A,x,D,0,0)+(s[o]==="double"&&E>2?t(z,A-j(A/3),x-j(x/3),D-45,1,0)+v(o,h(E/3*2),1,0)+t(y,B-j(B/3),u-j(u/3),D,1,0)+"x "+t(y,j(B/3),j(u/3),D+45,0,1)+v(o,j(E/3),1,0)+t(z,j(A/3),j(x/3),D,0,0):"")+t(z,0,0,D-45,1,0)+v(o,0,1,0)+t(y,0,0,D,1,0),fill:m[o]})}};b("t","l","r","tl","tr",90);b("r","t","b","tr","br",0);b("b","r","l","br","bl",-90);b("l","b","t","bl","tl",-180)}}return i},m:function(){if(this.ec||
-!this.g.q.h())this.e.runtimeStyle.borderColor="";f.u.m.call(this)}});f.Tb=f.u.P({M:5,Ld:["t","tr","r","br","b","bl","l","tl","c"],O:function(){return this.g.q.G()},h:function(){return this.g.q.h()},U:function(){this.H();var a=this.g.q.j(),b=this.g.z.j(),c=this.s.o(),d=this.e,e=this.uc;f.p.Rb(a.src,function(g){function i(v,o,u,x,y){v=e[v].style;var z=Math.max;v.width=z(o,0);v.height=z(u,0);v.left=x;v.top=y}function j(v,o,u){for(var x=0,y=v.length;x<y;x++)e[v[x]].imagedata[o]=u}var h=c.i,k=c.f,n=f.n("0"),
-l=a.I||(b?b.I:{t:n,r:n,b:n,l:n});n=l.t.a(d);var q=l.r.a(d),s=l.b.a(d);l=l.l.a(d);var m=a.slice,r=m.t.a(d),p=m.r.a(d),t=m.b.a(d);m=m.l.a(d);i("tl",l,n,0,0);i("t",h-l-q,n,l,0);i("tr",q,n,h-q,0);i("r",q,k-n-s,h-q,n);i("br",q,s,h-q,k-s);i("b",h-l-q,s,l,k-s);i("bl",l,s,0,k-s);i("l",l,k-n-s,0,n);i("c",h-l-q,k-n-s,l,n);j(["tl","t","tr"],"cropBottom",(g.f-r)/g.f);j(["tl","l","bl"],"cropRight",(g.i-m)/g.i);j(["bl","b","br"],"cropTop",(g.f-t)/g.f);j(["tr","r","br"],"cropLeft",(g.i-p)/g.i);j(["l","r","c"],"cropTop",
-r/g.f);j(["l","r","c"],"cropBottom",t/g.f);j(["t","b","c"],"cropLeft",m/g.i);j(["t","b","c"],"cropRight",p/g.i);e.c.style.display=a.fill?"":"none"},this)},H:function(){var a=this.parent.ya(this.M),b,c,d,e=this.Ld,g=e.length;if(!a){a=doc.createElement("border-image");b=a.style;b.position="absolute";this.uc={};for(d=0;d<g;d++){c=this.uc[e[d]]=f.p.Za("rect");c.appendChild(f.p.Za("imagedata"));b=c.style;b.behavior="url(#default#VML)";b.position="absolute";b.top=b.left=0;c.imagedata.src=this.g.q.j().src;
-c.stroked=false;c.filled=false;a.appendChild(c)}this.parent.sb(this.M,a)}return a},Ea:function(){if(this.h()){var a=this.e,b=a.runtimeStyle,c=this.g.q.j().I;b.borderStyle="solid";if(c){b.borderTopWidth=c.t.a(a)+"px";b.borderRightWidth=c.r.a(a)+"px";b.borderBottomWidth=c.b.a(a)+"px";b.borderLeftWidth=c.l.a(a)+"px"}this.mc()}},m:function(){var a=this.e.runtimeStyle;a.borderStyle="";if(this.ec||!this.g.z.h())a.borderColor=a.borderWidth="";f.u.m.call(this)}});f.Hc=f.u.P({M:1,Ya:"outset-box-shadow",O:function(){var a=
-this.g;return a.ga.G()||a.F.G()},h:function(){var a=this.g.ga;return a.h()&&a.j().Da[0]},U:function(){function a(B,A,L,N,H,I,F){B=b.za("shadow"+B+A,"fill",d,i-B);A=B.fill;B.coordsize=n*2+","+l*2;B.coordorigin="1,1";B.stroked=false;B.filled=true;A.color=H.T(c);if(I){A.type="gradienttitle";A.color2=A.color;A.opacity=0}B.path=F;p=B.style;p.left=L;p.top=N;p.width=n;p.height=l;return B}var b=this,c=this.e,d=this.H(),e=this.g,g=e.ga.j().Da;e=e.F.j();var i=g.length,j=i,h,k=this.s.o(),n=k.i,l=k.f;k=f.V===
-8?1:0;for(var q=["tl","tr","br","bl"],s,m,r,p,t,v,o,u,x,y,z,D,G,E;j--;){m=g[j];t=m.ee.a(c);v=m.fe.a(c);h=m.Ud.a(c);o=m.blur.a(c);m=m.color;u=-h-o;if(!e&&o)e=f.jb.Dc;u=this.xa({Jb:u,Ib:u,tb:u,Db:u},2,e);if(o){x=(h+o)*2+n;y=(h+o)*2+l;z=o*2/x;D=o*2/y;if(o-h>n/2||o-h>l/2)for(h=4;h--;){s=q[h];G=s.charAt(0)==="b";E=s.charAt(1)==="r";s=a(j,s,t,v,m,o,u);r=s.fill;r.focusposition=(E?1-z:z)+","+(G?1-D:D);r.focussize="0,0";s.style.clip="rect("+((G?y/2:0)+k)+"px,"+(E?x:x/2)+"px,"+(G?y:y/2)+"px,"+((E?x/2:0)+k)+
-"px)"}else{s=a(j,"",t,v,m,o,u);r=s.fill;r.focusposition=z+","+D;r.focussize=1-z*2+","+(1-D*2)}}else{s=a(j,"",t,v,m,o,u);t=m.fa();if(t<1)s.fill.opacity=t}}}});f.Pc=f.u.P({M:6,Ya:"imgEl",O:function(){var a=this.g;return this.e.src!==this.Xc||a.F.G()},h:function(){var a=this.g;return a.F.h()||a.w.qc()},U:function(){this.Xc=i;this.Cd();var a=this.za("img","fill",this.H()),b=a.fill,c=this.s.o(),d=c.i;c=c.f;var e=this.g.z.j(),g=e&&e.I;e=this.e;var i=e.src,j=Math.round,h=e.currentStyle,k=f.n;if(!g||f.V<
-7){g=f.n("0");g={t:g,r:g,b:g,l:g}}a.stroked=false;b.type="frame";b.src=i;b.position=(d?0.5/d:0)+","+(c?0.5/c:0);a.coordsize=d*2+","+c*2;a.coordorigin="1,1";a.path=this.xa({Jb:j(g.t.a(e)+k(h.paddingTop).a(e)),Ib:j(g.r.a(e)+k(h.paddingRight).a(e)),tb:j(g.b.a(e)+k(h.paddingBottom).a(e)),Db:j(g.l.a(e)+k(h.paddingLeft).a(e))},2);a=a.style;a.width=d;a.height=c},Cd:function(){this.e.runtimeStyle.filter="alpha(opacity=0)"},m:function(){f.u.m.call(this);this.e.runtimeStyle.filter=""}});f.Oc=f.u.P({ib:f.aa,
-Mb:f.aa,Nb:f.aa,Lb:f.aa,Kd:/^,+|,+$/g,Fd:/,+/g,gb:function(a,b){(this.pb||(this.pb=[]))[a]=b||void 0},ab:function(){var a=this.pb,b;if(a&&(b=a.join(",").replace(this.Kd,"").replace(this.Fd,","))!==this.Wc)this.Wc=this.e.runtimeStyle.background=b},m:function(){this.e.runtimeStyle.background="";delete this.pb}});f.Mc=f.u.P({ta:1,O:function(){return this.g.w.G()},h:function(){var a=this.g;return a.w.h()||a.q.h()},U:function(){var a=this.g.w.j(),b,c,d=0,e,g;if(a){b=[];if(c=a.L)for(;e=c[d++];)if(e.N===
-"linear-gradient"){g=this.vd(e.Wa);g=(e.Xa||f.Ka.Kc).a(this.e,g.i,g.f,g.i,g.f);b.push("url(data:image/svg+xml,"+escape(this.xd(e,g.i,g.f))+") "+this.dd(e.$)+" / "+g.i+"px "+g.f+"px "+(e.bc||"")+" "+(e.Wa||"")+" "+(e.ub||""))}else b.push(e.Hb);a.color&&b.push(a.color.Y);this.parent.gb(this.ta,b.join(","))}},dd:function(a){return a?a.X.map(function(b){return b.d}).join(" "):"0 0"},vd:function(a){var b=this.e,c=this.s.o(),d=c.i;c=c.f;var e;if(a!=="border-box")if((e=this.g.z.j())&&(e=e.I)){d-=e.l.a(b)+
-e.l.a(b);c-=e.t.a(b)+e.b.a(b)}if(a==="content-box"){a=f.n;e=b.currentStyle;d-=a(e.paddingLeft).a(b)+a(e.paddingRight).a(b);c-=a(e.paddingTop).a(b)+a(e.paddingBottom).a(b)}return{i:d,f:c}},xd:function(a,b,c){var d=this.e,e=a.ca,g=e.length,i=f.Na.gc(d,b,c,a);a=i.xc;var j=i.yc,h=i.td,k=i.ud;i=i.rc;var n,l,q,s,m;n=[];for(l=0;l<g;l++)n.push(e[l].db?e[l].db.a(d,i):l===0?0:l===g-1?i:null);for(l=1;l<g;l++)if(n[l]===null){s=n[l-1];q=l;do m=n[++q];while(m===null);n[l]=s+(m-s)/(q-l+1)}b=['<svg width="'+b+'" height="'+
-c+'" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="g" gradientUnits="userSpaceOnUse" x1="'+a/b*100+'%" y1="'+j/c*100+'%" x2="'+h/b*100+'%" y2="'+k/c*100+'%">'];for(l=0;l<g;l++)b.push('<stop offset="'+n[l]/i+'" stop-color="'+e[l].color.T(d)+'" stop-opacity="'+e[l].color.fa()+'"/>');b.push('</linearGradient></defs><rect width="100%" height="100%" fill="url(#g)"/></svg>');return b.join("")},m:function(){this.parent.gb(this.ta)}});f.Nc=f.u.P({S:"repeat",Sc:"stretch",Qc:"round",ta:0,O:function(){return this.g.q.G()},
-h:function(){return this.g.q.h()},U:function(){var a=this,b=a.g.q.j(),c=a.g.z.j(),d=a.s.o(),e=b.repeat,g=e.f,i=e.Ob,j=a.e,h=0;f.p.Rb(b.src,function(k){function n(R,S,U,V,W,T,w,C,K,O){J.push('<pattern patternUnits="userSpaceOnUse" id="pattern'+Q+'" x="'+(g===p?R+U/2-K/2:R)+'" y="'+(i===p?S+V/2-O/2:S)+'" width="'+K+'" height="'+O+'"><svg width="'+K+'" height="'+O+'" viewBox="'+W+" "+T+" "+w+" "+C+'" preserveAspectRatio="none"><image xlink:href="'+r+'" x="0" y="0" width="'+s+'" height="'+m+'" /></svg></pattern>');
-P.push('<rect x="'+R+'" y="'+S+'" width="'+U+'" height="'+V+'" fill="url(#pattern'+Q+')" />');Q++}var l=d.i,q=d.f,s=k.i,m=k.f,r=a.Dd(b.src,s,m),p=a.S,t=a.Sc;k=a.Qc;var v=Math.ceil,o=f.n("0"),u=b.I||(c?c.I:{t:o,r:o,b:o,l:o});o=u.t.a(j);var x=u.r.a(j),y=u.b.a(j);u=u.l.a(j);var z=b.slice,D=z.t.a(j),G=z.r.a(j),E=z.b.a(j);z=z.l.a(j);var B=l-u-x,A=q-o-y,L=s-z-G,N=m-D-E,H=g===t?B:L*o/D,I=i===t?A:N*x/G,F=g===t?B:L*y/E;t=i===t?A:N*u/z;var J=[],P=[],Q=0;if(g===k){H-=(H-(B%H||H))/v(B/H);F-=(F-(B%F||F))/v(B/
-F)}if(i===k){I-=(I-(A%I||I))/v(A/I);t-=(t-(A%t||t))/v(A/t)}k=['<svg width="'+l+'" height="'+q+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'];n(0,0,u,o,0,0,z,D,u,o);n(u,0,B,o,z,0,L,D,H,o);n(l-x,0,x,o,s-G,0,G,D,x,o);n(0,o,u,A,0,D,z,N,u,t);if(b.fill)n(u,o,B,A,z,D,L,N,H||F||L,t||I||N);n(l-x,o,x,A,s-G,D,G,N,x,I);n(0,q-y,u,y,0,m-E,z,E,u,y);n(u,q-y,B,y,z,m-E,L,E,F,y);n(l-x,q-y,x,y,s-G,m-E,G,E,x,y);k.push("<defs>"+J.join("\n")+"</defs>"+P.join("\n")+"</svg>");a.parent.gb(a.ta,
-"url(data:image/svg+xml,"+escape(k.join(""))+") no-repeat border-box border-box");h&&a.parent.ab()},a);h=1},Dd:function(){var a={};return function(b,c,d){var e=a[b],g;if(!e){e=new Image;g=doc.createElement("canvas");e.src=b;g.width=c;g.height=d;g.getContext("2d").drawImage(e,0,0);e=a[b]=g.toDataURL()}return e}}(),Ea:f.Tb.prototype.Ea,m:function(){var a=this.e.runtimeStyle;this.parent.gb(this.ta);a.borderColor=a.borderStyle=a.borderWidth=""}});f.kb=function(){function a(m,r){m.className+=" "+r}function b(m){var r=
-s.slice.call(arguments,1),p=r.length;setTimeout(function(){for(;p--;)a(m,r[p])},0)}function c(m){var r=s.slice.call(arguments,1),p=r.length;setTimeout(function(){for(;p--;){var t=r[p];t=q[t]||(q[t]=new RegExp("\\b"+t+"\\b","g"));m.className=m.className.replace(t,"")}},0)}function d(m){function r(){if(!R){var w,C,K=f.Ba,O=m.currentStyle,M=O.getAttribute(g)==="true";T=O.getAttribute(i);T=K>7?T!=="false":T==="true";if(!Q){Q=1;m.runtimeStyle.zoom=1;O=m;for(var ba=1;O=O.previousSibling;)if(O.nodeType===
-1){ba=0;break}ba&&a(m,n)}F.cb();if(M&&(C=F.o())&&(w=doc.documentElement||doc.body)&&(C.y>w.clientHeight||C.x>w.clientWidth||C.y+C.f<0||C.x+C.i<0)){if(!V){V=1;f.mb.ba(r)}}else{R=1;V=Q=0;f.mb.Ha(r);if(K===9){J={w:new f.Sb(m),q:new f.Ub(m),z:new f.Vb(m)};P=[J.w,J.q];I=new f.Oc(m,F,J);w=[new f.Mc(m,F,J,I),new f.Nc(m,F,J,I)]}else{J={w:new f.Sb(m),z:new f.Vb(m),q:new f.Ub(m),F:new f.jb(m),ga:new f.Ic(m),Pb:new f.Uc(m)};P=[J.w,J.z,J.q,J.F,J.ga,J.Pb];I=new f.Rc(m,F,J);w=[new f.Hc(m,F,J,I),new f.Fc(m,F,J,
-I),new f.Gc(m,F,J,I),new f.Tb(m,F,J,I)];m.tagName==="IMG"&&w.push(new f.Pc(m,F,J,I));I.ed=w}H=[I].concat(w);if(w=m.currentStyle.getAttribute(f.Q+"watch-ancestors")){w=parseInt(w,10);C=0;for(M=m.parentNode;M&&(w==="NaN"||C++<w);){A(M,"onpropertychange",G);A(M,"onmouseenter",o);A(M,"onmouseleave",u);A(M,"onmousedown",x);if(M.tagName in f.fc){A(M,"onfocus",z);A(M,"onblur",D)}M=M.parentNode}}if(T){f.Oa.ba(t);f.Oa.Qd()}t(1)}if(!S){S=1;K<9&&A(m,"onmove",p);A(m,"onresize",p);A(m,"onpropertychange",v);A(m,
-"onmouseenter",o);A(m,"onmouseleave",u);A(m,"onmousedown",x);if(m.tagName in f.fc){A(m,"onfocus",z);A(m,"onblur",D)}f.Qa.ba(p);f.K.ba(L)}F.hb()}}function p(){F&&F.Ad()&&t()}function t(w){if(!W)if(R){var C,K=H.length;E();for(C=0;C<K;C++)H[C].Ea();if(w||F.Nd())for(C=0;C<K;C++)H[C].ib();if(w||F.Sd())for(C=0;C<K;C++)H[C].Mb();I.ab();B()}else Q||r()}function v(){var w,C=H.length,K;w=event;if(!W&&!(w&&w.propertyName in l))if(R){E();for(w=0;w<C;w++)H[w].Ea();for(w=0;w<C;w++){K=H[w];K.Cb||K.ib();K.O()&&K.Lb()}I.ab();
-B()}else Q||r()}function o(){b(m,j)}function u(){c(m,j,h)}function x(){b(m,h);f.lb.ba(y)}function y(){c(m,h);f.lb.Ha(y)}function z(){b(m,k)}function D(){c(m,k)}function G(){var w=event.propertyName;if(w==="className"||w==="id")v()}function E(){F.cb();for(var w=P.length;w--;)P[w].cb()}function B(){for(var w=P.length;w--;)P[w].hb();F.hb()}function A(w,C,K){w.attachEvent(C,K);U.push([w,C,K])}function L(){if(S){for(var w=U.length,C;w--;){C=U[w];C[0].detachEvent(C[1],C[2])}f.K.Ha(L);S=0;U=[]}}function N(){if(!W){var w,
-C;L();W=1;if(H){w=0;for(C=H.length;w<C;w++){H[w].ec=1;H[w].m()}}T&&f.Oa.Ha(t);f.Qa.Ha(t);H=F=J=P=m=null}}var H,I,F=new da(m),J,P,Q,R,S,U=[],V,W,T;this.Ed=r;this.update=t;this.m=N;this.qd=m}var e={},g=f.Q+"lazy-init",i=f.Q+"poll",j=f.La+"hover",h=f.La+"active",k=f.La+"focus",n=f.La+"first-child",l={background:1,bgColor:1,display:1},q={},s=[];d.yd=function(m){var r=f.p.Aa(m);return e[r]||(e[r]=new d(m))};d.m=function(m){m=f.p.Aa(m);var r=e[m];if(r){r.m();delete e[m]}};d.md=function(){var m=[],r;if(e){for(var p in e)if(e.hasOwnProperty(p)){r=
-e[p];m.push(r.qd);r.m()}e={}}return m};return d}();f.supportsVML=f.zc;f.attach=function(a){f.Ba<10&&f.zc&&f.kb.yd(a).Ed()};f.detach=function(a){f.kb.m(a)}};
-var $=element;function init(){var a=window.PIE;a&&doc.media!=="print"&&a.attach($)}function cleanup(){var a=window.PIE;if(a){a.detach($);$=0}}$.readyState==="complete"&&init();
-</script>
-</PUBLIC:COMPONENT>
23 bottlecap/layouts/popper/static/css/_grid.less
View
@@ -1,23 +0,0 @@
-.row(@columns:@columns) {
- width: @total-width;
- margin-left: auto;
- margin-right: auto;
-}
-
-.col(@x,@columns:@columns) {
- display: inline;
- float: left;
- width: @total-width*((((@gutter-width+@column-width)*@x)-@gutter-width) / @_gridsystem-width);
- margin-left: @total-width*((@gutter-width*.5)/@_gridsystem-width);
- margin-right: @total-width*((@gutter-width*.5)/@_gridsystem-width);
-}
-.alpha {
- margin-left: 0;
-}
-.omega {
- margin-right: 0;
-}
-
-.column-half {
- .col(6);
-}
419 bottlecap/layouts/popper/static/css/_mixins.less
View
@@ -1,419 +0,0 @@
-.css3_border_radius( @radius: 3px ) {
- -webkit-border-radius: @radius;
- -moz-border-radius: @radius;
- border-radius: @radius;
- .css3_background_clip ( padding-box );
-}
-
-.css3_background_clip ( @clipping: padding-box ) {
- -webkit-background-clip: @clipping;
- -moz-background-clip: @clipping;
- background-clip: @clipping;
-}
-
-.css3_box_shadow( @shadow ) {
- -webkit-box-shadow: @shadow;
- -moz-box-shadow: @shadow;
- box-shadow: @shadow;
-}
-
-.css3_linear_gradient(
- @begin: black,
- @end: white
-) {
- background: @begin;
- background-image: -moz-linear-gradient(top, @begin, @end); /* FF3.6 */
- background-image: -ms-linear-gradient(top, @begin, @end); /* IE10 */
- background-image: -o-linear-gradient(top, @begin, @end); /* Opera 11.10+ */
- background-image: -webkit-gradient(linear, left top, left bottom, from(@begin), to(@end)); /* Saf4+, Chrome */
- background-image: -webkit-linear-gradient(top, @begin, @end); /* Chrome 10+, Saf5.1+ */
- background-image: linear-gradient(top, @begin, @end);
-}
-
-// Triangle Pointer
-.trianglePointer(top, @color: #222, @size: 5px) {
- border-top:none;
- border-left: @size solid transparent;
- border-right: @size solid transparent;
- border-bottom: @size solid @color;
-}
-.trianglePointer(right, @color: #222, @size: 5px) {
- border-right:none;
- border-bottom: @size solid transparent;
- border-left: @size solid @color;
- border-top: @size solid transparent;
-}
-.trianglePointer(bottom, @color: #222, @size: 5px) {
- border-bottom:none;
- border-left: @size solid transparent;
- border-right: @size solid transparent;
- border-top: @size solid @color;
-}
-.trianglePointer(left, @color: #222, @size: 5px) {
- border-left:none;
- border-top: @size solid transparent;
- border-right: @size solid @color;
- border-bottom: @size solid transparent;
-}
-.trianglePointer(@_, @color: #222, @size: 5px) {
- content: "";
- display: block;
- width: 0;
- height: 0;
- *line-height: 0;
-}
-
-// CSS3 Content Columns
-.css3_content-columns(@columnCount, @columnGap: 20px) {
- -webkit-column-count: @columnCount;
- -moz-column-count: @columnCount;
- column-count: @columnCount;
- -webkit-column-gap: @columnGap;
- -moz-column-gap: @columnGap;
- column-gap: @columnGap;
-}
-
-// Gradient Bar Colors for buttons and allerts
-.gradientBar(@primaryColor, @secondaryColor) {
- #gradient > .vertical(@primaryColor, @secondaryColor);
- border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
- border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
-}
-
-// Gradients
-#css3_gradient {
- .horizontal (@startColor: #555, @endColor: #333) {
- background-color: @endColor;
- background-repeat: repeat-x;
- background-image: -khtml-gradient(linear, left top, right top, from(@startColor), to(@endColor)); // Konqueror
- background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(left, @startColor, @endColor); // IE10
- background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome 2+
- background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(left, @startColor, @endColor); // Le standard
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",@startColor,@endColor)); // IE9 and down
- }
- .vertical (@startColor: #555, @endColor: #333) {
- background-color: @endColor;
- background-repeat: repeat-x;
- background-image: -khtml-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); // Konqueror
- background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(top, @startColor, @endColor); // IE10
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome 2+
- background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(top, @startColor, @endColor); // The standard
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down
- }
- .directional (@startColor: #555, @endColor: #333, @deg: 45deg) {
- background-color: @endColor;
- background-repeat: repeat-x;
- background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(@deg, @startColor, @endColor); // IE10
- background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(@deg, @startColor, @endColor); // The standard
- }
- .vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
- background-color: @endColor;
- background-repeat: no-repeat;
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
- background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
- background-image: -ms-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down, gets no color-stop at all for proper fallback
- }
-}
-
-.css3_transition( @transition ) {
- -webkit-transition: @transition;
- -moz-transition: @transition;
- -ms-transition: @transition;
- -o-transition: @transition;
- transition: @transition;
-}
-
-.css3_box_sizing( @type : border-box ) {
- -webkt-box-sizing: @type;
- -moz-box-sizing: @type;
- box-sizing: @type;
-}
-
-.horList (@float: none) {
- float: @float;
- clear: both;
- list-style: none;
- > li {
- display: inline;
- > a {
- display: inline-block;
- }
- }
-}
-.noBullets {
- list-style: none;
- padding-left: 0;
- margin-left: 0;
- li {
- list-style: none;
- }
-}
-
-// Reset filters for IE
-.reset-filter() {
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
-}
-// Opacity
-.opacity(@opacity: 100) {
- filter: e(%("alpha(opacity=%d)", @opacity));
- -khtml-opacity: @opacity / 100;
- -moz-opacity: @opacity / 100;
- opacity: @opacity / 100;
-}
-// Clearfix for clearing floats like a boss h5bp.com/q
-.clearfix() {
- zoom: 1;
- &:before,
- &:after {
- display: table;
- content: "";
- zoom: 1;
- }
- &:after {
- clear: both;
- }
-}
-
-.quickpanelToggle(@textColor:#fff) {
- display: inline-block;
- padding: 0 1.3em 0 .7em;
- margin: 0;
- position: relative;
- line-height: 1.5em;
- color: @textColor;
- &:before {
- .trianglePointer(bottom, @textColor, .266666667em);
- position: absolute;
- z-index: 2;
- top: 50%;
- margin-top: -0.1em;
- right: .266666667em;
- *line-height: 0;
- }
-}
-
-.personIcon() {
- //background-color: transparent;
- //background-position: 0% 47%;
- //background-repeat: no-repeat;
- //background-image: url('../img/person.png');
- background: url('../img/person.png') no-repeat 0% 47%;
- padding-left: 30px;
-}
-
-// TWITTER BOOTSTRAP BRIDGING MIXINS
-#font {
- #family {
- .serif() {
- font-family: @baseFont;
- }
- .sans-serif() {
- font-family: @fancyFont;
- }
- .monospace() {
- font-family: Menlo, Monaco, "Courier New", monospace;
- }
- }
- .shorthand(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
- font-size: @size;
- font-weight: @weight;
- line-height: @lineHeight;
- }
- .serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
- #font > #family > .serif;
- #font > .shorthand(@size, @weight, @lineHeight);
- }
- .sans-serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
- #font > #family > .sans-serif;
- #font > .shorthand(@size, @weight, @lineHeight);
- }
- .monospace(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
- #font > #family > .monospace;
- #font > .shorthand(@size, @weight, @lineHeight);
- }
-}
-.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
- .css3_box_shadow(@shadow);
-}
-.transition(@transition) {
- .css3_transition(@transition);
-}
-.tab-focus() {
- // Default
- outline: thin dotted;
- // Webkit
- outline: 5px auto -webkit-focus-ring-color;
- outline-offset: -2px;
-}
-#inputGridSystem {
- .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, @columns) {
- width: ((@gridColumnWidth) * @columns) + (@gridGutterWidth * (@columns - 1)) - 10;
- }
- .generate(@gridColumns, @gridColumnWidth, @gridGutterWidth) {
- input,
- textarea,
- .uneditable-input {
- &.span1 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 1); }
- &.span2 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 2); }
- &.span3 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 3); }
- &.span4 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 4); }
- &.span5 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 5); }
- &.span6 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 6); }
- &.span7 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 7); }
- &.span8 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 8); }
- &.span9 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 9); }
- &.span10 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 10); }
- &.span11 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 11); }
- &.span12 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 12); }
- }
- }
-}
-.ie7-inline-block() {
- *display: inline; /* IE7 inline-block hack */
- *zoom: 1;
-}
-// IE7 likes to collapse whitespace on either side of the inline-block elements.
-// Ems because we're attempting to match the width of a space character. Left
-// version is for form buttons, which typically come after other elements, and
-// right version is for icons, which come before. Applying both is ok, but it will
-// mean that space between those elements will be .6em (~2 space characters) in IE7,
-// instead of the 1 space in other browsers.
-.ie7-restore-left-whitespace() {
- *margin-left: .3em;
-
- &:first-child {
- *margin-left: 0;
- }
-}
-
-.ie7-restore-right-whitespace() {
- *margin-right: .3em;
-
- &:last-child {
- *margin-left: 0;
- }
-}
-.border-radius(@radius) {
- .css3_border_radius(@radius);
-}
-.placeholder(@color: @placeholderText) {
- :-moz-placeholder {
- color: @color;
- }
- ::-webkit-input-placeholder {
- color: @color;
- }
-}
-#gradient {
- .horizontal(@startColor: #555, @endColor: #333) {
- background-color: @endColor;
- background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(left, @startColor, @endColor); // IE10
- background-image: -webkit-gradient(linear, 0 0, 100% 0, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
- background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(left, @startColor, @endColor); // Le standard
- background-repeat: repeat-x;
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",@startColor,@endColor)); // IE9 and down
- }
- .vertical(@startColor: #555, @endColor: #333) {
- background-color: mix(@startColor, @endColor, 60%);
- background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(top, @startColor, @endColor); // IE10
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
- background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(top, @startColor, @endColor); // The standard
- background-repeat: repeat-x;
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down
- }
- .directional(@startColor: #555, @endColor: #333, @deg: 45deg) {
- background-color: @endColor;
- background-repeat: repeat-x;
- background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+
- background-image: -ms-linear-gradient(@deg, @startColor, @endColor); // IE10
- background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
- background-image: linear-gradient(@deg, @startColor, @endColor); // The standard
- }
- .vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
- background-color: mix(@midColor, @endColor, 80%);
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
- background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
- background-image: -ms-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
- background-repeat: no-repeat;
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down, gets no color-stop at all for proper fallback
- }
- .radial(@innerColor: #555, @outerColor: #333) {
- background-color: @outerColor;
- background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(@innerColor), to(@outerColor));
- background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
- background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
- background-image: -ms-radial-gradient(circle, @innerColor, @outerColor);
- background-repeat: no-repeat;
- // Opera cannot do radial gradients yet
- }
- .striped(@color, @angle: -45deg) {
- background-color: @color;
- background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
- background-image: -webkit-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
- background-image: -moz-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
- background-image: -ms-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
- background-image: -o-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
- background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
- }
-}
-// Reset filters for IE
-.reset-filter() {
- filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
-}
-// Mixin for generating button backgrounds
-// ---------------------------------------
-.buttonBackground(@startColor, @endColor) {
- // gradientBar will set the background to a pleasing blend of these, to support IE<=9
- .gradientBar(@startColor, @endColor);
- .reset-filter();
-
- // in these cases the gradient won't cover the background, so we override
- &:hover, &:active, &.active, &.disabled, &[disabled] {
- background-color: @endColor;
- border-bottom: 1px solid darken(@endColor, 15%);
- }
-
- // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
- &:active,
- &.active {
- background-color: darken(@endColor, 10%) e("\9");
- }
-}
-
-// Box sizing
-.box-sizing(@boxmodel) {
- -webkit-box-sizing: @boxmodel;
- -moz-box-sizing: @boxmodel;
- box-sizing: @boxmodel;
-}
-
-// Vertical centering of an element
-.verticalCentering {
- position: absolute;
- top:0;
- bottom:0;
- margin: auto;
-}
31 bottlecap/layouts/popper/static/css/elements/actions.less
View
@@ -1,31 +0,0 @@
-ul.actionsMenu {
- display: none;
-}
-
-@media only screen and (min-width: 768px) {
- ul.actionsMenu {
- display: block;
- margin-top: 0.134em;
- margin-bottom: 0.677em;
- font-size: 0.9em;
- // position: absolute;
- // z-index: 1;
- // top: 0;
- // right: 0;
- position: relative;
- .horList(right);
- padding: 0;
- margin: 0;
- width: auto;
- height: auto;
- .smaller();
- // .clearfix();
- > li {
- float: left;
- margin-right: 1px;
- }
- > li > a {
- color: @grayDark;
- }
- }
-}
42 bottlecap/layouts/popper/static/css/elements/badges.less
View
@@ -1,42 +0,0 @@
-// BADGES
-// ------
-
-// Base
-.badge {
- padding: 1px 9px 2px;
- font-size: @baseFontSize * .925;
- font-weight: bold;
- white-space: nowrap;
- color: @white;
- background-color: @grayLight;
- .border-radius(9px);
-}
-
-// Hover state
-.badge:hover {
- color: @white;
- text-decoration: none;
- cursor: pointer;
-}
-
-// Colors
-.badge-error { background-color: @errorText; }
-.badge-error:hover { background-color: darken(@errorText, 10%); }
-
-.badge-warning { background-color: @orange; }
-.badge-warning:hover { background-color: darken(@orange, 10%); }
-
-.badge-success { background-color: @successText; }
-.badge-success:hover { background-color: darken(@successText, 10%); }
-
-.badge-info { background-color: @infoText; }
-.badge-info:hover { background-color: darken(@infoText, 10%); }
-
-.badge-inverse { background-color: @grayDark; }
-.badge-inverse:hover { background-color: darken(@grayDark, 10%); }
-
-.badge-private { background-color: @errorText; }
-.badge-private:hover { background-color: darken(@errorText, 10%); }
-
-.badge-moderator { background-color: @successText; }
-.badge-moderator:hover { background-color: darken(@successText, 10%); }
155 bottlecap/layouts/popper/static/css/elements/button-groups.less
View
@@ -1,155 +0,0 @@
-// BUTTON GROUPS
-// -------------
-
-
-// Make the div behave like a button
-.btn-group {
- position: relative;
- .clearfix(); // clears the floated buttons
- .ie7-restore-left-whitespace();
-}
-
-// Space out series of button groups
-.btn-group + .btn-group {
- margin-left: 5px;
-}
-
-// Optional: Group multiple button groups together for a toolbar
-.btn-toolbar {
- margin-top: @baseLineHeight / 2;
- margin-bottom: @baseLineHeight / 2;
- .btn-group {
- display: inline-block;
- .ie7-inline-block();
- }
-}
-
-// Float them, remove border radius, then re-add to first and last elements
-.btn-group .btn {
- position: relative;
- float: left;
- margin-left: -1px;
- .border-radius(0);
-}
-// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
-.btn-group .btn:first-child {
- margin-left: 0;
- -webkit-border-top-left-radius: 4px;
- -moz-border-radius-topleft: 4px;
- border-top-left-radius: 4px;
- -webkit-border-bottom-left-radius: 4px;
- -moz-border-radius-bottomleft: 4px;
- border-bottom-left-radius: 4px;
-}
-.btn-group .btn:last-child,
-.btn-group .dropdown-toggle {
- -webkit-border-top-right-radius: 4px;
- -moz-border-radius-topright: 4px;
- border-top-right-radius: 4px;
- -webkit-border-bottom-right-radius: 4px;
- -moz-border-radius-bottomright: 4px;
- border-bottom-right-radius: 4px;
-}
-// Reset corners for large buttons
-.btn-group .btn.large:first-child {
- margin-left: 0;
- -webkit-border-top-left-radius: 6px;
- -moz-border-radius-topleft: 6px;
- border-top-left-radius: 6px;
- -webkit-border-bottom-left-radius: 6px;
- -moz-border-radius-bottomleft: 6px;
- border-bottom-left-radius: 6px;
-}
-.btn-group .btn.large:last-child,
-.btn-group .large.dropdown-toggle {
- -webkit-border-top-right-radius: 6px;
- -moz-border-radius-topright: 6px;
- border-top-right-radius: 6px;
- -webkit-border-bottom-right-radius: 6px;
- -moz-border-radius-bottomright: 6px;
- border-bottom-right-radius: 6px;
-}
-
-// On hover/focus/active, bring the proper btn to front
-.btn-group .btn:hover,
-.btn-group .btn:focus,
-.btn-group .btn:active,
-.btn-group .btn.active {
- z-index: 2;
-}
-
-// On active and open, don't show outline
-.btn-group .dropdown-toggle:active,
-.btn-group.open .dropdown-toggle {
- outline: 0;
-}
-
-
-
-// Split button dropdowns
-// ----------------------
-
-// Give the line between buttons some depth
-.btn-group .dropdown-toggle {
- padding-left: 8px;
- padding-right: 8px;
- @shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
- .box-shadow(@shadow);
- *padding-top: 5px;
- *padding-bottom: 5px;
-}
-
-.btn-group.open {
- // IE7's z-index only goes to the nearest positioned ancestor, which would
- // make the menu appear below buttons that appeared later on the page
- *z-index: @zindexDropdown;
-
- // Reposition menu on open and round all corners
- .dropdown-menu {
- display: block;
- margin-top: 1px;
- .border-radius(5px);
- }
-
- .dropdown-toggle {
- background-image: none;
- @shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
- .box-shadow(@shadow);
- }
-}
-
-// Reposition the caret
-.btn .caret {
- margin-top: 7px;
- margin-left: 0;
-}
-.btn:hover .caret,
-.open.btn-group .caret {
- .opacity(100);
-}
-
-
-// Account for other colors
-.btn-primary,
-.btn-danger,
-.btn-info,
-.btn-success {
- .caret {
- border-top-color: @white;
- .opacity(75);
- }
-}
-
-// Small button dropdowns
-.btn-small .caret {
- margin-top: 4px;
-}
-
-/* @group CUSTOM STYLES */
-
-.btn-group.open .dropdown-menu {
- .border-radius(0 0 0.3em 0.3em);
- margin-top: 0;
-}
-
-/* @end */
232 bottlecap/layouts/popper/static/css/elements/buttons.less
View
@@ -1,232 +0,0 @@
-// BUTTON STYLES
-// -------------
-
-
-// Base styles
-// --------------------------------------------------
-
-// Core
-.btn {
- display: inline-block;
- .ie7-inline-block();
- padding: 4px 10px 4px;
- margin-bottom: 0; // For input.btn
- font-family: @fancyFont;
- font-size: @baseFontSize;
- line-height: @baseLineHeight;
- color: @grayDark;
- text-align: center;
- vertical-align: middle;
- .buttonBackground(@btnBackground, @btnBackgroundHighlight);
- text-shadow: 0 1px 1px rgba(255,255,255,.75);
- border: 1px solid @btnBorder;
- border-bottom-color: darken(@btnBorder, 10%);
- .border-radius(4px);
- @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
- .box-shadow(@shadow);
- cursor: pointer;
-
- // Give IE7 some love
- .ie7-restore-left-whitespace();
- position: relative;
-}
-
-// Hover state
-.btn:hover {
- color: @grayDark;
- text-decoration: none;
- background-color: darken(@white, 10%);
- background-position: 0 -15px;
-
- // transition is only when going to hover, otherwise the background
- // behind the gradient (there for IE<=9 fallback) gets mismatched
- .transition(background-position .1s linear);
-}
-
-// Focus state for keyboard and accessibility
-.btn:focus {
- .tab-focus();
-}
-
-// Active state
-.btn.active,
-.btn:active {
- background-image: none;
- @shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
- .box-shadow(@shadow);
- background-color: darken(@white, 10%);
- background-color: darken(@white, 15%) e("\9");
- outline: 0;
-}
-
-// Disabled state
-.btn.disabled,
-.btn[disabled] {
- cursor: default;
- background-image: none;
- background-color: darken(@white, 10%);
- .opacity(65);
- .box-shadow(none);
-}
-
-
-// Button Sizes
-// --------------------------------------------------
-
-// Large
-.btn-large {
- padding: 9px 14px;
- font-size: @baseFontSize + 2px;
- line-height: normal;
- .border-radius(5px);
-}
-.btn-large [class^="icon-"] {
- margin-top: 1px;
-}
-
-// Small
-.btn-small {
- padding: 5px 9px;
- font-size: @baseFontSize - 2px;
- line-height: @baseLineHeight - 2px;
-}
-.btn-small [class^="icon-"] {
- margin-top: -1px;
-}
-
-// Mini
-.btn-mini {
- padding: 2px 6px;
- font-size: @baseFontSize - 2px;
- line-height: @baseLineHeight - 4px;
-}
-
-
-// Alternate buttons
-// --------------------------------------------------
-
-// Set text color
-// -------------------------
-.btn-primary,
-.btn-primary:hover,
-.btn-actions,
-.btn-actions:hover,
-.btn-warning,
-.btn-warning:hover,
-.btn-danger,
-.btn-danger:hover,
-.btn-success,
-.btn-success:hover,
-.btn-info,
-.btn-info:hover,
-.btn-inverse,
-.btn-inverse:hover {
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
- color: @white;
-}
-// Provide *some* extra contrast for those who can get it
-.btn-primary.active,
-.btn-actions.active,
-.btn-warning.active,
-.btn-danger.active,
-.btn-success.active,
-.btn-info.active,
-.btn-inverse.active {
- color: rgba(255,255,255,.75);
-}
-
-// Set the backgrounds
-// -------------------------
-.btn-primary {
- .buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
-}
-// Warning appears are orange
-.btn-warning {
- .buttonBackground(@btnWarningBackground, @btnWarningBackgroundHighlight);
-}
-// Danger and error appear as red
-.btn-danger {
- .buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
-}
-// Success appears as green
-.btn-success {
- .buttonBackground(@btnSuccessBackground, @btnSuccessBackgroundHighlight);
-}
-// Info appears as a neutral blue
-.btn-info {
- .buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
-}
-// Inverse appears as dark gray
-.btn-inverse {
- .buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
-}
-
-
-// Cross-browser Jank
-// --------------------------------------------------
-
-button.btn,
-input[type="submit"].btn {
-
- // Firefox 3.6 only I believe
- &::-moz-focus-inner {
- padding: 0;
- border: 0;
- }
-
- // IE7 has some default padding on button controls
- *padding-top: 2px;
- *padding-bottom: 2px;
- &.btn-large {
- *padding-top: 7px;
- *padding-bottom: 7px;
- }
- &.btn-small {
- *padding-top: 3px;
- *padding-bottom: 3px;
- }
- &.btn-mini {
- *padding-top: 1px;
- *padding-bottom: 1px;
- }
-}
-
-/* @group CUSTOM STYLES */
-
-.btn {
- @color: darken(@white, 10%);
- border-width: 1px solid #ccc;
- border-style: solid;
- border-color: @color @color darken(@color, 15%);
- .border-radius(.3em);
-}
-.btn-primary {
- @color: spin(@primaryButtonBackground, 20);
- border-color: @color @color darken(@color, 15%);
-}
-.btn-actions, .btn-actions:hover, .btn-actions:active {
- background-image: url("../img/cog_section.png");
- background-position: 50% 50%;
- background-repeat: no-repeat;
- text-indent: -999em;
- overflow: hidden;
- width: 20px;
-}
-.btn-warning {
- @color: @orange;
- border-color: @color @color darken(@color, 15%);
-}
-.btn-danger {
- @color: @alertColor;
- .buttonBackground(@alertColor, darken(@alertColor, 26%));
-/* border-color: @color @color darken(@color, 15%);*/
-}
-.btn-success {
- @color: #51a351;
- border-color: @color @color darken(@color, 15%);
-}
-.btn-info {
- @color: @infoColor;
- .buttonBackground(@infoColor, darken(@infoColor, 13%));
-}
-/* @end */
400 bottlecap/layouts/popper/static/css/elements/dropdowns.less
View
@@ -1,400 +0,0 @@
-/*li[data-quickpanel='quickpanel'],
-div[data-quickpanel='quickpanel'] {
- position: relative;
-}
-.dropdown-toggle {
- padding-right: 1.3em;
-}
-.dropdown {
- display: none;
- width: 100%;
- ul {
- clear: none;
- margin-bottom: (@space * 1em);
- list-style: disc;
- list-style-position: inside;
- }
- a {
- display: block;
- color: @baseColor2;
- padding: (@space * 1em)/4 0;
- line-height: 2.369em;
- }
-}
-.open .dropdown {
- display: block;
-}
-.dropdown-toggle:hover {
- cursor: pointer;
-}
-
-@media only screen and (min-width: 640px) {
- .dropdown-toggle {
- position: relative;
- .quickpanelToggle(#fff);
- }
- .ie8 .dropdown-toggle:after {
- font-size: 0;
- }
- .dropdown {
- position: absolute;
- left: 0;
- top: 3.2em;
- z-index: 10;
- width: 100%;
- .css3_box_sizing(border-box);
- margin: 0;
- padding: (@space * 1em);
- .css3_linear_gradient(#000, #333);
- border-width: 0 1px 1px;
- color: #fff;
- font-family: @smallestbaseFont;
- font-size: .75em; /* for IE, older Opera, Opera mobile, etc *!/
- font-size: .75rem; /* for contemporary browsers *!/
- .css3_box_shadow(1px 1px 10px rgba(50,50,50,.8));
- .css3_border_radius(0 0 0.3em 0.3em);
- ul {
- background: transparent;
- }
- li {
- display: list-item;
- float: none;
- }
- a {
- display: inline;
- color: lighten(@baseColor4, 10%);
- padding: 0;
- line-height: normal;
- font-size: 1em;
- background: transparent;
- text-decoration: underline;
- &:hover {
- text-decoration: none;
- color: lighten(@baseColor2, 10%);
- }
- }
- figure {
- float: left;
- margin: 0 (@space * 1em) (@space * 1em) 0;
- }
- }
- .dropdown-footer {
- border-top: 1px solid #222;
- padding: 0;
- margin-top: (@space * 1em)/2;
- padding-top: (@space * 1em)/2;
- position: relative;
- &:before {
- content: "";
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- font-size: 0;
- height: 1px;
- width: 100%;
- background: #444;
- }
- }
- .open .quickpanel,
- .touch .open .dropdown,
- .no-touch li[data-quickpanel='dropdown']:hover > .dropdown {
- display: block !important;
- }
-
-}
-
-@media only screen and (min-width: 768px) {
- .dropdown {
- width: 300px;
- }
- .rtl .dropdown {
- left: auto;
- right: 0;
- }
-}
-
-@media only screen and (min-width: 1024px) {
- .dropdown {
- width: 400px;
- }
-}*/
-
-// DROPDOWN MENUS
-// --------------
-
-// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
-.dropdown {
- position: relative;
-}
-.dropdown-toggle {
- // The caret makes the toggle a bit too tall in IE7
- *margin-bottom: -3px;
-}
-.dropdown-toggle:active,
-.open .dropdown-toggle {
- outline: 0;
-}
-// Dropdown arrow/caret
-.caret {
- display: inline-block;
- width: 0;
- height: 0;
- text-indent: -99999px;
- // IE7 won't do the border trick if there's a text indent, but it doesn't
- // do the content that text-indent is hiding, either, so we're ok.
- *text-indent: 0;
- vertical-align: top;
- border-left: 4px solid transparent;
- border-right: 4px solid transparent;
- border-top: 4px solid @black;
- .opacity(30);
- content: "\2193";
-}
-.dropdown .caret {
- margin-top: 8px;
- margin-left: 2px;
-}
-.dropdown:hover .caret,
-.open.dropdown .caret {
- .opacity(100);
-}
-// The dropdown menu (ul)
-.dropdown-menu {
- position: absolute;
- top: 100%;
- left: 0;
- z-index: @zindexDropdown;
- float: left;
- display: none; // none by default, but block on "open" of the menu
- min-width: 160px;
- max-width: 220px;
- _width: 160px;
- padding: 4px 0;
- margin: 0; // override default ul
- list-style: none;
- background-color: @white;
- border-color: #ccc;
- border-color: rgba(0,0,0,.2);
- border-style: solid;
- border-width: 1px;
- .border-radius(0 0 5px 5px);
- .box-shadow(0 5px 10px rgba(0,0,0,.2));
- -webkit-background-clip: padding-box;
- -moz-background-clip: padding;
- background-clip: padding-box;
- *border-right-width: 2px;
- *border-bottom-width: 2px;
-
- // Allow for dropdowns to go bottom up (aka, dropup-menu)
- &.bottom-up {
- top: auto;
- bottom: 100%;
- margin-bottom: 2px;
- }
-
- // Dividers (basically an hr) within the dropdown
- .divider {
- height: 1px;
- margin: 5px 1px;
- overflow: hidden;
- background-color: #e5e5e5;
- border-bottom: 1px solid @white;
-
- // IE7 needs a set width since we gave a height. Restricting just
- // to IE7 to keep the 1px left/right space in other browsers.
- // It is unclear where IE is getting the extra space that we need
- // to negative-margin away, but so it goes.
- *width: 100%;
- *margin: -5px 0 5px;
- }
-
- // Links within the dropdown menu
- a {
- display: block;
- padding: 3px 15px;
- clear: both;
- font-weight: normal;
- line-height: 18px;
- color: @grayLight;
- white-space: nowrap;
- }
-}
-
-// Hover state
-.dropdown-menu li > a:hover,
-.dropdown-menu .active > a,
-.dropdown-menu .active > a:hover {
- color: @white;
- text-decoration: none;
- background-color: @linkColor;
-}
-
-// Open state for the dropdown
-.dropdown.open {
- // IE7's z-index only goes to the nearest positioned ancestor, which would
- // make the menu appear below buttons that appeared later on the page
- *z-index: @zindexDropdown;
-
- .dropdown-toggle {
- color: @white;
- background: #ccc;
- background: rgba(0,0,0,.3);
- }
- .dropdown-menu {
- display: block;
- }
-}
-
-// Typeahead
-.typeahead {
- margin-top: 2px; // give it some space to breathe
- .border-radius(4px);
-}
-
-/* @group CUSTOM STYLES */
-
-.open .dropdown-menu {
- display: block;
-}
-.dropdown-toggle:hover {
- cursor: pointer;
-}
-.dropdown-menu {
- .border-radius(0 0 0.3em 0.3em);
-}
-.moreToggle + .dropdown-menu {
- width: 100%;
- min-width: 100%;
- border: none;
- ul {
- clear: none;
- margin-bottom: (@space * 1em);
- margin-left: 0;
- padding-left: 0;
- list-style: disc;
- list-style-position: inside;
- li {
- list-style: disc;
- list-style-position: inside;
- }
- }
- a {
- display: inline;
- padding: (@space * 1em)/4 0;
- line-height: 2.369em;
- }
-}
-
-@media only screen and (min-width: 640px) {
- #top-bar .open,
- .sectionContainer .open,
- .moreToggle + .dropdown-menu {
- background: #000;
- }
- .sectionContainer .btn-group.open {
- background: @baseColor3;
- }
- #top-bar .btn-group .dropdown-toggle,
- .sectionContainer .btn-group .dropdown-toggle {
- .css3_box_shadow(none);
- .css3_border_radius(0 .5em 0 0);
- margin-left: -0.6665em;
- }
- #top-bar .caret,
- .sectionContainer .caret {
- vertical-align: middle;
- }
- .sectionContainer .btn-group.open {
- > a {
- color: @white;
- &.dropdown-toggle {
- background: @baseColor4;
- }
- .caret {
- .opacity(100);
- }
- }
- .dropdown-menu {
- background: @baseColor4;
- }
- }
-
- .moreToggle + .dropdown-menu {
- left: 0;
- top: 3.2em;
- z-index: 10;
- width: 100%;
- min-width: 100%;
- .css3_box_sizing(border-box);
- margin: 0;
- padding: (@space * 1em);
- .css3_linear_gradient(#000, #333);
- color: #fff;
- font-family: @smallestbaseFont;
- font-size: .75em;
- font-size: .75rem;
- .css3_box_shadow(1px 1px 10px rgba(50,50,50,.8));
- ul {
- background: transparent;
- }
- li {
- display: list-item;
- float: none;
- border: none;
- }
- a {
- padding: 0;
- line-height: normal;
- font-size: 1em;
- background: transparent;
- text-decoration: underline;
- &:hover {
- text-decoration: none;
- color: lighten(@baseColor2, 10%);
- }
- }
- figure {
- float: left;
- margin: 0 (@space * 1em) (@space * 1em) 0;
- }
- }
- .dropdown-footer {
- border-top: 1px solid #222;
- padding: 0;
- margin-top: (@space * 1em)/2;
- padding-top: (@space * 1em)/2;
- position: relative;
- &:before {
- content: "";
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- font-size: 0;
- height: 1px;
- width: 100%;
- background: #444;
- }
- }
-}
-@media only screen and (min-width: 768px) {
- .moreToggle + .dropdown-menu {
- width: 300px;
- min-width: 300px;
- }
- #top-bar .rtl .dropdown-menu,
- .sectionContainer .rtl .dropdown-menu {
- left: auto;
- right: 0;
- }
-}
-
-@media only screen and (min-width: 1024px) {
- .moreToggle + .dropdown-menu {
- width: 400px;
- min-width: 400px;
- }
-}
-
-/* @end */
533 bottlecap/layouts/popper/static/css/elements/forms.less
View
@@ -1,533 +0,0 @@
-// Forms.less
-// Base styles for various input types, form layouts, and states
-// -------------------------------------------------------------
-
-
-// GENERAL STYLES
-// --------------
-
-// Make all forms have space below them
-form {
- margin: 0 0 @baseLineHeight;
-}
-
-fieldset {
- padding: 0;
- margin: 0;
- border: 0;
-}
-
-// Groups of fields with labels on top (legends)
-legend {
- display: block;
- width: 100%;
- padding: 0;
- margin-bottom: @baseLineHeight * 1.5;
- font-family: @fancyFont;
- font-size: 1.185em;
- color: @grayDark;
- border: 0;
-}
-
-// Set font for forms
-label,
-input,
-button,
-select,
-textarea {
- #font > .sans-serif(@baseFontSize,normal,@baseLineHeight);
-}
-
-// Identify controls by their labels
-label {
- display: block;
- margin-bottom: 5px;
- color: @grayDark;
-}
-
-// Inputs, Textareas, Selects
-input,
-textarea,
-select,
-.uneditable-input {
- display: inline-block;
- width: 270px;
- height: @baseLineHeight;
- padding: 4px;
- margin-bottom: 9px;
- font-size: @baseFontSize;
- line-height: @baseLineHeight;
- color: @gray;
- border: 1px solid #ccc;
- .border-radius(3px);
-}
-.uneditable-textarea {
- width: auto;
- height: auto;
-}
-
-// Inputs within a label
-label input,
-label textarea,
-label select {
- display: block;
-}
-
-// Mini reset for unique input types
-input[type="image"],
-input[type="checkbox"],
-input[type="radio"] {
- width: auto;
- height: auto;
- padding: 0;
- margin: 3px 0;
- *margin-top: 0; /* IE7 */
- line-height: normal;
- border: 0;
- cursor: pointer;
- .border-radius(0);
-}
-
-// Reset the file input to browser defaults
-input[type="file"] {
- padding: initial;
- line-height: initial;
- border: initial;
- background-color: @white;
- background-color: initial;
- .box-shadow(none);
-}
-
-// Help out input buttons
-input[type="button"],
-input[type="reset"],
-input[type="submit"] {
- width: auto;
- height: auto;
-}
-
-// Set the height of select and file controls to match text inputs
-select,
-input[type="file"] {
- height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
- *margin-top: 4px; /* For IE7, add top margin to align select with labels */
- line-height: 28px;
-}
-
-// Chrome on Linux and Mobile Safari need background-color
-select {
- width: 270px; // default input width + 10px of padding that doesn't get applied
- background-color: @white;
-}
-
-// Make multiple select elements height not fixed
-select[multiple],
-select[size] {
- height: auto;
-}
-
-// Remove shadow from image inputs
-input[type="image"] {
- .box-shadow(none);
-}
-
-// Make textarea height behave