Skip to content

Frontend restructure #319

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

Merged
merged 26 commits into from
Mar 7, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
973559a
Frontend build with zurb foundation to reestructure CCGN styles
hugosolar Jan 15, 2019
a8ac782
Home Layout & style refactoring
hugosolar Jan 16, 2019
5fc6ca2
home refactoring
hugosolar Jan 16, 2019
24c2091
full-width, page-faqs refactoring && standard styles for post content
hugosolar Jan 17, 2019
382a652
hub-page styles & refactoring hub-page
hugosolar Jan 18, 2019
fcd85fd
Major layout refactoring and some templates were added
hugosolar Jan 22, 2019
55a0b1d
Website responsiveness
hugosolar Jan 22, 2019
33117ce
responsiveness style improve
hugosolar Jan 23, 2019
70fd2d2
faqs page mobile header fix
hugosolar Jan 23, 2019
f373477
responsive mobile fixes buddypress & 404
hugosolar Jan 24, 2019
31ed589
mobile Search improvement
hugosolar Jan 25, 2019
265df95
New Chapter section backend && queulat toolset mu-plugin
Feb 11, 2019
6c14881
Chapter section Frontend redesign && remove old styles (everything is…
hugosolar Feb 13, 2019
5676c7b
chapters redesign map interaction
hugosolar Feb 14, 2019
24ac5a2
chapters section datatable integration
hugosolar Feb 18, 2019
b5e98e7
add global settings screen in WP backend & style fixes
hugosolar Feb 20, 2019
4ca1cb0
adding files that were missed
hugosolar Feb 20, 2019
c390bb2
Fix position of container over the map
hugosolar Feb 21, 2019
2ac9371
delete global stats transients when chapter metabox is saved
hugosolar Feb 21, 2019
5ca68ee
fix responsiveness in chapter section
hugosolar Feb 21, 2019
a655f23
responsive style fix on user profiles
hugosolar Mar 6, 2019
774e5b7
fix search mobile menu z-index
hugosolar Mar 6, 2019
2a3010c
remove composer.lock from repository
hugosolar Mar 6, 2019
3f2f715
fix chapter section style && permissions to sub admin role
hugosolar Mar 7, 2019
0903b6f
merge with master
hugosolar Mar 7, 2019
8fe26cd
fix search mobile container
hugosolar Mar 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix responsiveness in chapter section
  • Loading branch information
hugosolar committed Feb 21, 2019
commit 5ca68ee7d7a73981a5fb5717b1b2657cbb3db772
9 changes: 9 additions & 0 deletions frontend-build/scss/modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,14 @@ table.ccgn-profile {
#chapters-table {
width: 100% !important;
}
&.map-list {
@include breakpoint(medium only) {
display: block;
}
@include breakpoint(small only) {
display: block;
}
}
}
.view-switch {
.grid-x {
Expand Down Expand Up @@ -768,6 +776,7 @@ table.ccgn-profile {
font-weight: bold;
}
.subtitle {
display: block;
text-transform: uppercase;
}
.title {
Expand Down
6 changes: 3 additions & 3 deletions themes/cc-commoners/archive-cc_chapters.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>
</div>

<div class="view-switch">
<div class="view-switch show-for-large">
<div class="grid-x align-justify">
<div class="cell large-3 title">
Switch view
Expand All @@ -33,7 +33,7 @@
</div>
</div>
</div>
<div class="world-map view-content active" id="view-map">
<div class="world-map view-content active show-for-large" id="view-map">
<?php get_template_part('template-parts/maps/world','map'); ?>
<div id="world-map-info">
<h2 class="chapter-title"></h2>
Expand Down Expand Up @@ -84,7 +84,7 @@
<div class="cell large-10">
<div class="chapter-stats">
<?php $global_stats = Commoners::stats(); ?>
<div class="grid-x grid-margin-x large-up-3 medium-up-3 small-up-3">
<div class="grid-x grid-margin-x large-up-3 medium-up-3 small-up-1">
<?php if (!empty($global_stats['total_members'])) : ?>
<div class="cell">
<article class="stat-box">
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions themes/cc-commoners/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4778,6 +4778,12 @@ table.ccgn-profile {
display: block; }
.view-content #chapters-table {
width: 100% !important; }
@media screen and (min-width: 40em) and (max-width: 63.99875em) {
.view-content.map-list {
display: block; } }
@media screen and (max-width: 39.99875em) {
.view-content.map-list {
display: block; } }

.view-switch .grid-x {
padding: 1rem 0;
Expand Down Expand Up @@ -4898,6 +4904,7 @@ table.ccgn-profile {
line-height: 5.6rem;
font-weight: bold; }
.chapter-stats .cell .stat-box .subtitle {
display: block;
text-transform: uppercase; }
.chapter-stats .cell .stat-box .title {
font-size: 2.625rem;
Expand Down
3 changes: 2 additions & 1 deletion themes/cc-commoners/assets/js/cc-commoners-chapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jQuery(document).ready(function($){
// console.log('MOUSE X: '+e.pageX, 'MOUSE Y: '+e.pageY);
// });
var chapter_table = $('#chapters-table').DataTable({
"lengthChange": false
"lengthChange": false,
"responsive" : true
});
$('.buttons').find('.button').on('click', function(e){
e.preventDefault();
Expand Down
30 changes: 30 additions & 0 deletions themes/cc-commoners/assets/js/responsive.datatables.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading