-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
237 changed files
with
25,173 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import markdown | ||
from django.shortcuts import render | ||
|
||
from .models import NewsObject | ||
|
||
|
||
def news(request): | ||
news_objects = NewsObject.objects.all().order_by("-created_on") | ||
return render(request, "portal/news.html", locals()) | ||
for news in news_objects: | ||
news.body_html = markdown.markdown(news.body) | ||
return render(request, "news/news.html", {"news_objects": news_objects}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2011-2019 Twitter, Inc. | ||
Copyright (c) 2011-2019 The Bootstrap Authors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
@mixin admonition_colors_default($color) { | ||
color: darken($color, 40%); | ||
background-color: lighten($color, 25%); | ||
border-color: $color; | ||
} | ||
|
||
@mixin admon-color($background, $border, $color) { | ||
color: $color; | ||
@include gradient-bg($background); | ||
border-color: $border; | ||
|
||
hr { | ||
border-top-color: darken($border, 5%); | ||
} | ||
|
||
.alert-link { | ||
color: darken($color, 10%); | ||
} | ||
} | ||
|
||
.admonition { | ||
padding: 0 15px; | ||
margin-bottom: 20px; | ||
border: 1px solid transparent; | ||
border-radius: 4px; | ||
text-align: left; | ||
@include admonition_colors_default($gray-600); | ||
&-title { | ||
font-weight: bold; | ||
text-align: left; | ||
} | ||
&.primary, &.important { | ||
@include admon-color(theme-color-level("primary", $alert-bg-level), | ||
theme-color-level("primary", $alert-border-level), | ||
theme-color-level("primary", $alert-color-level)); | ||
} | ||
&.secondary, &.attention { | ||
@include admon-color(theme-color-level("secondary", $alert-bg-level), | ||
theme-color-level("secondary", $alert-border-level), | ||
theme-color-level("secondary", $alert-color-level)); | ||
} | ||
&.success, &.tip { | ||
@include admon-color(theme-color-level("success", $alert-bg-level), | ||
theme-color-level("success", $alert-border-level), | ||
theme-color-level("success", $alert-color-level)); | ||
} | ||
&.info, &.note, &.hint { | ||
@include admon-color(theme-color-level("info", $alert-bg-level), | ||
theme-color-level("info", $alert-border-level), | ||
theme-color-level("info", $alert-color-level)); | ||
} | ||
&.warning, &.caution { | ||
@include admon-color(theme-color-level("warning", $alert-bg-level), | ||
theme-color-level("warning", $alert-border-level), | ||
theme-color-level("warning", $alert-color-level)); | ||
} | ||
&.danger, &.critical { | ||
@include admon-color(theme-color-level("danger", $alert-bg-level), | ||
theme-color-level("danger", $alert-border-level), | ||
theme-color-level("danger", $alert-color-level)); | ||
} | ||
&.light { | ||
@include admon-color(theme-color-level("light", $alert-bg-level), | ||
theme-color-level("light", $alert-border-level), | ||
theme-color-level("light", $alert-color-level)); | ||
} | ||
&.dark { | ||
@include admon-color(theme-color-level("dark", $alert-bg-level), | ||
theme-color-level("dark", $alert-border-level), | ||
theme-color-level("dark", $alert-color-level)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// Base styles | ||
// | ||
|
||
.alert { | ||
position: relative; | ||
padding: $alert-padding-y $alert-padding-x; | ||
margin-bottom: $alert-margin-bottom; | ||
border: $alert-border-width solid transparent; | ||
@include border-radius($alert-border-radius); | ||
} | ||
|
||
// Headings for larger alerts | ||
.alert-heading { | ||
// Specified to prevent conflicts of changing $headings-color | ||
color: inherit; | ||
} | ||
|
||
// Provide class for links that match alerts | ||
.alert-link { | ||
font-weight: $alert-link-font-weight; | ||
} | ||
|
||
|
||
// Dismissible alerts | ||
// | ||
// Expand the right padding and account for the close button's positioning. | ||
|
||
.alert-dismissible { | ||
padding-right: $close-font-size + $alert-padding-x * 2; | ||
|
||
// Adjust close link position | ||
.close { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
z-index: 2; | ||
padding: $alert-padding-y $alert-padding-x; | ||
color: inherit; | ||
} | ||
} | ||
|
||
|
||
// Alternate styles | ||
// | ||
// Generate contextual modifier classes for colorizing the alert. | ||
|
||
@each $color, $value in $theme-colors { | ||
.alert-#{$color} { | ||
@include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Base class | ||
// | ||
// Requires one of the contextual, color modifier classes for `color` and | ||
// `background-color`. | ||
|
||
.badge { | ||
display: inline-block; | ||
padding: $badge-padding-y $badge-padding-x; | ||
@include font-size($badge-font-size); | ||
font-weight: $badge-font-weight; | ||
line-height: 1; | ||
text-align: center; | ||
white-space: nowrap; | ||
vertical-align: baseline; | ||
@include border-radius($badge-border-radius); | ||
@include transition($badge-transition); | ||
|
||
@at-root a#{&} { | ||
@include hover-focus() { | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
// Empty badges collapse automatically | ||
&:empty { | ||
display: none; | ||
} | ||
} | ||
|
||
// Quick fix for badges in buttons | ||
.btn .badge { | ||
position: relative; | ||
top: -1px; | ||
} | ||
|
||
// Pill badges | ||
// | ||
// Make them extra rounded with a modifier to replace v3's badges. | ||
|
||
.badge-pill { | ||
padding-right: $badge-pill-padding-x; | ||
padding-left: $badge-pill-padding-x; | ||
@include border-radius($badge-pill-border-radius); | ||
} | ||
|
||
// Colors | ||
// | ||
// Contextual variations (linked badges get darker on :hover). | ||
|
||
@each $color, $value in $theme-colors { | ||
.badge-#{$color} { | ||
@include badge-variant($value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.breadcrumb { | ||
display: flex; | ||
flex-wrap: wrap; | ||
padding: $breadcrumb-padding-y $breadcrumb-padding-x; | ||
margin-bottom: $breadcrumb-margin-bottom; | ||
@include font-size($breadcrumb-font-size); | ||
list-style: none; | ||
background-color: $breadcrumb-bg; | ||
@include border-radius($breadcrumb-border-radius); | ||
} | ||
|
||
.breadcrumb-item { | ||
// The separator between breadcrumbs (by default, a forward-slash: "/") | ||
+ .breadcrumb-item { | ||
padding-left: $breadcrumb-item-padding; | ||
|
||
&::before { | ||
float: left; // Suppress inline spacings and underlining of the separator | ||
padding-right: $breadcrumb-item-padding; | ||
color: $breadcrumb-divider-color; | ||
content: escape-svg($breadcrumb-divider); | ||
} | ||
} | ||
|
||
// IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built | ||
// without `<ul>`s. The `::before` pseudo-element generates an element | ||
// *within* the .breadcrumb-item and thereby inherits the `text-decoration`. | ||
// | ||
// To trick IE into suppressing the underline, we give the pseudo-element an | ||
// underline and then immediately remove it. | ||
+ .breadcrumb-item:hover::before { | ||
text-decoration: underline; | ||
} | ||
// stylelint-disable-next-line no-duplicate-selectors | ||
+ .breadcrumb-item:hover::before { | ||
text-decoration: none; | ||
} | ||
|
||
&.active { | ||
color: $breadcrumb-active-color; | ||
} | ||
} |
Oops, something went wrong.