[CSS][TWIG] Panels icons are now hidden on desktop view to stop possible inconsistencies on window resizing. Left Panel polish.

Signed-off-by: Eliseu Amaro <mail@eliseuama.ro>
This commit is contained in:
Eliseu Amaro 2021-07-24 18:16:27 +01:00 committed by Hugo Sales
parent 2bae14198b
commit cd05589f67
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
3 changed files with 49 additions and 66 deletions

View File

@ -123,8 +123,8 @@ summary:focus > svg {
} }
hr { hr {
all: unset;
display: block; display: block;
border: none;
height: 2px; height: 2px;
background-image: linear-gradient(to right, var(--bg1), transparent 90%); background-image: linear-gradient(to right, var(--bg1), transparent 90%);
} }
@ -194,9 +194,8 @@ html {
/* THE FOCUSED (middle) DIV */ /* THE FOCUSED (middle) DIV */
.content { .content {
margin: var(--main-size); box-sizing: border-box;
margin-left: calc(2 * var(--main-size)); padding: calc(2 * var(--main-size));
margin-right: calc(2 * var(--main-size));
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: calc(3 * (100% / 5)); width: calc(3 * (100% / 5));
@ -267,6 +266,15 @@ figcaption a:link {
/* MEDIA QUERIES */ /* MEDIA QUERIES */
@media (min-width: 1200px) { @media (min-width: 1200px) {
.icon-left,
.icon-right {
display: none;
}
summary {
cursor: none;
}
.panel aside { .panel aside {
position: fixed; position: fixed;
display: flex !important; display: flex !important;
@ -279,20 +287,21 @@ figcaption a:link {
height: calc(100vh - (3 * var(--small-size) + var(--main-size))); height: calc(100vh - (3 * var(--small-size) + var(--main-size)));
animation: fadeIn 300ms cubic-bezier(0, 0.55, 0.45, 1); animation: fadeIn 300ms cubic-bezier(0, 0.55, 0.45, 1);
} }
.panel[open] aside {
display: none !important;
}
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
.content { .content {
margin: var(--main-size); padding: var(--main-size);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
} }
.icon-left,
.icon-right {
display: flow;
}
.panel aside { .panel aside {
display: none !important; display: none !important;
} }

View File

@ -24,12 +24,12 @@
/* PROFILE */ /* PROFILE */
.profile-nav { .profile-nav {
display: flex;
flex-direction: column;
font-family: var(--display-font); font-family: var(--display-font);
} }
.profile { .profile {
width: 100%;
margin-bottom: var(--main-size); margin-bottom: var(--main-size);
background-image: radial-gradient(ellipse at 10% 10%, var(--bg3), var(--accent-blue)), background-image: radial-gradient(ellipse at 10% 10%, var(--bg3), var(--accent-blue)),
@ -67,16 +67,13 @@
color: var(--white); color: var(--white);
} }
.main-nav ul { .main-nav a {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.sec-nav a { .sec-nav {
font-size: var(--medium-size); font-size: var(--medium-size);
}
.sec-nav ul {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }

View File

@ -28,36 +28,20 @@
</div> </div>
</a> </a>
</div> </div>
<ul>
<li>
<a href='#'>Messages</a> <a href='#'>Messages</a>
</li>
<li>
<a href="{{ path("replies", {'nickname' : user_nickname}) }}" <a href="{{ path("replies", {'nickname' : user_nickname}) }}"
class='hover-effect {{ active("replies") }}'>Replies</a> class='hover-effect {{ active("replies") }}'>Replies</a>
</li>
{% for link in handle_event('InsertLeftPanelLink', user_nickname) %} {% for link in handle_event('InsertLeftPanelLink', user_nickname) %}
<li>{{ link | raw }}</li> {{ link | raw }}
{% endfor %} {% endfor %}
<li>
<a href="{{ path('settings_personal_info') }}" <a href="{{ path('settings_personal_info') }}"
class='hover-effect {{ active('settings_') }}'>Settings</a> class='hover-effect {{ active('settings_') }}'>Settings</a>
</li>
<li>
<a href='{{ path('logout') }}'>Logout</a> <a href='{{ path('logout') }}'>Logout</a>
</li>
</ul> </ul>
{% else %} {% else %}
<div class="profile"> <div class="profile">
<ul>
<li>
<a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a> <a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
</li>
<li>
<a href="{{ path('register') }}">Register</a> <a href="{{ path('register') }}">Register</a>
</li>
</ul>
</div> </div>
{% endif %} {% endif %}
@ -67,29 +51,22 @@
<hr> <hr>
<nav class='sec-nav'> <nav class='sec-nav'>
<ul>
<li>
<a href="{{ path('main_public') }}" <a href="{{ path('main_public') }}"
class='{{ active('main_public') }}'>Public</a> class='{{ active('main_public') }}'>Public</a>
</li>
{% if user_nickname is defined %} {% if user_nickname is defined %}
<li>
<a href="{{ path("home_all", {'nickname' : user_nickname}) }}" <a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
class='{{ active("home_all") }}'>Home</a> class='{{ active("home_all") }}'>Home</a>
</li>
{% endif %} {% endif %}
<li>
<a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a> <a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
</li>
{% if main_nav_tabs is defined %} {% if main_nav_tabs is defined %}
{% for tab in main_nav_tabs %} {% for tab in main_nav_tabs %}
<li>
<a href="{{ path(tab['route']) }}" <a href="{{ path(tab['route']) }}"
class='{{ active(tab['route']) }}'>{{ tab['title'] }}</a> class='{{ active(tab['route']) }}'>{{ tab['title'] }}</a>
</li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul>
</nav> </nav>
</div> </div>