aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-23 10:09:46 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-23 10:09:46 +0100
commit3b9b03cf86979b28e7fa249133176bed84b0105c (patch)
tree336dc8b8b9627e7f4a93e5c35fe3e98555274616 /view/theme/redbasic
parent2e5a993f880d619aedf3693927e7b3e164fbfcc0 (diff)
parentef39c1e94b5149a3019d417d08dc7c16c8aef9c1 (diff)
downloadvolse-hubzilla-3b9b03cf86979b28e7fa249133176bed84b0105c.tar.gz
volse-hubzilla-3b9b03cf86979b28e7fa249133176bed84b0105c.tar.bz2
volse-hubzilla-3b9b03cf86979b28e7fa249133176bed84b0105c.zip
Merge branch '2.0RC'
Diffstat (limited to 'view/theme/redbasic')
-rw-r--r--view/theme/redbasic/css/style.css105
-rw-r--r--view/theme/redbasic/js/redbasic.js47
-rw-r--r--view/theme/redbasic/php/style.php2
3 files changed, 126 insertions, 28 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index a6d1d2a7e..7254be552 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -22,6 +22,7 @@ body {
color: $font_colour;
margin: 0px;
height: 100%;
+ overflow-x: hidden;
}
aside {
@@ -30,24 +31,56 @@ aside {
max-width: $aside_widthpx;
}
+aside #region_1 {
+ border-right: 1px solid transparent;
+}
+
+aside #left_aside_wrapper {
+ margin-bottom: 10px;
+}
+
main {
margin-left: auto;
margin-right: auto;
max-width: $main_widthpx;
}
-h1, .h1, h2, .h2 {
+#overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ cursor: pointer;
+ z-index: 1029;
+}
+
+h1, .h1 {
+ font-size: 2em;
+}
+
+h2, .h2 {
font-size: 1.667em;
}
-h3, .h3, h4, .h4 {
+h3, .h3 {
font-size: 1.334em;
}
-h5, .h5, h6, .h6 {
- font-size: 0.75rem;
+h4, .h4 {
+ font-size: 1em;
+ font-weight: bold;
+}
+
+h5, .h5 {
+ font-size: 1em;
}
+h6, .h6 {
+ font-size: 0.75em;
+}
+
+
.jslider {
font-family: sans-serif, arial, freesans;
}
@@ -109,6 +142,11 @@ input, optgroup, select, textarea {
resize: vertical;
}
+#help-content pre code {
+ overflow-x: auto;
+ white-space: pre;
+}
+
pre code {
border: none;
}
@@ -468,7 +506,6 @@ footer {
#contact-block {
width: 100%;
- float: left;
}
#contact-block-numcontacts {
@@ -477,12 +514,10 @@ footer {
}
.contact-block-div {
- float: left;
- width: 50px;
- height: 50px;
+ display: inline;
}
+
.contact-block-textdiv {
- float: left;
width: 150px;
height: 34px;
}
@@ -490,12 +525,11 @@ footer {
#contact-block-end {
clear: both;
}
-.contact-block-link {
- float: left;
-}
+
.contact-block-img {
- width:48px;
- height:48px;
+ width:47px;
+ height:47px;
+ margin-bottom: 3px;
}
#tag-remove {
@@ -1515,7 +1549,11 @@ nav .dropdown-menu {
color: $nav_icon_colour;
}
-#avatar:hover + #usermenu-caret {
+.usermenu-head {
+ float: left;
+}
+
+.usermenu-head:hover #usermenu-caret {
color: $nav_active_icon_colour;
}
@@ -1645,6 +1683,7 @@ main.fullscreen .section-content-wrapper-np {
.atoken-index-row:hover td,
.chatroom-index-row:hover td,
+.wikis-index-row:hover td,
.locs-index-row:hover td,
[id^="cloud-index-"]:hover td,
.cloud-index-active {
@@ -1778,6 +1817,7 @@ nav .badge.mail-update:hover {
#expand-aside,
#expand-tabs,
+#doco-return-to-top-btn,
#context-help-btn {
color: $nav_active_icon_colour;
padding: 7px 10px;
@@ -1826,10 +1866,6 @@ nav .badge.mail-update:hover {
}
main {
- transition: all 0.25s ease-in-out;
- }
-
- main {
left: -$aside_widthpx;
width: calc( 100% + $aside_widthpx );
}
@@ -2021,11 +2057,34 @@ dl.bb-dl > dd > li {
}
.embed-photo-selected-photo {
- border-color: blue;
- border-style: solid;
- border-width: 5px;
+ border-color: blue;
+ border-style: solid;
+ border-width: 5px;
}
#wiki-preview img {
- max-width: 100%;
+ max-width: 100%;
+}
+
+#ace-editor,
+#editor {
+ border-bottom-left-radius: $radiuspx;
+ border-bottom-right-radius: $radiuspx;
+}
+
+.sub-menu {
+ margin-top: 10px;
+ padding-left: 15px;
+ border-left: 3px solid #eee;
+}
+
+.nav-pills-stacked-icons {
+ padding: 6px 10px;
+ float: right;
+ position: relative;
+ z-index:1;
+}
+
+.nav-pills-stacked-icons:hover + a {
+ background-color: #eee;
}
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 999b46268..e31458b4e 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -8,7 +8,7 @@ $(document).ready(function() {
if( $('#css3-calc').width() == 10) {
$(window).resize(function() {
if($(window).width() < 767) {
- $('main').css('width', $(window).width() + 287 );
+ $('main').css('width', $(window).width() + $('aside').outerWidth() );
} else {
$('main').css('width', '100%' );
}
@@ -16,9 +16,25 @@ $(document).ready(function() {
}
$('#css3-calc').remove(); // Remove the test element
- $('#expand-aside').click(function() {
- $('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left');
- $('main').toggleClass('region_1-on');
+ if($(window).width() > 767) {
+ $('#left_aside_wrapper').stick_in_parent({
+ offset_top: $('nav').outerHeight(true)
+ });
+ }
+
+ $('#expand-aside').on('click', toggleAside);
+
+ $('section').on('click', function() {
+ if($('main').hasClass('region_1-on')){
+ toggleAside();
+ }
+ });
+
+ $(window).on('scroll', function() {
+ if($('main').hasClass('region_1-on') && $(window).scrollLeft() > 5){
+ $(window).scrollLeft(0);
+ toggleAside();
+ }
});
if($('aside').length && $('aside').html().length === 0) {
@@ -32,6 +48,12 @@ $(document).ready(function() {
$('#expand-tabs-icon').toggleClass('fa-arrow-circle-down').toggleClass('fa-arrow-circle-up');
});
+ $('.usermenu-head').click(function() {
+ if($('#navbar-collapse-1').hasClass('in')){
+ $('#navbar-collapse-1').removeClass('in');
+ }
+ });
+
if($('#tabs-collapse-1').length === 0) {
$('#expand-tabs').hide();
}
@@ -66,5 +88,22 @@ function makeFullScreen(full) {
$('#tabs-collapse-1').css({'visibility': ''});
$('#inline-btn').hide();
$('main').css({'transition': ''});
+ $(document.body).trigger("sticky_kit:recalc");
+ }
+}
+
+function toggleAside() {
+ $('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left');
+ if($('main').hasClass('region_1-on')){
+ $('main').removeClass('region_1-on')
+ $('#overlay').remove();
+ $('#left_aside_wrapper').trigger("sticky_kit:detach");
+ }
+ else {
+ $('main').addClass('region_1-on')
+ $('<div id="overlay"></div>').appendTo('section');
+ $('#left_aside_wrapper').stick_in_parent({
+ offset_top: $('nav').outerHeight(true)
+ });
}
}
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 2db0d4c44..9b994ebdf 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -165,7 +165,7 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
$x .= $schemecss;
}
- $aside_width = 287;
+ $aside_width = 288;
// left aside and right aside are 285px + converse width
if($align_left) {