Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #40 from aldryn/feature/fixes
Browse files Browse the repository at this point in the history
Staticfile adaptions
  • Loading branch information
FinalAngel committed Nov 10, 2015
2 parents feab5f3 + c7edc14 commit 859212c
Show file tree
Hide file tree
Showing 32 changed files with 1,165 additions and 181 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
language: python
18 changes: 9 additions & 9 deletions aldryn_bootstrap3/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def icon_src(self, instance):
plugin_pool.register_plugin(Bootstrap3ButtonCMSPlugin)


class Bootstrap3ImageCMSPlugin(widgets.BootstrapMediaMixin, CMSPluginBase):
class Bootstrap3ImageCMSPlugin(CMSPluginBase):
model = models.Boostrap3ImagePlugin
name = _("Image")
module = _('Bootstrap3')
Expand Down Expand Up @@ -462,7 +462,7 @@ def render(self, context, instance, placeholder):
########


class Bootstrap3RowCMSPlugin(widgets.BootstrapMediaMixin, CMSPluginBase):
class Bootstrap3RowCMSPlugin(CMSPluginBase):
model = models.Bootstrap3RowPlugin
name = _('Row')
module = _('Bootstrap3')
Expand Down Expand Up @@ -517,7 +517,7 @@ def save_model(self, request, obj, form, change):
return response


class Bootstrap3ColumnCMSPlugin(CMSPluginBase, widgets.BootstrapMediaMixin):
class Bootstrap3ColumnCMSPlugin(CMSPluginBase):
model = models.Bootstrap3ColumnPlugin
name = _('Column')
module = _('Bootstrap3')
Expand Down Expand Up @@ -556,7 +556,7 @@ class Bootstrap3ColumnCMSPlugin(CMSPluginBase, widgets.BootstrapMediaMixin):
#############


class Bootstrap3AccordionCMSPlugin(CMSPluginBase, widgets.BootstrapMediaMixin):
class Bootstrap3AccordionCMSPlugin(CMSPluginBase):
model = models.Bootstrap3AccordionPlugin
name = _('Accordion')
module = _('Bootstrap3')
Expand Down Expand Up @@ -587,7 +587,7 @@ def render(self, context, instance, placeholder):
return context


class Bootstrap3AccordionItemCMSPlugin(CMSPluginBase, widgets.BootstrapMediaMixin):
class Bootstrap3AccordionItemCMSPlugin(CMSPluginBase):
model = models.Bootstrap3AccordionItemPlugin
name = _('Accordion item')
module = _('Accordion')
Expand Down Expand Up @@ -628,7 +628,7 @@ def render(self, context, instance, placeholder):
#############


class Bootstrap3ListGroupCMSPlugin(CMSPluginBase, widgets.BootstrapMediaMixin):
class Bootstrap3ListGroupCMSPlugin(CMSPluginBase):
model = models.Bootstrap3ListGroupPlugin
name = _('List Group')
module = _('Bootstrap3')
Expand Down Expand Up @@ -658,7 +658,7 @@ def render(self, context, instance, placeholder):
return context


class Bootstrap3ListGroupItemCMSPlugin(CMSPluginBase, widgets.BootstrapMediaMixin):
class Bootstrap3ListGroupItemCMSPlugin(CMSPluginBase):
model = models.Bootstrap3ListGroupItemPlugin
name = _('List Group Item')
module = _('Bootstrap3')
Expand Down Expand Up @@ -704,11 +704,11 @@ def render(self, context, instance, placeholder):


# Base Classes
class CarouselBase(CMSPluginBase, widgets.BootstrapMediaMixin):
class CarouselBase(CMSPluginBase):
module = _('Bootstrap3')


class CarouselSlideBase(CarouselBase, widgets.BootstrapMediaMixin):
class CarouselSlideBase(CarouselBase):
require_parent = True
parent_classes = ['Bootstrap3CarouselCMSPlugin']

Expand Down
57 changes: 57 additions & 0 deletions aldryn_bootstrap3/static/aldryn_bootstrap3/css/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
@charset "utf-8";
/*!
* @copyright: https://github.com/divio/django-cms
*/

/*##############################################################################
// BASE */

/* set visibility of "Advanced (Show)" button */
.collapse {
visibility: visible !important;
display: block;
}

/*##############################################################################
// CONTEXT WIDGET */
/* used in aldryn_bootstrap3/widgets/context.html */
.aldryn-bootstrap3-context {
margin-left: 3px;
}
.aldryn-bootstrap3-context label {
position: relative !important;
z-index: 1 !important;
}
.aldryn-bootstrap3-context label.active {
z-index: 10 !important;
outline: 3px solid #000;
border-radius: 0;
}
.aldryn-bootstrap3-context label.btn-link {
border-color: #ccc;
}

/*##############################################################################
// ICON WIDGET */
.aldryn-bootstrap3-icon select.form-control {
width: auto !important;
}
.aldryn-bootstrap3-icon .search-control {
}

.iconpicker-popover .search-control {
width: 100% !important;
}
.iconpicker-popover table tfoot tr td {
padding-top: 10px;
border-top: 0;
background: none;
}
.iconpicker-popover .page-count {
display: inline-block;
padding-top: 8px;
}
/* the first entry uses ".glyphicon-" to deselect any icons */
.iconpicker-popover .glyphicon- {
width: 14px;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*!
* Bootstrap-iconpicker v1.7.0
*
* Copyright 2013-2015 Victor Valencia Rico.
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @recktoner.
*/.iconpicker .caret{margin-left:10px!important}.iconpicker{min-width:60px}.iconpicker input.search-control{margin-bottom:6px;margin-top:6px}div.iconpicker.left .table-icons{margin-right:auto}div.iconpicker.center .table-icons{margin-left:auto;margin-right:auto}div.iconpicker.right .table-icons{margin-left:auto}.table-icons .btn{min-height:30px;min-width:35px;text-align:center;padding:0;margin:2px}.table-icons td{min-width:39px}.popover{max-width:inherit!important}.iconpicker-popover{z-index:1050!important}.iconpicker-popover .search-control{margin-bottom:6px;margin-top:6px}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 859212c

Please sign in to comment.