Commit Graph

53 Commits

Author SHA1 Message Date
Bea 984f89ece5 Update Remark42 commenting server URL 2022-05-15 17:41:25 +02:00
Bea a39ed9a787 Make info at end of post prettier
This is kind of a hacky implementation.
We are using a negative margin to remove the left&right padding from the content div and expand the background color.

What we should do instead, is move the
padding: 0 60px 20px; (and following media queries)
from "mind-post_central-column" to "mind-post_content", and set the mind-post_central-column side padding to zero, if necessary.

This way, only the actual post content will be "centered" and with spacing at the sides, while other stuff (post info, comments) can have their own custom padding and spacing.

In the case of the info box, it should have zero margin (so be 100% large) with spacing (padding) inside of the box itself.
2021-03-17 17:20:29 +01:00
Bea efbc59f5d0 Improve feature image aspect ratio on small screens 2021-03-17 17:01:38 +01:00
Bea fbf125bf20 Fix wrong aspect ratio in pages
Pages have no columns, so we had to account for that.
2021-03-17 16:54:14 +01:00
Bea 63be0bf650 Make feature image have consistent 21:9 aspect ratio 2021-03-17 16:38:53 +01:00
Bea 1a5be0c2c6 Make feature image have a max height when showed in a post 2021-03-17 16:06:16 +01:00
Bea 9418dce69f Update theme for Ghost v4.0 2021-03-17 08:30:30 +01:00
Bea 9dfccddf8c Add padding at end of posts and pages
It looks better.
2021-03-16 20:41:36 +01:00
Bea 5959da4dec Make policy popup less annoying 2021-03-16 20:39:13 +01:00
Bea 09e0c3d016 Make post info text responsive 2021-03-16 18:39:18 +01:00
Bea 50c7afc806 Fix post info at bottom 2021-03-16 18:36:06 +01:00
Bea 16beaedc6f Fix policy opt-out issue 2021-03-16 17:50:12 +01:00
Lorenzo Dellacà c3bc836a99 Update 'assets/js/scripts/policy-popup.js' 2021-03-16 17:44:28 +01:00
Lorenzo Dellacà 29ca10e4dd Add function to remove consent 2021-03-16 17:41:44 +01:00
Lorenzo Dellacà 6af0e8208c Add Matomo method for opt-in 2021-03-16 17:40:31 +01:00
Lorenzo Dellacà 5fc071a534 Add cookie consent fix 2021-03-16 17:39:58 +01:00
Bea d976eaed0c Make <a> tag less bright
It was completely white before, and it had too much contrast in comparison to the rest of the text. Now, it's rgb(220, 220, 220).
2021-01-03 15:59:55 +01:00
Bea 7dc83d3f75 Add PrismJS languages compatibility
Now, text highlighting supports HTML, CSS, C, JS, Bash, Batch, C++, C#, .gitignore, Java, JSON and YAML.
2021-01-03 11:49:54 +01:00
Bea 3adf2fcde4 Organize scripts under subdirectories 2021-01-03 11:38:55 +01:00
Bea 1890876929 Implement code highlighting via PrismJS
PrismJS has been locally included with a custom theme, to allow auto-highlighting of code blocks.
2021-01-03 11:25:51 +01:00
Bea 40396bb835 Fix some fonts being too small 2020-11-10 21:58:41 +01:00
Bea e4bb647586 Make /tags/ page responsive, fix some paddings
In post cards, the "tag and date" text was slightly moved to the right and looked ugly. This was fixed.
The /tags/ page had a horizontal padding of 0 which made it look ugly. Solved.
The /tags/ page now scales based on screen size and is responsive. Fixes #5
2020-11-10 21:27:06 +01:00
Bea 3532021222 Hide Remark42's own footer 2020-11-10 19:28:59 +01:00
Bea 014a1ccf38 Make <a> underlined and animated 2020-11-09 23:28:32 +01:00
Bea deabfa8d93 Fix KG Bookmark sizing and proportions
This commit fixes #4.
The kg bookmark sometimes had weird proportions, depending on the original image size and how long the text to show is. Also, the title was not clamped to 2 lines max.
2020-11-09 19:35:10 +01:00
Bea 2aaf12a905 Make code block text a little darker 2020-11-09 12:25:31 +01:00
Bea a962887133 Fix mobile title and code block
- On posts, the line-height was too high and mobile devices were overflowing the title on top. Now it's smaller, so a longer title should not be a problem.
- The horizontal navbar on code blocks was always present. Now, it only shows when necessary.
2020-11-09 12:13:02 +01:00
Bea e899839211 Implement more image resizing, fix responsiveness
- Two new image sizes have been added: xl and xxl.
- Image resizing has been implemented in featured images.
- Some elements were not responsive, such as the link preview and code block.
2020-11-06 17:35:02 +01:00
Bea dfb76da486 Fix footer and homepage responsive fonts
Fonts had weird sizes in the homepage, and the footer was at a fixed 25px.
Now, they both scale correctly.
2020-11-06 01:34:32 +01:00
Bea d8b54a00d9 Proceed implementing responsive theme
The responsive theme is almost ready; most pages and elements now render correctly on the vast majority of screens. There are some known issues which are in the works.

