Browse Source

More styles

imwald
Nuša Pukšič 3 months ago
parent
commit
d4e73cf690
  1. 8
      assets/styles/03-components/button.css
  2. 6
      assets/styles/03-components/nip05-badge.css
  3. 4
      templates/components/UserMenu.html.twig
  4. 1
      templates/event/index.html.twig
  5. 3
      templates/layout.html.twig
  6. 2
      templates/pages/editor.html.twig
  7. 11
      templates/static/unfold.html.twig

8
assets/styles/03-components/button.css

@ -46,13 +46,15 @@ a.btn, a.btn:hover, a.btn:active {
} }
.btn.btn-secondary { .btn.btn-secondary {
color: var(--color-secondary); color: var(--color-text);
background-color: var(--color-secondary); background-color: transparent;
border: 2px solid var(--color-bg); border: 2px solid var(--color-secondary);
text-decoration: none; text-decoration: none;
} }
.btn.btn-secondary:hover { .btn.btn-secondary:hover {
background-color: var(--color-secondary);
color: var(--color-text-contrast);
border: 2px solid var(--color-secondary); border: 2px solid var(--color-secondary);
text-decoration: none; text-decoration: none;
} }

6
assets/styles/03-components/nip05-badge.css

@ -21,9 +21,3 @@
white-space: nowrap; white-space: nowrap;
} }
@media (max-width: 640px) {
.nip05-identifier {
max-width: 150px;
}
}

4
templates/components/UserMenu.html.twig

@ -11,9 +11,7 @@
</ul> </ul>
{% endif %} {% endif %}
<ul class="user-nav"> <ul class="user-nav">
<li>
<a href="{{ path('editor-create') }}">Write Article</a>
</li>
{# <li>#} {# <li>#}
{# <a href="{{ path('reading_list_index') }}">Compose List</a>#} {# <a href="{{ path('reading_list_index') }}">Compose List</a>#}
{# </li>#} {# </li>#}

1
templates/event/index.html.twig

@ -257,6 +257,7 @@
.source-label { .source-label {
font-weight: 600; font-weight: 600;
color: #495057; color: #495057;
flex-shrink: 0;
} }
.source-link { .source-link {

3
templates/layout.html.twig

@ -11,6 +11,9 @@
<li> <li>
<a href="{{ path('newsstand') }}">Newsstand</a> <a href="{{ path('newsstand') }}">Newsstand</a>
</li> </li>
<li>
<a href="{{ path('editor-create') }}">Write Article</a>
</li>
{# <li>#} {# <li>#}
{# <a href="{{ path('lists') }}">Lists</a>#} {# <a href="{{ path('lists') }}">Lists</a>#}
{# </li>#} {# </li>#}

2
templates/pages/editor.html.twig

@ -15,7 +15,7 @@
<div class="w-container"> <div class="w-container">
{% if not is_granted('ROLE_USER') %} {% if not is_granted('ROLE_USER') %}
<div class="notice info"> <div class="notice info">
<p>Log in is required to post articles.</p> <p>Login is required to post articles.</p>
</div> </div>
{% endif %} {% endif %}
<div {{ stimulus_controller('nostr-publish', { <div {{ stimulus_controller('nostr-publish', {

11
templates/static/unfold.html.twig

@ -53,5 +53,16 @@
</div> </div>
</section> </section>
<section class="d-flex gap-3 center">
<div class="container mt-5">
<h1>Newsstand</h1>
<p class="eyebrow">for the digital age</p>
</div>
<div class="mb-5">
<div class="cta-row">
<a class="btn btn--primary" href="{{ path('newsstand') }}">Browse Magazines</a>
</div>
</div>
</section>
{% endblock %} {% endblock %}

Loading…
Cancel
Save