From 1173d88b7a4e2c65e12702573488102ec49932ff Mon Sep 17 00:00:00 2001 From: David THENON Date: Sat, 8 Dec 2012 23:12:58 +0100 Subject: [PATCH] Insert Foundation assets and starting to integrate him in templates --- foundation_theme/.gitignore | 1 + foundation_theme/config.rb | 25 + foundation_theme/scss/_settings.scss | 247 + .../_accessibility_foundicons.scss | 50 + .../_accessibility_foundicons_ie7.scss | 35 + .../scss/icons/accessibility/_settings.scss | 28 + .../icons/general/_general_foundicons.scss | 71 + .../general/_general_foundicons_ie7.scss | 56 + .../scss/icons/general/_settings.scss | 28 + .../_general_enclosed_foundicons.scss | 71 + .../_general_enclosed_foundicons_ie7.scss | 56 + .../icons/general_enclosed/_settings.scss | 28 + .../scss/icons/social/_settings.scss | 28 + .../scss/icons/social/_social_foundicons.scss | 54 + .../icons/social/_social_foundicons_ie7.scss | 39 + foundation_theme/scss/restructuredtext.scss | 156 + foundation_theme/scss/screen.scss | 101 + requirements.txt | 7 +- settings.py | 6 +- templates/applications_toc.html | 28 +- templates/autobreadcrumbs_tag.html | 1 + templates/base.html | 162 +- webapp_statics/css/restructuredtext.css | 168 + webapp_statics/css/screen.css | 6878 ++++++++++++ .../fonts/accessibility_foundicons.eot | Bin 0 -> 15316 bytes .../fonts/accessibility_foundicons.svg | 15 + .../fonts/accessibility_foundicons.ttf | Bin 0 -> 15056 bytes .../fonts/accessibility_foundicons.woff | Bin 0 -> 9188 bytes .../fonts/general_enclosed_foundicons.eot | Bin 0 -> 18912 bytes .../fonts/general_enclosed_foundicons.svg | 15 + .../fonts/general_enclosed_foundicons.ttf | Bin 0 -> 18640 bytes .../fonts/general_enclosed_foundicons.woff | Bin 0 -> 9536 bytes webapp_statics/fonts/general_foundicons.eot | Bin 0 -> 15724 bytes webapp_statics/fonts/general_foundicons.svg | 15 + webapp_statics/fonts/general_foundicons.ttf | Bin 0 -> 15488 bytes webapp_statics/fonts/general_foundicons.woff | Bin 0 -> 9728 bytes webapp_statics/fonts/social_foundicons.eot | Bin 0 -> 17112 bytes webapp_statics/fonts/social_foundicons.svg | 15 + webapp_statics/fonts/social_foundicons.ttf | Bin 0 -> 16880 bytes webapp_statics/fonts/social_foundicons.woff | Bin 0 -> 10644 bytes .../images/foundation/orbit/bullets.jpg | Bin 0 -> 657 bytes .../foundation/orbit/left-arrow-small.png | Bin 0 -> 3163 bytes .../images/foundation/orbit/left-arrow.png | Bin 0 -> 522 bytes .../images/foundation/orbit/loading.gif | Bin 0 -> 2608 bytes .../images/foundation/orbit/mask-black.png | Bin 0 -> 526 bytes .../images/foundation/orbit/pause-black.png | Bin 0 -> 288 bytes .../foundation/orbit/right-arrow-small.png | Bin 0 -> 3169 bytes .../images/foundation/orbit/right-arrow.png | Bin 0 -> 3242 bytes .../images/foundation/orbit/rotator-black.png | Bin 0 -> 536 bytes .../images/foundation/orbit/timer-black.png | Bin 0 -> 526 bytes webapp_statics/images/notices/about.png | Bin 0 -> 453 bytes webapp_statics/images/notices/alert.png | Bin 0 -> 425 bytes webapp_statics/images/notices/announce.png | Bin 0 -> 359 bytes webapp_statics/images/notices/help.png | Bin 0 -> 447 bytes webapp_statics/images/notices/idea.png | Bin 0 -> 431 bytes webapp_statics/images/notices/info.png | Bin 0 -> 296 bytes webapp_statics/images/notices/stop.png | Bin 0 -> 378 bytes webapp_statics/js/foundation/app.js | 38 + webapp_statics/js/foundation/jquery.cookie.js | 72 + .../js/foundation/jquery.event.move.js | 580 + .../js/foundation/jquery.event.swipe.js | 130 + .../foundation/jquery.foundation.accordion.js | 38 + .../js/foundation/jquery.foundation.alerts.js | 20 + .../foundation/jquery.foundation.buttons.js | 83 + .../foundation/jquery.foundation.clearing.js | 413 + .../js/foundation/jquery.foundation.forms.js | 486 + .../foundation/jquery.foundation.joyride.js | 639 ++ .../foundation/jquery.foundation.magellan.js | 86 + .../jquery.foundation.mediaQueryToggle.js | 27 + .../jquery.foundation.navigation.js | 55 + .../js/foundation/jquery.foundation.orbit.js | 914 ++ .../js/foundation/jquery.foundation.reveal.js | 794 ++ .../js/foundation/jquery.foundation.tabs.js | 56 + .../foundation/jquery.foundation.tooltips.js | 194 + .../js/foundation/jquery.foundation.topbar.js | 158 + webapp_statics/js/foundation/jquery.js | 9440 +++++++++++++++++ .../js/foundation/jquery.offcanvas.js | 50 + .../js/foundation/jquery.placeholder.js | 157 + .../js/foundation/modernizr.foundation.js | 4 + 79 files changed, 22724 insertions(+), 94 deletions(-) create mode 100644 foundation_theme/.gitignore create mode 100644 foundation_theme/config.rb create mode 100644 foundation_theme/scss/_settings.scss create mode 100644 foundation_theme/scss/icons/accessibility/_accessibility_foundicons.scss create mode 100644 foundation_theme/scss/icons/accessibility/_accessibility_foundicons_ie7.scss create mode 100644 foundation_theme/scss/icons/accessibility/_settings.scss create mode 100644 foundation_theme/scss/icons/general/_general_foundicons.scss create mode 100644 foundation_theme/scss/icons/general/_general_foundicons_ie7.scss create mode 100644 foundation_theme/scss/icons/general/_settings.scss create mode 100644 foundation_theme/scss/icons/general_enclosed/_general_enclosed_foundicons.scss create mode 100644 foundation_theme/scss/icons/general_enclosed/_general_enclosed_foundicons_ie7.scss create mode 100644 foundation_theme/scss/icons/general_enclosed/_settings.scss create mode 100644 foundation_theme/scss/icons/social/_settings.scss create mode 100644 foundation_theme/scss/icons/social/_social_foundicons.scss create mode 100644 foundation_theme/scss/icons/social/_social_foundicons_ie7.scss create mode 100644 foundation_theme/scss/restructuredtext.scss create mode 100644 foundation_theme/scss/screen.scss create mode 100644 templates/autobreadcrumbs_tag.html create mode 100644 webapp_statics/css/restructuredtext.css create mode 100644 webapp_statics/css/screen.css create mode 100644 webapp_statics/fonts/accessibility_foundicons.eot create mode 100644 webapp_statics/fonts/accessibility_foundicons.svg create mode 100644 webapp_statics/fonts/accessibility_foundicons.ttf create mode 100644 webapp_statics/fonts/accessibility_foundicons.woff create mode 100644 webapp_statics/fonts/general_enclosed_foundicons.eot create mode 100644 webapp_statics/fonts/general_enclosed_foundicons.svg create mode 100644 webapp_statics/fonts/general_enclosed_foundicons.ttf create mode 100644 webapp_statics/fonts/general_enclosed_foundicons.woff create mode 100644 webapp_statics/fonts/general_foundicons.eot create mode 100644 webapp_statics/fonts/general_foundicons.svg create mode 100644 webapp_statics/fonts/general_foundicons.ttf create mode 100644 webapp_statics/fonts/general_foundicons.woff create mode 100644 webapp_statics/fonts/social_foundicons.eot create mode 100644 webapp_statics/fonts/social_foundicons.svg create mode 100644 webapp_statics/fonts/social_foundicons.ttf create mode 100644 webapp_statics/fonts/social_foundicons.woff create mode 100644 webapp_statics/images/foundation/orbit/bullets.jpg create mode 100644 webapp_statics/images/foundation/orbit/left-arrow-small.png create mode 100644 webapp_statics/images/foundation/orbit/left-arrow.png create mode 100644 webapp_statics/images/foundation/orbit/loading.gif create mode 100644 webapp_statics/images/foundation/orbit/mask-black.png create mode 100644 webapp_statics/images/foundation/orbit/pause-black.png create mode 100644 webapp_statics/images/foundation/orbit/right-arrow-small.png create mode 100644 webapp_statics/images/foundation/orbit/right-arrow.png create mode 100644 webapp_statics/images/foundation/orbit/rotator-black.png create mode 100644 webapp_statics/images/foundation/orbit/timer-black.png create mode 100644 webapp_statics/images/notices/about.png create mode 100644 webapp_statics/images/notices/alert.png create mode 100644 webapp_statics/images/notices/announce.png create mode 100644 webapp_statics/images/notices/help.png create mode 100644 webapp_statics/images/notices/idea.png create mode 100644 webapp_statics/images/notices/info.png create mode 100644 webapp_statics/images/notices/stop.png create mode 100644 webapp_statics/js/foundation/app.js create mode 100644 webapp_statics/js/foundation/jquery.cookie.js create mode 100755 webapp_statics/js/foundation/jquery.event.move.js create mode 100755 webapp_statics/js/foundation/jquery.event.swipe.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.accordion.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.alerts.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.buttons.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.clearing.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.forms.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.joyride.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.magellan.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.mediaQueryToggle.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.navigation.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.orbit.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.reveal.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.tabs.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.tooltips.js create mode 100644 webapp_statics/js/foundation/jquery.foundation.topbar.js create mode 100644 webapp_statics/js/foundation/jquery.js create mode 100644 webapp_statics/js/foundation/jquery.offcanvas.js create mode 100644 webapp_statics/js/foundation/jquery.placeholder.js create mode 100644 webapp_statics/js/foundation/modernizr.foundation.js diff --git a/foundation_theme/.gitignore b/foundation_theme/.gitignore new file mode 100644 index 0000000..9ba470d --- /dev/null +++ b/foundation_theme/.gitignore @@ -0,0 +1 @@ +.sass-cache \ No newline at end of file diff --git a/foundation_theme/config.rb b/foundation_theme/config.rb new file mode 100644 index 0000000..6ead4cc --- /dev/null +++ b/foundation_theme/config.rb @@ -0,0 +1,25 @@ +require 'zurb-foundation' +# Require any additional compass plugins here. + +# Set this to the root of your project when deployed: +http_path = "/static/" +sass_dir = "scss" +css_dir = "../webapp_statics/css" +images_dir = "../webapp_statics/images" +javascripts_dir = "../webapp_statics/js" + +# You can select your preferred output style here (can be overridden via the command line): +# output_style = :expanded or :nested or :compact or :compressed +output_style = :expanded + +# To enable relative paths to assets via compass helper functions. Uncomment: +relative_assets = true + +# To disable debugging comments that display the original location of your selectors. Uncomment: +# line_comments = false + +# If you prefer the indented syntax, you might want to regenerate this +# project again passing --syntax sass, or you can uncomment this: +# preferred_syntax = :sass +# and then run: +# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass diff --git a/foundation_theme/scss/_settings.scss b/foundation_theme/scss/_settings.scss new file mode 100644 index 0000000..e797dbd --- /dev/null +++ b/foundation_theme/scss/_settings.scss @@ -0,0 +1,247 @@ +@import "foundation/common/ratios"; + +// Settings file containing Foundation defaults + +// Grid Settings + +// $rowWidth: 1000px; +// $rowWidth: 100%; +// $columnGutter: 30px; +// $totalColumns: 12; +// $mobileTotalColumns: 4; +// $blockGridElements: 12; // Highest number of block grid elements, Maximum of 24 supported + +// Colors Settings + +// $mainColor: #2ba6cb; +// $secondaryColor: #e9e9e9; +// $alertColor: #c60f13; +// $successColor: #5da423; +// $txtColor: #222; +// $highlightColor: #ffff99; +// $black: #000; +// $white: #fff; +// $shinyEdge: rgba(#fff, .5); +// $darkEdge: rgba(#000, .2); + +// Font Settings + +// $fontSmoothing: antialiased; +// $headerFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; +// $headerFontWeight: bold; +// $headerFontStyle: normal; +// $headerFontColor: #222; +// $bodyFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; +// $bodyFontWeight: normal; +// $bodyFontStyle: normal; +// $bodyFontColor: $txtColor; + +// Text Direction Settings + +// $textDirection: ltr; // Controls default global text direction, 'rtl' or 'ltr' + +// Button Settings + +// $buttonRadius: 3px; +// $btnBase: 10px; + +// $tinyBtnBase: $btnBase - 5; +// $smallBtnBase: $btnBase - 3; +// $largeBtnBase: $btnBase + 5; + +// Form Settings + +// $formSpacing: 12px; +// $labelFontWeight: 500; +// $labelFontColor: lighten(#000, 30%); +// $labelBtmMargin: 3px; +// $inputFontColor: rgba(0,0,0,0.75); +// $inputFontSize: 14px; +// $inputBgColor: #fff; +// $inputFocusBgColor: darken(#fff, 2%); +// $inputBorderColor: darken(#fff, 20%); +// $inputFocusBorderColor: darken(#fff, 30%); +// $inputBorderStyle: solid; +// $inputBorderWidth: 1px; +// $inputBorderRadius: 2px; +// $fieldsetBorderRadius: 3px; + +// Custom Form Settings + +// $custFormBorderColor: #ccc; +// $custFormBgColor: #fff; +// $custCheckColor: #222; +// $custSelectCurrentFontColor: #141414; +// $custSelectBgColor: #fff; +// $custSelectBorderColor: #ddd; +// $custSelectTriangleColor: #aaa; +// $custSelectTriangleColorOpen: #222; +// $custSelectDropHeight: 200px; +// $custDropdownBgColor: #fff; +// $custDropdownBorderColor: darken(#fff, 20%); +// $custDropdownFontColor: #555; +// $custDropdownSelectedBgColor: lighten(#2ba6cb, 40%); +// $custDropdownSelectedFontColor: #000; +// $custFormDisabledBgColor: #ddd; + +// Tab Settings + +// $tabHeight: 40px; +// $tabTermFontSize: 12px; + +// Nav Bar Settings + +// $navBarHeight: 40px; +// $navFlyoutBaseWidth: 250px; + +// Top Bar Settings + +// $topBarBgColor: #222; +// $topBarHeight: 45px; +// $topBarHeightMobile: 45px; +$topBarBgColor: #000000; +$topBarHeight: 75px; +$topBarHeightMobile: 75px; +// $topBarBtmMargin: 30px; +// $topBarTitleWeight: bold; +// $topBarTitleSize: 17px; +// $topBarLinkColor: #fff; +// $topBarLinkWeight: bold; +// $topBarLinkSize: 13px; +// $topBarDropBgColor: #222; +// $topBarDropLinkColor: #fff; +// $topBarDropToggleSize: 5px; +// $topBarDropToggleColor: #fff; +// $topBarDropToggleAlpha: 0.5; +// $topBarSearchWidth: 200px; +// $topBarBreakPoint: 940px; // Change to 9999px for always mobile layout +// $topBarNavToggleSize: 8px; + +// UI Settings + +// $thumbRadius: 3px; +// $progBarHeight: 25px; +// $progBarBorderColor: darken(#fff, 20%); +// $progBarBorderSize: 1px; +// $progBarPad: 2px; +// $linkListBottomMargin: 17px -22px; +// $tableBorderRadius: 3px; + +// Tooltip Settings + +// $hasTipBorderBottom: dotted 1px #ccc; +// $hasTipFontWeight: bold; +// $hasTipFontColor: #333; +// $hasTipBorderBottomHover: dotted 1px darken($mainColor, 20%); +// $hasTipFontColorHover: $mainColor; +// $tooltipBackgroundColor: #000; +// $tooltipBackgroundOpacity: 0.85; +// $tooltipFontSize: 12px; +// $tooltipFontWeight: bold; +// $tooltipFontColor: #fff; +// $tapToCloseFontSize: 10; +// $tapToCloseFontWeight: normal; +// $tapToCloseFontColor: #888; +// $tooltipFontSizeScreenSm: 14; +// $tooltipBgOpacityScreenSm: 0.85; +// $tooltipBorderRadius: 4px; + +// Pricing Table Settings + +// $priceTableBorder: solid 1px #ddd; +// $priceTitleBgColor: #ddd; +// $priceTitlePadding: 15px 20px; +// $priceTitleAlign: center; +// $priceTitleColor: #333; +// $priceTitleWeight: bold; +// $priceTitleSize: 16px; + +// $priceMoneyBgColor: #eee; +// $priceMoneyPadding: 15px 20px; +// $priceMoneyAlign: center; +// $priceMoneyColor: #333; +// $priceMoneyWeight: normal; +// $priceMoneySize: 20px; + +// $priceBgColor: #fff; +// $priceDescColor: #777; +// $priceDescPadding: 15px; +// $priceDescAlign: center; +// $priceDescFontSize: 12px; +// $priceDescWeight: normal; +// $priceDescLineHeight: 1.4; +// $priceDescBtmBorder: dotted 1px #ddd; + +// $priceItemColor: #333; +// $priceItemPadding: 15px; +// $priceItemAlign: center; +// $priceItemFontSize: 14px; +// $priceItemWeight: normal; +// $priceItemBtmBorder: dotted 1px #ddd; + +// $priceCtaBgColor: #f5f5f5; +// $priceCtaAlign: center; +// $priceCtaPadding: 20px; + +// Orbit Settings + +// $orbitCaptionBgColorOldBrowser: #000; +// $orbitCaptionBgColor: rgba(0,0,0,.6); +// $orbitCaptionFontColor: #fff; +// $orbitBulletNavColor: #999; +// $orbitBulletNavColorActive: #222; +// $orbitHasThumbBorderColor: #000; +// $orbitHasThumbBorderWidth: 2px; +// $orbitHasThumbBorderStyle: solid; +// $orbitSlideNumBgColor: rgba(0,0,0,0.7); +// $orbitSlideNumFontColor: #fff; +// $orbitSlideNumPadding: 5px; + +// Clearing Settings + +// $clearingBg: rgba(0,0,0,0.8); +// $clearingOldBrowserBg: rgb(0,0,0); +// $clearingCaptionBg: rgba(0,0,0,0.7); +// $clearingCaptionOldBrowserBg: rgb(0,0,0); +// $clearingCaptionFontColor: #fff; +// $clearingCloseColor: #fff; +// $clearingArrowColor: #fff; +// $clearingArrowSize: 16px; +// $clearingCarouselBg: rgba(0,0,0,0.75); +// $clearingCarouselOldBrowserBg: rgb(0,0,0); +// $clearingCarouselHeight: 150px; +// $clearingActiveImgHeight: 75%; +// $clearingCarouselThumbWidth: 175px; +// $clearingCarouselThumbActiveBorder: 4px solid rgb(255,255,255); +// $clearingImgBg: rgba(0,0,0,0.75); +// $clearingImgOldBrowserBg: rgb(0,0,0); + +// Joyride Settings + +// $tipBg: rgba(0,0,0,0.8); +// $tipBgIE8: #000; +// $tipFontColor: #fff; +// $tipHeaderWeight: bold; +// $tipDefaultWidth: 300px; +// $tipBorderRadius: 4px; +// $tipPadding: 18px 20px 24px; +// $tipNubSize: 14px; +// $tipFontSize: 14px; +// $tipTimerWidth: 50px; +// $tipTimerHeight: 3px; +// $tipTimerBorder: solid 1px #555; +// $tipTimerColor: #666; +// $tipCloseColor: #777; +// $tipCloseSize: 20px; +// $tipCloseWeight: normal; +// $tipScreenFill: rgba(0,0,0,0.5); + +// Modular Scale Settings + +// $ratio: $golden; // THIS IS DEFAULT IN MODULAR-SCALE +// $baseFontSize: 14px; +// $importantModNum: 44px; +// $base-size: $baseFontSize $importantModNum; +// Produced the following list of values: 14, 17, 23, 27, 37, 44, 59, 71, 95, 115; +// http://www.modularscale.com by Tim Brown +// https://github.com/scottkellum/modular-scale by scottkellum \ No newline at end of file diff --git a/foundation_theme/scss/icons/accessibility/_accessibility_foundicons.scss b/foundation_theme/scss/icons/accessibility/_accessibility_foundicons.scss new file mode 100644 index 0000000..8d8c45e --- /dev/null +++ b/foundation_theme/scss/icons/accessibility/_accessibility_foundicons.scss @@ -0,0 +1,50 @@ +@import "settings"; + +/* font-face */ +@include face; + +/* global foundicon styles */ +[class*="#{$classPrefix}"] { + display: inline; + width: auto; + height: auto; + line-height: inherit; + vertical-align: baseline; + background-image: none; + background-position: 0 0; + background-repeat: repeat; +} +[class*="#{$classPrefix}"]:before { + font-family: $fontName; + font-weight: normal; + font-style: normal; + text-decoration: inherit; +} + +/* icons */ +@include i-class(wheelchair,"000"); +@include i-class(speaker,"001"); +@include i-class(fontsize,"002"); +@include i-class(eject,"003"); +@include i-class(view-mode,"004"); +@include i-class(eyeball,"005"); +@include i-class(asl,"006"); +@include i-class(person,"007"); +@include i-class(question,"008"); +@include i-class(adult,"009"); +@include i-class(child,"00a"); +@include i-class(glasses,"00b"); +@include i-class(cc,"00c"); +@include i-class(blind,"00d"); +@include i-class(braille,"00e"); +@include i-class(iphone-home,"00f"); +@include i-class(w3c,"010"); +@include i-class(css,"011"); +@include i-class(key,"012"); +@include i-class(hearing-impaired,"013"); +@include i-class(male,"014"); +@include i-class(female,"015"); +@include i-class(network,"016"); +@include i-class(guidedog,"017"); +@include i-class(universal-access,"018"); +@include i-class(elevator,"019"); \ No newline at end of file diff --git a/foundation_theme/scss/icons/accessibility/_accessibility_foundicons_ie7.scss b/foundation_theme/scss/icons/accessibility/_accessibility_foundicons_ie7.scss new file mode 100644 index 0000000..a0df1a9 --- /dev/null +++ b/foundation_theme/scss/icons/accessibility/_accessibility_foundicons_ie7.scss @@ -0,0 +1,35 @@ +@import "settings"; + +/* general icons for IE7 */ +[class*="#{$classPrefix}"] { + font-family: $fontName; + font-weight: normal; + font-style: normal; +} + +@include ie-class(wheelchair,"000"); +@include ie-class(speaker,"001"); +@include ie-class(fontsize,"002"); +@include ie-class(eject,"003"); +@include ie-class(view-mode,"004"); +@include ie-class(eyeball,"005"); +@include ie-class(asl,"006"); +@include ie-class(person,"007"); +@include ie-class(question,"008"); +@include ie-class(adult,"009"); +@include ie-class(child,"00a"); +@include ie-class(glasses,"00b"); +@include ie-class(cc,"00c"); +@include ie-class(blind,"00d"); +@include ie-class(braille,"00e"); +@include ie-class(iphone-home,"00f"); +@include ie-class(w3c,"010"); +@include ie-class(css,"011"); +@include ie-class(key,"012"); +@include ie-class(hearing-impaired,"013"); +@include ie-class(male,"014"); +@include ie-class(female,"015"); +@include ie-class(network,"016"); +@include ie-class(guidedog,"017"); +@include ie-class(universal-access,"018"); +@include ie-class(elevator,"019"); \ No newline at end of file diff --git a/foundation_theme/scss/icons/accessibility/_settings.scss b/foundation_theme/scss/icons/accessibility/_settings.scss new file mode 100644 index 0000000..8e5cf9a --- /dev/null +++ b/foundation_theme/scss/icons/accessibility/_settings.scss @@ -0,0 +1,28 @@ +$fontFileName: "../fonts/accessibility_foundicons"; +$fontName: "AccessibilityFoundicons"; +$classPrefix: "foundicon-"; + +@mixin i-class($name,$pua) { + .#{$classPrefix}#{$name}:before { + content: "\f#{$pua}"; + } +} + +@mixin ie-class($name,$pua) { + .#{$classPrefix}#{$name} { + *zoom: expression( this.runtimeStyle['zoom'] = "1", this.innerHTML = "#{$pua};"); + } +} + +@mixin face { + @font-face { + font-family: $fontName; + src: url('#{$fontFileName}.eot'); + src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'), + url('#{$fontFileName}.woff') format('woff'), + url('#{$fontFileName}.ttf') format('truetype'), + url('#{$fontFileName}.svg##{$fontName}') format('svg'); + font-weight: normal; + font-style: normal; + } +} \ No newline at end of file diff --git a/foundation_theme/scss/icons/general/_general_foundicons.scss b/foundation_theme/scss/icons/general/_general_foundicons.scss new file mode 100644 index 0000000..3070854 --- /dev/null +++ b/foundation_theme/scss/icons/general/_general_foundicons.scss @@ -0,0 +1,71 @@ +@import "settings"; + +/* font-face */ +@include face; + +/* global foundicon styles */ +[class*="#{$classPrefix}"] { + display: inline; + width: auto; + height: auto; + line-height: inherit; + vertical-align: baseline; + background-image: none; + background-position: 0 0; + background-repeat: repeat; +} +[class*="#{$classPrefix}"]:before { + font-family: $fontName; + font-weight: normal; + font-style: normal; + text-decoration: inherit; +} + +/* icons */ +@include i-class(settings,"000"); +@include i-class(heart,"001"); +@include i-class(star,"002"); +@include i-class(plus,"003"); +@include i-class(minus,"004"); +@include i-class(checkmark,"005"); +@include i-class(remove,"006"); +@include i-class(mail,"007"); +@include i-class(calendar,"008"); +@include i-class(page,"009"); +@include i-class(tools,"00a"); +@include i-class(globe,"00b"); +@include i-class(home,"00c"); +@include i-class(quote,"00d"); +@include i-class(people,"00e"); +@include i-class(monitor,"00f"); +@include i-class(laptop,"010"); +@include i-class(phone,"011"); +@include i-class(cloud,"012"); +@include i-class(error,"013"); +@include i-class(right-arrow,"014"); +@include i-class(left-arrow,"015"); +@include i-class(up-arrow,"016"); +@include i-class(down-arrow,"017"); +@include i-class(trash,"018"); +@include i-class(add-doc,"019"); +@include i-class(edit,"01a"); +@include i-class(lock,"01b"); +@include i-class(unlock,"01c"); +@include i-class(refresh,"01d"); +@include i-class(paper-clip,"01e"); +@include i-class(video,"01f"); +@include i-class(photo,"020"); +@include i-class(graph,"021"); +@include i-class(idea,"022"); +@include i-class(mic,"023"); +@include i-class(cart,"024"); +@include i-class(address-book,"025"); +@include i-class(compass,"026"); +@include i-class(flag,"027"); +@include i-class(location,"028"); +@include i-class(clock,"029"); +@include i-class(folder,"02a"); +@include i-class(inbox,"02b"); +@include i-class(website,"02c"); +@include i-class(smiley,"02d"); +@include i-class(search,"02e"); \ No newline at end of file diff --git a/foundation_theme/scss/icons/general/_general_foundicons_ie7.scss b/foundation_theme/scss/icons/general/_general_foundicons_ie7.scss new file mode 100644 index 0000000..2a0ee0d --- /dev/null +++ b/foundation_theme/scss/icons/general/_general_foundicons_ie7.scss @@ -0,0 +1,56 @@ +@import "settings"; + +/* general icons for IE7 */ +[class*="#{$classPrefix}"] { + font-family: $fontName; + font-weight: normal; + font-style: normal; +} + +@include ie-class(settings,"000"); +@include ie-class(heart,"001"); +@include ie-class(star,"002"); +@include ie-class(plus,"003"); +@include ie-class(minus,"004"); +@include ie-class(checkmark,"005"); +@include ie-class(remove,"006"); +@include ie-class(mail,"007"); +@include ie-class(calendar,"008"); +@include ie-class(page,"009"); +@include ie-class(tools,"00a"); +@include ie-class(globe,"00b"); +@include ie-class(home,"00c"); +@include ie-class(quote,"00d"); +@include ie-class(people,"00e"); +@include ie-class(monitor,"00f"); +@include ie-class(laptop,"010"); +@include ie-class(phone,"011"); +@include ie-class(cloud,"012"); +@include ie-class(error,"013"); +@include ie-class(right-arrow,"014"); +@include ie-class(left-arrow,"015"); +@include ie-class(up-arrow,"016"); +@include ie-class(down-arrow,"017"); +@include ie-class(trash,"018"); +@include ie-class(add-doc,"019"); +@include ie-class(edit,"01a"); +@include ie-class(lock,"01b"); +@include ie-class(unlock,"01c"); +@include ie-class(refresh,"01d"); +@include ie-class(paper-clip,"01e"); +@include ie-class(video,"01f"); +@include ie-class(photo,"020"); +@include ie-class(graph,"021"); +@include ie-class(idea,"022"); +@include ie-class(mic,"023"); +@include ie-class(cart,"024"); +@include ie-class(address-book,"025"); +@include ie-class(compass,"026"); +@include ie-class(flag,"027"); +@include ie-class(location,"028"); +@include ie-class(clock,"029"); +@include ie-class(folder,"02a"); +@include ie-class(inbox,"02b"); +@include ie-class(website,"02c"); +@include ie-class(smiley,"02d"); +@include ie-class(search,"02e"); \ No newline at end of file diff --git a/foundation_theme/scss/icons/general/_settings.scss b/foundation_theme/scss/icons/general/_settings.scss new file mode 100644 index 0000000..65c4fad --- /dev/null +++ b/foundation_theme/scss/icons/general/_settings.scss @@ -0,0 +1,28 @@ +$fontFileName: "../fonts/general_foundicons"; +$fontName: "GeneralFoundicons"; +$classPrefix: "foundicon-"; + +@mixin i-class($name,$pua) { + .#{$classPrefix}#{$name}:before { + content: "\f#{$pua}"; + } +} + +@mixin ie-class($name,$pua) { + .#{$classPrefix}#{$name} { + *zoom: expression( this.runtimeStyle['zoom'] = "1", this.innerHTML = "#{$pua};"); + } +} + +@mixin face { + @font-face { + font-family: $fontName; + src: url('#{$fontFileName}.eot'); + src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'), + url('#{$fontFileName}.woff') format('woff'), + url('#{$fontFileName}.ttf') format('truetype'), + url('#{$fontFileName}.svg##{$fontName}') format('svg'); + font-weight: normal; + font-style: normal; + } +} \ No newline at end of file diff --git a/foundation_theme/scss/icons/general_enclosed/_general_enclosed_foundicons.scss b/foundation_theme/scss/icons/general_enclosed/_general_enclosed_foundicons.scss new file mode 100644 index 0000000..3070854 --- /dev/null +++ b/foundation_theme/scss/icons/general_enclosed/_general_enclosed_foundicons.scss @@ -0,0 +1,71 @@ +@import "settings"; + +/* font-face */ +@include face; + +/* global foundicon styles */ +[class*="#{$classPrefix}"] { + display: inline; + width: auto; + height: auto; + line-height: inherit; + vertical-align: baseline; + background-image: none; + background-position: 0 0; + background-repeat: repeat; +} +[class*="#{$classPrefix}"]:before { + font-family: $fontName; + font-weight: normal; + font-style: normal; + text-decoration: inherit; +} + +/* icons */ +@include i-class(settings,"000"); +@include i-class(heart,"001"); +@include i-class(star,"002"); +@include i-class(plus,"003"); +@include i-class(minus,"004"); +@include i-class(checkmark,"005"); +@include i-class(remove,"006"); +@include i-class(mail,"007"); +@include i-class(calendar,"008"); +@include i-class(page,"009"); +@include i-class(tools,"00a"); +@include i-class(globe,"00b"); +@include i-class(home,"00c"); +@include i-class(quote,"00d"); +@include i-class(people,"00e"); +@include i-class(monitor,"00f"); +@include i-class(laptop,"010"); +@include i-class(phone,"011"); +@include i-class(cloud,"012"); +@include i-class(error,"013"); +@include i-class(right-arrow,"014"); +@include i-class(left-arrow,"015"); +@include i-class(up-arrow,"016"); +@include i-class(down-arrow,"017"); +@include i-class(trash,"018"); +@include i-class(add-doc,"019"); +@include i-class(edit,"01a"); +@include i-class(lock,"01b"); +@include i-class(unlock,"01c"); +@include i-class(refresh,"01d"); +@include i-class(paper-clip,"01e"); +@include i-class(video,"01f"); +@include i-class(photo,"020"); +@include i-class(graph,"021"); +@include i-class(idea,"022"); +@include i-class(mic,"023"); +@include i-class(cart,"024"); +@include i-class(address-book,"025"); +@include i-class(compass,"026"); +@include i-class(flag,"027"); +@include i-class(location,"028"); +@include i-class(clock,"029"); +@include i-class(folder,"02a"); +@include i-class(inbox,"02b"); +@include i-class(website,"02c"); +@include i-class(smiley,"02d"); +@include i-class(search,"02e"); \ No newline at end of file diff --git a/foundation_theme/scss/icons/general_enclosed/_general_enclosed_foundicons_ie7.scss b/foundation_theme/scss/icons/general_enclosed/_general_enclosed_foundicons_ie7.scss new file mode 100644 index 0000000..2a0ee0d --- /dev/null +++ b/foundation_theme/scss/icons/general_enclosed/_general_enclosed_foundicons_ie7.scss @@ -0,0 +1,56 @@ +@import "settings"; + +/* general icons for IE7 */ +[class*="#{$classPrefix}"] { + font-family: $fontName; + font-weight: normal; + font-style: normal; +} + +@include ie-class(settings,"000"); +@include ie-class(heart,"001"); +@include ie-class(star,"002"); +@include ie-class(plus,"003"); +@include ie-class(minus,"004"); +@include ie-class(checkmark,"005"); +@include ie-class(remove,"006"); +@include ie-class(mail,"007"); +@include ie-class(calendar,"008"); +@include ie-class(page,"009"); +@include ie-class(tools,"00a"); +@include ie-class(globe,"00b"); +@include ie-class(home,"00c"); +@include ie-class(quote,"00d"); +@include ie-class(people,"00e"); +@include ie-class(monitor,"00f"); +@include ie-class(laptop,"010"); +@include ie-class(phone,"011"); +@include ie-class(cloud,"012"); +@include ie-class(error,"013"); +@include ie-class(right-arrow,"014"); +@include ie-class(left-arrow,"015"); +@include ie-class(up-arrow,"016"); +@include ie-class(down-arrow,"017"); +@include ie-class(trash,"018"); +@include ie-class(add-doc,"019"); +@include ie-class(edit,"01a"); +@include ie-class(lock,"01b"); +@include ie-class(unlock,"01c"); +@include ie-class(refresh,"01d"); +@include ie-class(paper-clip,"01e"); +@include ie-class(video,"01f"); +@include ie-class(photo,"020"); +@include ie-class(graph,"021"); +@include ie-class(idea,"022"); +@include ie-class(mic,"023"); +@include ie-class(cart,"024"); +@include ie-class(address-book,"025"); +@include ie-class(compass,"026"); +@include ie-class(flag,"027"); +@include ie-class(location,"028"); +@include ie-class(clock,"029"); +@include ie-class(folder,"02a"); +@include ie-class(inbox,"02b"); +@include ie-class(website,"02c"); +@include ie-class(smiley,"02d"); +@include ie-class(search,"02e"); \ No newline at end of file diff --git a/foundation_theme/scss/icons/general_enclosed/_settings.scss b/foundation_theme/scss/icons/general_enclosed/_settings.scss new file mode 100644 index 0000000..a3d05b4 --- /dev/null +++ b/foundation_theme/scss/icons/general_enclosed/_settings.scss @@ -0,0 +1,28 @@ +$fontFileName: "../fonts/general_enclosed_foundicons"; +$fontName: "GeneralEnclosedFoundicons"; +$classPrefix: "foundicon-"; + +@mixin i-class($name,$pua) { + .#{$classPrefix}#{$name}:before { + content: "\f#{$pua}"; + } +} + +@mixin ie-class($name,$pua) { + .#{$classPrefix}#{$name} { + *zoom: expression( this.runtimeStyle['zoom'] = "1", this.innerHTML = "#{$pua};"); + } +} + +@mixin face { + @font-face { + font-family: $fontName; + src: url('#{$fontFileName}.eot'); + src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'), + url('#{$fontFileName}.woff') format('woff'), + url('#{$fontFileName}.ttf') format('truetype'), + url('#{$fontFileName}.svg##{$fontName}') format('svg'); + font-weight: normal; + font-style: normal; + } +} \ No newline at end of file diff --git a/foundation_theme/scss/icons/social/_settings.scss b/foundation_theme/scss/icons/social/_settings.scss new file mode 100644 index 0000000..efc2d0a --- /dev/null +++ b/foundation_theme/scss/icons/social/_settings.scss @@ -0,0 +1,28 @@ +$fontFileName: "../fonts/social_foundicons"; +$fontName: "SocialFoundicons"; +$classPrefix: "foundicon-"; + +@mixin i-class($name,$pua) { + .#{$classPrefix}#{$name}:before { + content: "\f#{$pua}"; + } +} + +@mixin ie-class($name,$pua) { + .#{$classPrefix}#{$name} { + *zoom: expression( this.runtimeStyle['zoom'] = "1", this.innerHTML = "#{$pua};"); + } +} + +@mixin face { + @font-face { + font-family: $fontName; + src: url('#{$fontFileName}.eot'); + src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'), + url('#{$fontFileName}.woff') format('woff'), + url('#{$fontFileName}.ttf') format('truetype'), + url('#{$fontFileName}.svg##{$fontName}') format('svg'); + font-weight: normal; + font-style: normal; + } +} \ No newline at end of file diff --git a/foundation_theme/scss/icons/social/_social_foundicons.scss b/foundation_theme/scss/icons/social/_social_foundicons.scss new file mode 100644 index 0000000..857daab --- /dev/null +++ b/foundation_theme/scss/icons/social/_social_foundicons.scss @@ -0,0 +1,54 @@ +@import "settings"; + +/* font-face */ +@include face; + +/* global foundicon styles */ +[class*="#{$classPrefix}"] { + display: inline; + width: auto; + height: auto; + line-height: inherit; + vertical-align: baseline; + background-image: none; + background-position: 0 0; + background-repeat: repeat; +} +[class*="#{$classPrefix}"]:before { + font-family: $fontName; + font-weight: normal; + font-style: normal; + text-decoration: inherit; +} + +/* icons */ +@include i-class(thumb-up,"000"); +@include i-class(thumb-down,"001"); +@include i-class(rss,"002"); +@include i-class(facebook,"003"); +@include i-class(twitter,"004"); +@include i-class(pinterest,"005"); +@include i-class(github,"006"); +@include i-class(path,"007"); +@include i-class(linkedin,"008"); +@include i-class(dribbble,"009"); +@include i-class(stumble-upon,"00a"); +@include i-class(behance,"00b"); +@include i-class(reddit,"00c"); +@include i-class(google-plus,"00d"); +@include i-class(youtube,"00e"); +@include i-class(vimeo,"00f"); +@include i-class(flickr,"010"); +@include i-class(slideshare,"011"); +@include i-class(picassa,"012"); +@include i-class(skype,"013"); +@include i-class(steam,"014"); +@include i-class(instagram,"015"); +@include i-class(foursquare,"016"); +@include i-class(delicious,"017"); +@include i-class(chat,"018"); +@include i-class(torso,"019"); +@include i-class(tumblr,"01a"); +@include i-class(video-chat,"01b"); +@include i-class(digg,"01c"); +@include i-class(wordpress,"01d"); diff --git a/foundation_theme/scss/icons/social/_social_foundicons_ie7.scss b/foundation_theme/scss/icons/social/_social_foundicons_ie7.scss new file mode 100644 index 0000000..5686df7 --- /dev/null +++ b/foundation_theme/scss/icons/social/_social_foundicons_ie7.scss @@ -0,0 +1,39 @@ +@import "settings"; + +/* general icons for IE7 */ +[class*="#{$classPrefix}"] { + font-family: $fontName; + font-weight: normal; + font-style: normal; +} + +@include ie-class(thumb-up,"000"); +@include ie-class(thumb-down,"001"); +@include ie-class(rss,"002"); +@include ie-class(facebook,"003"); +@include ie-class(twitter,"004"); +@include ie-class(pinterest,"005"); +@include ie-class(github,"006"); +@include ie-class(path,"007"); +@include ie-class(linkedin,"008"); +@include ie-class(dribbble,"009"); +@include ie-class(stumble-upon,"00a"); +@include ie-class(behance,"00b"); +@include ie-class(reddit,"00c"); +@include ie-class(google-plus,"00d"); +@include ie-class(youtube,"00e"); +@include ie-class(vimeo,"00f"); +@include ie-class(flickr,"010"); +@include ie-class(slideshare,"011"); +@include ie-class(picassa,"012"); +@include ie-class(skype,"013"); +@include ie-class(steam,"014"); +@include ie-class(instagram,"015"); +@include ie-class(foursquare,"016"); +@include ie-class(delicious,"017"); +@include ie-class(chat,"018"); +@include ie-class(torso,"019"); +@include ie-class(tumblr,"01a"); +@include ie-class(video-chat,"01b"); +@include ie-class(digg,"01c"); +@include ie-class(wordpress,"01d"); \ No newline at end of file diff --git a/foundation_theme/scss/restructuredtext.scss b/foundation_theme/scss/restructuredtext.scss new file mode 100644 index 0000000..f9bc2f9 --- /dev/null +++ b/foundation_theme/scss/restructuredtext.scss @@ -0,0 +1,156 @@ +@import "modular-scale"; + +.restructuredtext_container{ + h3, + h4, + h5, + h6{ + & a{ + text-decoration:none; + } + } + + // Topics + .topic{ + padding: .5em 1em .5em 1em; + border: 1px solid #cdcdcd; + background-color: #f2f2f2; + font-size:.9em; + color:#384976; + text-shadow: none; + } + .topic-title{ + font-size:1.1em; + color:#365578; + font-weight:bold; + } + + // Admonitions + .admonition-title{ + font-weight:bold; + } + .attention, + .caution, + .danger, + .error, + .hint, + .important, + .note, + .tip, + .warning{ + padding: .1em .7em .1em 3.4em; + border: 1px solid #cdd9f7; + background-color: #e8efff; + font-size:.9em; + color:#384976; + text-shadow: none; + background-repeat: no-repeat; + background-position: .7em .7em; + + p + p{ + padding-top: .2em; + } + } + .note{ + background-image: image-url("notices/about.png"); + } + .attention, + .important, + .warning, + .danger, + .error{ + color:#763848; + border: 1px solid #f7cdd7; + background-color: #ffe8ed; + background-image: image-url("notices/alert.png"); + } + .danger, + .error{ + background-image: image-url("notices/stop.png"); + } + + // Citations, codes, etc.. + blockquote{ + width:96%; + margin-left:1%; + margin-right:1%; + padding:1%; + border-left:3px solid #aaaaaa; + background-color:#ffffff; + text-shadow:none; + } + pre{ + width:98%; + padding-left:1%; + padding-right:1%; + background-color:#e8efff; + border:1px solid #d3d3d3; + overflow:auto; + text-shadow:none; + } + code{ + width:100%; + background-color:#e8efff; + border-bottom:1px solid #d3d3d3; + overflow:auto; + } + + tt.literal{ + background-color:#e8efff; + border-bottom:1px solid #B0B0B0; + text-shadow:none; + } + // Listes + ul, ol{ + margin-left: ms(1); + } + dt { + margin-top: ms(0); + font-weight: bold; + } + dt:first-child { + margin-top:0; + } + + // Pygments + .pygments-container{ + width: 100%; + max-width: 100%; + overflow:auto; + } + + .pygmentstable, + .pygments{ + width:98%; + margin: .5em 1% .5em 1%; + border-top:1px solid #aaaaaa; + border-bottom:1px solid #aaaaaa; + } + .pygmentstable .pygments{ + width:auto; + margin-left:0; + margin-right:0; + border:0; + } + .pygmentstable td.linenos{ + width:1%; + padding-left:.4em; + padding-right:.4em; + border-right:1px solid #aaaaaa; + text-align:right; + background-color:#f0f0f0; + } + .pygmentstable td.code{ + padding-left:.4em; + background-color:#ffffff; + } + .pygmentstable pre, + .pygments pre{ + width:auto; + padding-left:.5em; + padding-right:.5em; + background-color:transparent; + border:0; + overflow:auto; + } +} \ No newline at end of file diff --git a/foundation_theme/scss/screen.scss b/foundation_theme/scss/screen.scss new file mode 100644 index 0000000..deaf9b3 --- /dev/null +++ b/foundation_theme/scss/screen.scss @@ -0,0 +1,101 @@ +// You custom settings file to override Foundation defaults +@import "settings"; + +// Comment out this import if you are customizing you imports below +@import "foundation"; + +// ---------------------------------------- +// Import specific parts of Foundation by commenting the import "foundation" +// and uncommenting what you want below. You must uncomment the following if customizing + +// @import "compass/css3"; +// @import "foundation/settings"; +// @import "foundation/functions/all"; + +// Control which mixins you have access too + +@import "foundation/mixins/clearfix"; +// @import "foundation/mixins/css-triangle"; +// @import "foundation/mixins/font-size"; + +// Must include next two for semantic grid to work + +// @import "foundation/mixins/respond-to"; +// @import "foundation/mixins/semantic-grid"; + +// @import "modular-scale"; +// @import "foundation/common/globals"; + +// Must include the grid for any responsiveness + +// @import "foundation/components/grid"; + +// Control which common styles get compiled + +// @import "foundation/common/typography"; +// @import "foundation/common/forms"; + +// Control which components you get if customizing + +// @import "foundation/components/modules/buttons"; +// @import "foundation/components/modules/tabs"; +// @import "foundation/components/modules/ui"; +// @import "foundation/components/modules/topbar"; +// @import "foundation/components/modules/navbar"; +// @import "foundation/components/modules/orbit"; +// @import "foundation/components/modules/reveal"; +// @import "foundation/components/modules/offcanvas"; + +@import "icons/accessibility/accessibility_foundicons"; +@import "icons/general/general_foundicons"; +@import "icons/general_enclosed/general_enclosed_foundicons"; +@import "icons/social/social_foundicons"; + +// Constantes +/*$headerTopItemshifting: 50px; +$headerTopPosition: 155px; +$siteMenuItemFontSize: 15px; +$headerLogoEmarge: 24px; +$headerDesignByLogoHeight: 30px;*/ + +.top-bar{ + background-color:#000000; +} + +/* Corps du contenu */ +#body_content{ +/* padding-top: $headerTopPosition - $topBarHeight; + min-height:200px;*/ + padding-left: 1%; + padding-right: 1%; +} + +.float-clearfix{ + @include clearfix; +} + +/* + * Row fluid block + */ +.row-fluid { + width: 100%; + max-width: 100%; + min-width: 100%; + @extend %clearfix; +} + +.document_action_menu{} + + +//Fix needed for fullwidth layout else this provokes displaying horizontal scrollbar +.top-bar ul.right .has-dropdown .dropdown { + //right: -1px; + right: 0; +} + +/* Pied de page */ +#footer{ + color: #666666; + background-color: #000000; + text-align:center; +} diff --git a/requirements.txt b/requirements.txt index 854d48d..584af6e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,8 @@ -Django==1.3.1 +psycopg2==2.4.5 +Django==1.3.4 +Pygments==1.5 autobreadcrumbs -djangocodemirror sveeaccounts sveedocuments +djangotribune +django-debug-toolbar==0.9.4 diff --git a/settings.py b/settings.py index b44efd3..0dc9b08 100644 --- a/settings.py +++ b/settings.py @@ -81,7 +81,7 @@ # The docutils writer to use, can be html4 or html5, html5 writer is internal code of # sveedocuments -RSTVIEW_PARSER_WRITER = "html4" +RSTVIEW_PARSER_WRITER = "html5" ##### # @@ -256,7 +256,7 @@ 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', - #'debug_toolbar.middleware.DebugToolbarMiddleware', + 'debug_toolbar.middleware.DebugToolbarMiddleware', ) ROOT_URLCONF = 'DjangoSveetchies.urls' @@ -264,7 +264,7 @@ INSTALLED_APPS = ( 'captcha', 'crispy_forms', - #'debug_toolbar', + 'debug_toolbar', 'mptt', 'registration', 'rstview', diff --git a/templates/applications_toc.html b/templates/applications_toc.html index 799f5a8..95e63e3 100644 --- a/templates/applications_toc.html +++ b/templates/applications_toc.html @@ -1,15 +1,13 @@ -{% load i18n %} +{% load i18n %} +{% for app in application_toc %} +
+