Also, a <h4> "Paragraphs" title has been aded on the left navbar.
2020-11-06 00:28:34 +01:00
Bea ae728ffd9e Made navbar responsive & policy popup faster 2020-11-05 21:19:43 +01:00
Bea fe27137016 Start responsive design implementation
This commit brings a big update to the screen.css file, making the homepage + policy popup almost 100% responsive.
Another added feature is in the left sidebar: the currently viewed paragraph's title is now highlighted.
2020-11-05 20:44:02 +01:00
Bea 83302f7cc3 Added script to make list of headers
Added a new script with the purpose of getting all headers from a post's content and creating links for them in the left sidebar.
Some div classes have been modified, and a wrapper div has been added to posts because of this new script.
Some minor CSS changes have been made.
2020-11-05 16:14:13 +01:00
Bea 13243eed69 Fix post columns applied to page content
- this commit fixes #3.
2020-11-04 23:52:05 +01:00
Bea 58f26b715b Fix indentation 2020-11-04 23:47:36 +01:00
Bea dec41159a8 Merge remote-tracking branch 'github/master'
# Conflicts:
#	assets/css/screen.css
#	custom-tags.hbs
#	tag.hbs
2020-10-30 21:37:54 +01:00
Bea 3360f14d83 Change line endings from CRLF to LF 2020-10-30 00:19:49 +01:00
Bea 964a474355 Update text font
- Switched from Roboto to Open Sans
- Removed unused fonts
- Reduced text size from 19px to 18px
- upped version (0.0.5 to 0.0.6)
2020-10-30 00:16:35 +01:00
Bea 69c1bf00d2 Finish creating /tags/ page
The tags page was finally completed, and shows every tag
with its own image.

A "see all tags" link was added in the header of every
(single) tag's page, in case of a missing description.

Also, the "secondary navigation" div now has a relative
position and a higher z-index, so that the tags page's
header does not cast a shadow on it.

Signed-off-by: Lorenzo Dellacà <lorenzo.dellaca@mind-overflow.net>
2020-08-20 15:47:29 +02:00
Bea 3bd2fe5627 End CSS refactoring and organization
CSS refactoring is now complete, and all styles are correctly
organized in main "screen.css" file, with a table of contents.

All supplementary CSS files have been removed, with the
exception of "fonts.css", as explained in previous commit.

This CSS implementation may, however, be considered immature,
and thus could be subject to heavy changes again in the near
future.

Many things are also still missing, such as a responsive
design and support for some custom pages (such as /tags/).

Signed-off-by: Lorenzo Dellacà <lorenzo.dellaca@mind-overflow.net>
2020-08-20 14:05:14 +02:00
Bea 67344effd0 Begin CSS refactoring for improved organization
CSS code was divided in multiple files, however this was not practical
for organization since different pages needed different CSS classes one
 another, that were in most of those CSS files.

This commit brings (mostly) everything in one file with a table of
contents on top.

An exception is made for fonts, that are now in a separate "fonts.css"
file, since they contain fundamentally different things.

Classes organization is not yet complete, however a great part was done.
Next commits will finalize this organization and finish moving classes.

Signed-off-by: Lorenzo Dellacà <lorenzo.dellaca@mind-overflow.net>
2020-08-18 18:20:39 +02:00
Bea da155c7d7e Lots of changes
- add tags.hbs
- add home.hbs, copy of index.hbs
- change <h1> global font size
 make some animations faster
- make post title & footer background black instead of animated gradient
- make "services" link in navbar white instead of animated gradient
- move some css classes to screen.css to allow tags.hbs accessing them
- fix policy popup being covered (issue #001)
- fix policy popup style
- fig kg-bookmark thumbnail image
- add PT Serif font
- add category and posted date under post title
- move big post cards to post-card-big.hbs, so both index, home and tags can access it
- mode post post cards style to new post-card-style.css file
- update page.hbs, now rendering correctly and including content
- add "l" size to package.json, to allow more high-res images
2020-08-18 15:30:35 +02:00
Bea e9c2f9ea41 improve css in general:
- display images as blocks
- style and add <hr> div before comments section

move remark42 from subdomain to subdirectory
2020-08-17 14:44:33 +02:00
Bea 061b6dc122 implement some image resizing (todo: implement in whole website)
fix/improve css
change arrow-fade mode
2020-08-16 17:58:46 +02:00
Bea 3b4b716667 implement sidebar related-posts style
implement remark42 commenting system
2020-08-16 12:25:09 +02:00
Bea a1f0fcaf99 implement posts style, to be completed
change font
add secondary navigation to homepage
2020-08-15 12:40:28 +02:00
Bea 121708786d general style update:
- update homepage style
- update navbar style
- update footer style
- update feed animation
- add website logo
2020-08-13 19:35:53 +02:00
Bea 25b37da7ce fix minor stuff, rename some CSS classes 2020-08-13 15:41:45 +02:00
Bea 3b02a75451 began structuring index page. posts now show correctly on a 1920x1080 screen. 2020-08-13 14:23:29 +02:00
Bea 359e6108c9 WIP: blog implementation on homepage 2020-08-12 18:55:35 +02:00