Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move people specific styles from plonetheme.onegov to this package. #48

Merged
merged 1 commit into from Oct 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/HISTORY.rst
Expand Up @@ -5,7 +5,8 @@ Changelog
0.33 (unreleased)
~~~~~~~~~~~~~~~~~

Nothing yet.
- Move people specific styles from plonetheme.onegov to this package.
[lknoepfel]

0.32 (2015-10-08)
~~~~~~~~~~~~~~~~~
Expand Down
6 changes: 6 additions & 0 deletions seantis/people/configure.zcml
Expand Up @@ -7,6 +7,7 @@
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:theme="http://namespaces.zope.org/plonetheme.onegov"
i18n_domain="seantis.people"
>

Expand Down Expand Up @@ -82,4 +83,9 @@
name="plone.formwidget.datetime.z3cform.widget.DatetimeWidget"
/>

<configure zcml:condition="installed plonetheme.onegov">
<include package="plonetheme.onegov" />
<theme:add_scss path="scss/people.scss" />
</configure>

</configure>
142 changes: 142 additions & 0 deletions seantis/people/scss/people.scss
@@ -0,0 +1,142 @@
/* @group seantis.people */

/* @group list filter */
.portaltype-seantis-people-list {

.people-list th span:after {
content: ' / '
}

.people-list th span:last-child:after {
content: ''
}

.people-letters {
a.selected-letter,
a:hover {
@include boxshadow(0 0 .2em darken($highlight-color-light, 50%));
}
}

.filter-tag {
font-weight: bold;
}

.filter-reset {
margin-bottom: 0.5em;
display: block;
}

.filter-reset:before {
content: '»';
}
}
/* @end */

/* @group list person details */
.person-details {

.person-detail {
margin-bottom: 1em;

h2 {
font-size: 1em;
margin: 0;
}

div {
max-width: $page-fixed-width / 2;
}

}

.person-memberships ul {
list-style: none;
padding-left: 0;
}

}

.person-details-left.splitscreen {
float: left;
padding-right: 2em;
max-width: 50%;
}
.person-details-right.splitscreen {
float: right;
}
.person-details-bottom.splitscreen {
clear: both;
}

#content .person-wrapper {
display: table;
margin-top: 1em;

.person-navigation {
height: 2.3em;
min-width: 250px;
//border-top: 1px solid $lightgray2;
border-bottom: 1px solid $lightgray2;
}

.person-navigation .previous {
float: left;
background: none;
margin-top: 2px;
}

.person-navigation a.next {
float: right;
background: none;
margin-top: 2px;
}
}

@media screen and (max-width: 797px) {
#content .person-wrapper {
display: block;
width: 100%;
}
}
/* @end */

/* @end */

/* @group seantis.kantonsrat (builds on seantis.people) */
.kantonsrat-memberships {
ul {
list-style: none;
padding-left: 0;

li {
margin-bottom: 0.5em;
}
}

.kantonsrat-url,
.kantonsrat-role,
.kantonsrat-state,
.kantonsrat-actions {
float: left;
margin-right: 0.25em;
}

.kantonsrat-timespan,
.kantonsrat-replacement_for,
.kantonsrat-note {
color: $darkgray;
}

.kantonsrat-state:before {
content: "↳";
}

.kantonsrat-actions a {
display: inline-block;
border-left: 1px solid $darkgray;
padding-left: 0.25em;
line-height: 1em;
}
}
/* @end */