{{ app.title }}

+

{{ app.desc }}

+ +
+{% endfor %} diff --git a/templates/autobreadcrumbs_tag.html b/templates/autobreadcrumbs_tag.html new file mode 100644 index 0000000..36a8dba --- /dev/null +++ b/templates/autobreadcrumbs_tag.html @@ -0,0 +1 @@ +{% for crumb in elements %}
  • {{ crumb.title }}
  • {% endfor %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index c59380f..59a6e56 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,84 +1,98 @@ -{% load i18n autobreadcrumb documents_utils %} - - - {% spaceless %} +{% load i18n autobreadcrumb documents_utils %} + + +{% spaceless %} + {% block head_title %}{{ SITE.name }}{% endblock %} - - - - + + + + + + {% block head_more_links %}{% endblock %} - {% block head_base_js %} - - - - {% endblock %}{% block head_more_js %} -{% endblock %}{% endspaceless %} + + {% endblock %} + {% endspaceless %} + - - -
    - - - {% block body_content %}
    -
    -
    -
    - {% block breadcrumbsroot %}{% endblock %} - {% block action_menu %}{% endblock %} -
    - - {% block content %}{% endblock %} -
    -
    - - {% block context_menu %}{% endblock %} -
    -
    -
    {% endblock %} + + {% spaceless %}{% endspaceless %} + {% block body_content %}
    + {% block breadcrumbsroot %}{% endblock %} -
    -
    -

    {% trans "Menu" %}

    - -
    -
    -
    -
    + {% comment %}{% block context_menu %}{% endblock %}{% endcomment %} + {% block content %}{% endblock %} +
    {% endblock %} -