Skip to content

Commit

Permalink
Update css for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Jul 6, 2024
1 parent 48ce640 commit 4612551
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/blog/jinja2/blog/clipping.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% endblock %}

{% block content %}
<div id="blog-area">
<div id="clipping-area">
{% block button %}
{% endblock %}
{% block page_title %}
Expand Down
20 changes: 15 additions & 5 deletions src/blog/static/css/blog.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/* General Blog Pages */
#blog-area,
#clipping-area,
#posts-area{
max-width: 600px;
margin: 0 auto;
}
.post{
margin-bottom: 30px;
margin: 0px 1.5em 3em 1.5em;
}
.post a,
#category-header a{

transition: all 0.2s ease-in;
background-image: linear-gradient( to top, #05f7ae, #05f7ae 50%, transparent 50%, transparent );
background-position: 100% 0%;
Expand All @@ -22,7 +23,8 @@
}

#blog-area p {
text-align: left;
text-align: justify;
margin-left: 1.5em;
}


Expand All @@ -37,6 +39,7 @@
}
#post p{
text-align: justify;
margin: 1.5em 1.5em 0 1.5em;
}
#back-button{
float: left;
Expand All @@ -57,7 +60,7 @@
/* Clipping page */
.clipping{
text-align: left;
margin-top: 1.5em;
margin: 1.5em 1.5em 0 1.5em;
}
.clipping p{
margin: 0;
Expand All @@ -66,6 +69,13 @@
margin: 0;
}
.clipping a{
display: block;
display: inline-block;
margin-bottom: 8px;
}


@media all and (min-width: 800px) {
#blog-area p {
text-align: left;
}
}
6 changes: 5 additions & 1 deletion src/core/static/css/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ div.contCam:before {
.useful-links .container {
height: 50px;
margin: auto;
column-gap: 1.5em;
}

.useful-links a,
Expand Down Expand Up @@ -745,7 +746,9 @@ a.sq-github {
background-position: 100% 15%;
background-size: 100% 200%;
}

.useful-links .container {
column-gap: 0;
}
.contCam {
min-width: 250px;
}
Expand Down Expand Up @@ -815,6 +818,7 @@ a.sq-github {
height: 30px;
max-width: 40px;
}

}

/* Hover Elements */
Expand Down

0 comments on commit 4612551

Please sign in to comment.