Skip to content
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

Pycamp2024 mejora css basica #156

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@

# A small copyright notice for the page footer (in HTML).
# (translatable)
CONTENT_FOOTER = 'Contents &copy; {date} <a href="mailto:{email}">{author}</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a> {license}'
CONTENT_FOOTER = '<span>Contents &copy; {date} <a href="mailto:{email}">{author}</a> - Powered by <a href="https://getnikola.com" rel="nofollow" target="_blanc">Nikola</a> {license}</span><span><a href="" rel="nofollow" target="_blanc">Aporta a PyAr con tu donación<a/></span>'

# Things that will be passed to CONTENT_FOOTER.format(). This is done
# for translatability, as dicts are not formattable. Nikola will
Expand Down
31 changes: 21 additions & 10 deletions themes/pyar/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ body {
.page-header {
color: #FB8B00;
margin-top: 30px;
margin-bottom: 20px;
}
.pull-right {
float: right !important;
}

#content {
background: #fff;
border-radius: 8px;
padding: 0px 20px 30px;
border-radius: 0 0 8px 8px;
margin-bottom: 30px;
word-wrap: break-word;
padding: 0;
}

@media (max-width: 992px) {
Expand Down Expand Up @@ -160,10 +162,14 @@ h4.list-group-item-heading {
/*
* Navbar
*/


#main-navbar {
padding: .5rem 0;
}
.navbar-header div.loginreg {
text-align: center;
margin-top: 38px;
width: calc(100% - 195px);
}
.banner {
padding: 0px 20px;
Expand Down Expand Up @@ -195,7 +201,7 @@ h4.list-group-item-heading {
text-indent: -9999px;
background-position: center;
background-repeat: no-repeat;
background-image: url(https://www.python.org.ar/static/img/logo-header.png);
background-image: url(https://pyarweb.blob.core.windows.net/pyarweb-production/img/logo-header.png);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no se cuan estables son estos links pero funcionan por ahora...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En todo caso agregamos una carpeta de assets a este repo más adelante si estás de acuerdo.

}

#header button.navbar-toggle {
Expand Down Expand Up @@ -241,12 +247,12 @@ ul.navbar-nav > li > a > span {
}

ul.navbar-nav > li:not(.active) > a > span {
background-image: url(https://www.python.org.ar/static/img/icons/icons.png);
background-image: url(https://pyarweb.blob.core.windows.net/pyarweb-production/img/icons/icons.png);
}

ul.navbar-nav > li.active > a > span,
ul.navbar-nav > li:hover > a > span {
background-image: url(https://www.python.org.ar/static/img/icons/icons_active.png);
background-image: url(https://pyarweb.blob.core.windows.net/pyarweb-production/img/icons/icons_active.png);
}

ul.navbar-nav > li > a > span.inicio {
Expand Down Expand Up @@ -306,7 +312,7 @@ ul.navbar-nav > li:first-child {

@media (min-width: 768px) {
ul.navbar-nav > li.nav-item {
width: 95px;
width: 11.11%;
}
}

Expand All @@ -325,7 +331,7 @@ ul.navbar-nav > li > a {
ul.navbar-nav > li.active > a.nav-link,
ul.navbar-nav > li:hover > a.nav-link {
background-color: #39ade6;
border-bottom: 4px solid #fdca01;
border-bottom: 6px solid #fdca01;
color: white;
}

Expand All @@ -350,9 +356,11 @@ h3 {
*/

#footer {
padding-top: 30px;
padding-bottom: 20px;
background-color: #f4f4f4;
display: flex;
justify-content: space-between;
padding: 30px 15px 20px 15px;
border-radius: 0 0 8px 8px;
}

#footer a {
Expand Down Expand Up @@ -462,6 +470,9 @@ time.published {
.navbar-header div.loginreg {
margin-top:0;
}
.navbar-nav {
flex-grow: 1;
}
.banner-wrapper {
color: white;
width: 100%;
Expand Down
10 changes: 5 additions & 5 deletions themes/pyar/templates/base.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<body>
<a href="#content" class="sr-only sr-only-focusable">{{ messages("Skip to main content") }}</a>

<div class="container">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<div class="container px-0">
<nav id="main-navbar" class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="https://www.python.org.ar/">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="http://www.python.org.ar"><span class="inicio"></span>Inicio</a>
</li>
Expand Down Expand Up @@ -66,7 +66,7 @@
</div><aside class="col-md-4 blog-sidebar">{{ theme_config.get('sidebar') }}</aside></div>
{% endif %}

<footer id="footer">
<footer id="footer" class="bg-light">
{{ content_footer }}
{{ template_hooks['page_footer']() }}
</footer>
Expand Down
2 changes: 1 addition & 1 deletion themes/pyar/templates/story.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% extends 'post.tmpl' %}

{% block content %}
<div class="col-lg-12">
<div class="col-lg-12 px-4 py-2">
<div class="page-header">
<div class="pull-right">
<a href="https://github.com/PyAr/wiki/blob/master/{{ post.source_path }}" id="sourcelink" class="nav-link">Editar</a>
Expand Down