Author: |
A basic theme base compatible with the standard layout.
Import
To use this CSS Theme and ensure you always have the latest version, paste the following code into your site's CSS:
@import url('http://css.wikidot.com/theme:standard-theme/code_');
Description
The Standard Theme is a base theme that extends Bootstrap's base CSS. It adds basic flair to your site so that it appear professional regardless of the device viewed on. Using a subtle mix of round and sharp elements, the theme is fierce, yet elegant.
Being a base, this theme is meant to be extended, mainly by adding colors. Feel free to explore some of these basic color variations; if none of these suffice the needs of your site, then try out the Standard Theme Colorification tool!
- Standard Red — Install
- Standard Orange — Install
- Standard Yellow — Install
- Standard Green — Install
- Standard Blue — Install
- Standard Purple — Install
- Standard Black — Install
- Standard White — Install
Furthermore, this theme directly imports and customizes the following CSSnippets:
Being a base, this theme is meant to be extended, mainly by adding colors.
Code
/** Standard Theme * Developed by the Wikidot Community * Special thanks to Timothy Foster * Version: 1.02.141017 * TOC: * IMPT: Imports * GLOB: Global * FORM: Forms/Buttons * CVBS: Convert to Bootstrap * CONT: Containers * HEAD: Header * LOGN: Login Status * SCHB: Search Bar * TOPB: Top Bar * SIDE: Side Bar * MAIN: Main Content * TOCT: Table of Contents * CODE: Code Blocks * WTBL: Wiki Tables * ACTA: Action Area * BSCL: Bootstrap Colors * TABV: Tabview * IMBX: Image Boxes by Timothy Foster * INHV: Inline Hovertips by James Kanjo * ***************************************************************************/ /* Imports (!IMPT) ==============================================================================*/ @import url('//css.wikidot.com/theme:community-bootstrap-base/code_'); @import url('//css.wikidot.com/cssnippet:minimized-login-status/code_'); @import url('//css.wikidot.com/cssnippet:minimized-search-bar/code_'); @import url('//css.wikidot.com/cssnippet:fontawesome-editor/code_'); @import url('//css.wikidot.com/cssnippet:better-code-blocks/code_'); @import url('//css.wikidot.com/cssnippet:inline-hovertips/code_'); /* Global (!GLOB) ==============================================================================*/ a.newpage{ color: #AAA; } a.newpage:hover, a.newpage:focus{ color: #888; } /* Forms/Buttons (!FORM) ==============================================================================*/ .btn{ border-bottom-width: 3px; padding: 3px 15px; } .btn-group-vertical > .btn{ border-bottom-width: 1px; border-left-width: 3px; border-right-width: 3px; } .form-control{ border-radius: 4px; height: 32px; padding: 4px 12px; } /* Convert to Bootstrap (!CVBS) ==============================================================================*/ /* * Unclassed Buttons > .btn * */ input[type=button]:not(.btn), input[type=submit]:not(.btn), .button, .join-box a{ padding: 3px 15px; border-bottom-width: 3px; } /* * Fields > .form-control * */ input[type=text]:not(.form-control), textarea:not(.form-control){ padding: 4px 12px; } input[type=text]:not(.form-control){ height: 32px; } .pager > .target > a, .pager > .current, .pager > .dots{ border-bottom-width: 3px; } .breadcrumbs{ background: none; padding: 0 24px; color: #777; } /* Containers (!CONT) ==============================================================================*/ /* Header (!HEAD) ==============================================================================*/ header.header-wrap{ position: relative; height: 250px; } header .header{ position: relative; } header.header-wrap h1{ margin-bottom: 0;} header.header-wrap h1 a{ font-size: 32px; letter-spacing: 1px; transition: color 128ms ease-out; } header.header-wrap h1 a:hover, header.header-wrap h1 a:focus, header.header-wrap h1 a:active{ text-decoration: none; } header.header-wrap h2{ font-size: 14px; text-transform: lowercase; letter-spacing: 2px; padding-left: 56px; margin-top: 10px; margin-bottom: 0; } header.header-wrap .site-title{ min-height: 75px; } /* Login Status (!LOGN) ==============================================================================*/ .login-status{ padding-top: 3px; position: absolute; top: 23px; right: 20px; } /* Search Bar (!SCHB) ==============================================================================*/ #search-top-box{ position: absolute; top: 60px; right: 20px; float: none; } #search-top-box-input{ margin-right: 0; } #search-top-box input.btn{ display: none; } #search-top-box input.text{ border: 1px solid; } /* Top Bar (!TOPB) ==============================================================================*/ nav.top-bar-wrap{ background: none; border: none; margin-top: 0; } nav .top-bar .navbar-collapse{ padding: 0; } nav .top-bar .navbar-nav{ float: right; } nav .top-bar .navbar-nav li a{ letter-spacing: 1px; padding-bottom: 10px; } nav .top-bar .navbar-brand{ letter-spacing: 1px; padding-bottom: 10px; } /* * Dropdown Menu Open * */ nav .top-bar .navbar-nav > .open > a, nav .top-bar .navbar-nav > .open > a:hover, nav .top-bar .navbar-nav > .open > a:focus{ background: none; } nav .top-bar .navbar-nav .dropdown-menu a{ color: #333; padding-bottom: 3px; } nav .top-bar .navbar-nav > li > .dropdown-menu{ border-radius: 4px; } /* * Tablet/small screen * */ nav .top-bar .navbar-toggle{ width: 28px; height: 28px; border-radius: 14px; border: 1px solid; margin-right: 20px; padding: 0; } nav .top-bar .navbar-toggle:hover, nav .top-bar .navbar-toggle:focus{ outline: none; } nav .top-bar .navbar-toggle .icon-bar{ width: 14px; margin: 3px auto; } nav .top-bar .navbar-collapse{ border: none; overflow: hidden; max-height: none; } nav .top-bar .navbar-collapse.collapsing, nav .top-bar .navbar-collapse.in{ position: relative; z-index: 999; } nav .top-bar .navbar-collapse.collapsing, nav .top-bar .navbar-collapse.in, nav .top-bar .navbar-collapse.collapsing .dropdown-menu, nav .top-bar .navbar-collapse.in .dropdown-menu{ text-align: right; } nav .top-bar .navbar-collapse.collapsing ul.navbar-nav, nav .top-bar .navbar-collapse.in ul.navbar-nav{ margin: 6px; } nav .top-bar .navbar-collapse.collapsing ul.dropdown-menu, nav .top-bar .navbar-collapse.in ul.dropdown-menu{ margin-right: 1em; } @media (min-width:768px) and (max-width:992px){ nav .top-bar .navbar-brand{ display: none; } } /* Side Bar (!SIDE) ==============================================================================*/ nav.side-bar-wrap{ float: right; } nav .side-bar{ padding-top: 74px; font-size: 13px; color: #999; } nav .side-bar h1{ font-size: 16px; color: #888; } nav .side-bar h2{ font-size: 15px; } nav .side-bar h3{ font-size: 14px; } nav .side-bar h4{ font-size: 13px; } nav .side-bar h5{ font-size: 12px; } nav .side-bar h6{ font-size: 12px; } nav .side-bar ul{ list-style: none; padding-left: 1.25em; } nav .side-bar ul li a{ color: #999; display: block; } nav .side-bar ul li a:hover{ text-decoration: none; border-right: 1px solid; } nav .side-bar .navbar-toggle{ line-height: 1.42857; margin-bottom: 0; text-align: center; vertical-align: middle; white-space: nowrap; border-radius: 4px; font-size: 14px; color: #333; background-color: #FFF; border: 1px solid #CCC; padding: 3px 15px; border-bottom-width: 3px; z-index: 998; } nav .side-bar .navbar-toggle:hover, nav .side-bar .navbar-toggle:focus{ color: #333; border-color: #ADADAD; background-color: #EBEBEB; } nav .side-bar .navbar-toggle:active{ box-shadow: 0 3px 5px rgba(0,0,0,.125) inset; outline: 0 none; } @media (max-width: 992px){ nav.side-bar-wrap{ float: none; } nav .side-bar{ padding-top: 1em; } } @media (max-width: 992px) and (min-width: 768px){ nav .side-bar .navbar-collapse{ -moz-column-count: 3; -webkit-column-count: 3; column-count: 3; } } /* Main Content (!MAIN) ==============================================================================*/ main > .content{ background: #FFF; box-shadow: 0 2px 4px 1px rgba(0,0,0,.2); position: relative; top: -110px; border-radius: 4px; padding-bottom: 15px; } main > .content .page-title{ font-size: 32px; border-bottom: 3px solid; margin: 15px 0 1em 0; padding: 0; line-height: 1.25em; } main > .content .page-title span{ display: inline-block; line-height: 1.25em; height: calc(1.25em + 8px); margin-bottom: -8px; padding-right: 3px; } main .main-content h1{ margin-left: -21px; padding-left: 21px; margin-right: -21px; padding-right: 21px; font-size: 32px; } main .main-content h2{ font-size: 28px; } main .main-content h3{ font-size: 24px; } main .main-content h4{ font-size: 22px; } main .main-content h5{ font-size: 20px; } main .main-content h6{ font-size: 18px; } main .content .page-options-container{ text-align: center; margin-top: 12px; } #page-info, .page-watch-options{ font-size: 12px; } #page-options-bottom{ margin-bottom: 8px; } #page-options-bottom-2{ width: 904px; margin: auto; } @media (max-width: 768px){ main > .content{ border-radius: 0; /* overflow-x: hidden; */ } } /* Table of Contents (!TOCT) ==============================================================================*/ #toc{ margin-left: 1em; } /* Footer (!FOOT) ==============================================================================*/ /* Code Blocks (!CODE) ==============================================================================*/ /* Wiki Tables (!WTBL) ==============================================================================*/ /* Action Area (!ACTA) ==============================================================================*/ #action-area{ margin-top: 56px; } #action-area .page-source{ font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 13px; } .change-textarea-size{ display: none; } .wd-editor-toolbar-panel{ height: 25px; margin-bottom: 10px; } .edit-help-34 a{ display: inline-block; margin-right: 10px; } .edit-page-bottomtable{ width: 100%; margin-top: 10px; } .edit-page-bottomtable td{ vertical-align: middle; } .edit-page-bottomtable #lock-info{ margin-bottom: 0; } #edit-page-textarea{ width: 100% !important; } a.action-area-close{ margin-top: 2px; } #action-area table.form{ margin: .5em auto; } #action-area table.form + .buttons, #action-area .form-actions{ text-align: center; width: 100%; } #action-area table.form + .buttons input, #action-area .form-actions input{ float: none; } #action-area table.form + .buttons input + input, #action-area .form-actions input + input{ margin-left: -4px; } #action-area .form-group .col-sm-5{ width: 75%; } @media (max-width: 768px){ #action-area .form-group .col-sm-5{ width: 100%; } } /* Bootstrap Colors (!BSCL) ==============================================================================*/ /* Tabview (!TABV) ==============================================================================*/ /* Image Boxes by Timothy Foster (!IMBX) ==============================================================================*/ /* Inline Hovertips by James Kanjo (!INHV) ==============================================================================*/ .hover{ display: inline-block; background: none; height: 1.42857em; margin-bottom: 3px; } .hover:hover{ background: url('//css.wikidot.com/local--files/theme:standard-theme/hovertipBelow.png'); background-repeat: no-repeat; background-position: center calc(1.42857em - 2px); height: calc(1.42857em + 3px); margin-bottom: 0; } .hover span{ transition: none; } .hover:hover span{ border: none; background: rgba(20, 20, 20, .95); font-size: 12px; min-width: 200px; color: #FFF; border-radius: 4px; padding: 4px 12px; margin-top: calc(1.42857em + 6px); }
Notes
Version History | |
---|---|
1.02.141017 | Data form fields are more responsive. Bugfix — z-indexing problems with collapsed top bar on tablets alleviated |
1.01.140921 | Removed Home navbar brand on medium sized screens. |
1.00.140919 | Bugfix — Adjusted bottom margin of h1 in header that caused positioning problems in Chrome. |
1.00.140820 | Bugfix — A fixed minimum height has been added to the site title to handle cases where a subtitle is not defined. |
1.00.140812 | Bugfix — Added direct descendent selector (main .content to main > .content) to prevent conflict with other containers with the content class |
1.00.140711 | First release |
Hi Timothy
I am trying to convert an existing small wiki to your template - http://www.laxwiki.com
Hoping to get this to work before trying it on our larger wikis.
I pasted your code into the CSS file but we are still getting non-formatted bootstrap pages. Any hints on what I am doing wrong? :)
Thanks.
Will
Black Belt Wiki - A Free Martial Arts Wiki
I tried to send a PM, but it will not let me. Here is what it said:
I am not sure how you have everything set up in the admin manager, but it appears that the theme is not being applied at all (meaning it is not there).
The first thing I noticed, though, is that your site isn't using the right html layout yet. It turns out that in order to use Bootstrap, you actually need to change the entire underlying structure of the html. That is why you first need to create what is called a layout, as pictured below:
To find this in the admin manager, go to Appearance & Behavior > Themes > Custom, at the bottom of the page.
In the layout you create, copy and paste the code on this page, and title your layout "Standard Layout".
Once that is done, you can then create a custom theme setting the "Which theme to extend" to "Bootstrap Base", and changing "Choose layout" to "Standard Layout". Then, you can copy and paste the standard theme import code into the box and save. It should look like the below:
Finally, you can then apply the theme to the site by going to the You tab and "installing" the theme like normal.
Let me know if this works or not.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
Thank you! That was very helpful. Thought that I could just hit the new template button and add some CSS. :)
One last stupid question - Will this new html only apply to the wiki that I am attempting to convert?
I don't want to mess up the larger wikis on our pro account.
Will
Black Belt Wiki - A Free Martial Arts Wiki
It only applies to the site you are editing, so you would need to conduct the same process on all sites you wish to convert.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
Thank you. New theme is working. Now I just have to make things look pretty. :)
Like figuring out why the page title overlays and covers some of the page text when seen on a mobile phone (versus being two separate text areas) - http://www.laxwiki.com
Will
Black Belt Wiki - A Free Martial Arts Wiki
Try converting your top navigation to use Bootstrap navigation classes and it should render better. For example, try this on your nav:top page:
I have yet to use Wikidot [[button…]] syntax in a Bootstrap menu, but I can't think of any reason it wouldn't work.
I'd also suggest shortening page titles where you can. Long titles eat a lot of space on small screens.
Community Admin
Just tried it - Not quite working but I will play with it and see what happens.
http://www.laxwiki.com/nav:top
Will
Black Belt Wiki - A Free Martial Arts Wiki
Sorry, I see I missed a closing [[/ul]]. I just edited my code above.
Community Admin
Thanks! You might want to add an extra [[ /li ]] on the drop down. This helped get rid of a "floating" [[ li ]] in the drop down. Without the spaces next to the li, of course. :)
Any way to remove the search function on the top of the template? - trying to reduce the space on the header of the mobile version.
Unless cut to a few words, the title of the page covers text in the body of the text (if it is near the top of the page). I guess I will have to add some white space below the title in order to deal with this issue.
Black Belt Wiki - A Free Martial Arts Wiki
Another stupid question - Is there any way to hide the extra large page title versus going into each page and deleting the title?
Will
Black Belt Wiki - A Free Martial Arts Wiki
Okay - I figured out how to get rid of the search box and large title. Hint to everyone else - Edit the theme. :)
Now to figure out how to get rid of the empty space (where the search box was).
Thanks again for the help.
Will
Black Belt Wiki - A Free Martial Arts Wiki
I quickly went through the most common themes and adapted them to work with HTTPS sites. Basically I made links protocol-agnostic, by replacing http:// with just //, e.g.
to
It should work much better now :-)
Michał Frąckowiak @ Wikidot Inc.
Visit my blog at michalf.me
I'm not sure where I should ask about this. I seem to remember trying to use the contact form once before, and it either didn't work or I never got a reply. I have a wiki with this theme, but when you hover over footnotes, all the hovertext (aside from links) is invisible, which means that in order to read the text I have to actually click on the footnote. I assume there is a setting somewhere that makes the footnote hovertext white, which would of course make it invisible against the also-white box. I'm not sure how to fix this. Could anyone give me a hand?
There was a problem with a different theme that this theme depended on. I have fixed the issue and footnotes should properly show text now. Thanks for letting us know about it!
If you need help with things in the future, the Community website is a great place to ask, as experts frequently visit.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
Oh, thank goodness! That's been driving me nuts for the nearly two years I've had this wiki! Had it really never been noticed before?
Thanks for fixing it! Now my mind is finally at ease on that subject!
When it comes to marketing your online business, your return on investment (ROI) is crucial to your success.
Take digital advertising. After pouring hard-earned marketing dollars into Google or Facebook ads, you must earnestly optimize your campaigns – testing, tweaking, and hoping that all of your clicks eventually turn into sales.
Once you factor in gross profit, shipping costs, and other expenses, it’s difficult to maintain a strong enough return on investment to scale your marketing efforts.
How can i costumize the theme?
I am Groot.