mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +00:00
Improve tabs appearance
This commit is contained in:
parent
9d1ebf5899
commit
1067b577fd
@ -4,6 +4,12 @@
|
|||||||
* @author Pierre HUBERT
|
* @author Pierre HUBERT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.group-header {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
border-bottom-left-radius: 0px;
|
||||||
|
border-bottom-right-radius: 0px;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
.group-header .group-icon {
|
.group-header .group-icon {
|
||||||
max-height: 150px;
|
max-height: 150px;
|
||||||
@ -31,13 +37,10 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-header .col-md-4 {
|
|
||||||
display: table;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.group-header .box-body {
|
.group-header .box-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
border-bottom-left-radius: 0px;
|
||||||
|
border-bottom-right-radius: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-header .box-body .spacer {
|
.group-header .box-body .spacer {
|
||||||
|
25
assets/css/pages/groups/sections/tabs.css
Normal file
25
assets/css/pages/groups/sections/tabs.css
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
* Groups page tabs
|
||||||
|
*
|
||||||
|
* @author Pierre Hubert
|
||||||
|
*/
|
||||||
|
|
||||||
|
.group-page.tabs-container {
|
||||||
|
padding-top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group-page.tabs-container .nav-tabs-custom {
|
||||||
|
border-top-left-radius: 0px;
|
||||||
|
border-top-right-radius: 0px;
|
||||||
|
border-top: 1px solid #dddddd3d;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.group-page.tabs-container .nav-tabs-custom > .nav-tabs > li {
|
||||||
|
border-bottom-color: var(--primary-blue) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group-page.tabs-container .nav-tabs-custom > .nav-tabs > li.active {
|
||||||
|
border-bottom: 3px solid transparent;
|
||||||
|
border-top: none;
|
||||||
|
}
|
@ -90,6 +90,16 @@ const GroupsPage = {
|
|||||||
// Display the tabs of the group
|
// Display the tabs of the group
|
||||||
await GroupTabs.show(group, target, page);
|
await GroupTabs.show(group, target, page);
|
||||||
|
|
||||||
|
switch(page) {
|
||||||
|
|
||||||
|
case "posts":
|
||||||
|
GroupPostsPage.display(group, target)
|
||||||
|
return;
|
||||||
|
|
||||||
|
default:
|
||||||
|
ComunicWeb.common.error.pageNotFound(null, target);
|
||||||
|
}
|
||||||
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
target.appendChild(createCallout(
|
target.appendChild(createCallout(
|
||||||
|
@ -9,11 +9,10 @@ const GroupPostsPage = {
|
|||||||
/**
|
/**
|
||||||
* Display information about a group
|
* Display information about a group
|
||||||
*
|
*
|
||||||
* @param {Number} id The ID of the group to display
|
* @param {AdvancedGroupInfo} info Information about the group to display
|
||||||
* @param {Object} info Information about the group to display
|
|
||||||
* @param {HTMLElement} target The target for the page
|
* @param {HTMLElement} target The target for the page
|
||||||
*/
|
*/
|
||||||
display: function(id, info, target){
|
display: function(info, target){
|
||||||
|
|
||||||
//Check if the user can create posts or not
|
//Check if the user can create posts or not
|
||||||
if(ComunicWeb.components.groups.utils.canCreatePosts(info)){
|
if(ComunicWeb.components.groups.utils.canCreatePosts(info)){
|
||||||
@ -33,7 +32,7 @@ const GroupPostsPage = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Display form
|
//Display form
|
||||||
ComunicWeb.components.posts.form.display("group", id, postFormCol);
|
ComunicWeb.components.posts.form.display("group", info.id, postFormCol);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Display group posts
|
//Display group posts
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!-- Group tabs section -->
|
<!-- Group tabs section -->
|
||||||
<div class="row group-page">
|
|
||||||
<div class="col-md-6">
|
|
||||||
|
|
||||||
|
<div class="row group-page tabs-container">
|
||||||
|
<div class="col-md-6">
|
||||||
<div class="nav-tabs-custom">
|
<div class="nav-tabs-custom">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li v-bind:class="activePage == 'posts' ? 'active': ''"><a @click="openPage('posts')">tr("Posts")</a></li>
|
<li v-bind:class="activePage == 'posts' ? 'active': ''"><a @click="openPage('posts')">tr("Posts")</a></li>
|
||||||
|
@ -275,6 +275,7 @@ class Dev {
|
|||||||
"css/pages/groups/sections/header.css",
|
"css/pages/groups/sections/header.css",
|
||||||
"css/pages/groups/sections/membershipBlock.css",
|
"css/pages/groups/sections/membershipBlock.css",
|
||||||
"css/pages/groups/sections/posts.css",
|
"css/pages/groups/sections/posts.css",
|
||||||
|
"css/pages/groups/sections/tabs.css",
|
||||||
|
|
||||||
|
|
||||||
//Settings page
|
//Settings page
|
||||||
|
Loading…
Reference in New Issue
Block a user