Working blog markup

This commit is contained in:
cyber-dream 2023-04-29 17:26:07 +03:00
parent 471350ead1
commit 06a87af35b
5 changed files with 60 additions and 20 deletions

View File

@ -33,6 +33,7 @@ body{
width: 100%;
height: 100%;
margin: 0px;
/* font: normal 14px Summer Pixel 22, "res/SummerPixel22Regular.ttf"; */
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */

View File

@ -3,23 +3,37 @@
width: 100%;
height: 100%;
overflow: scroll;
/* Auto layout */
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
gap: 50px;
row-gap: 20px;
/* gap: 50px; */
/* row-gap: 20px; */
padding: 0px 20px 0px 20px;
}
.blog-viewer .header{
font-size: x-large;
padding: 15px;
.blog-viewer .header-h1{
font-size:x-large;
padding: 10px;
}
.blog-viewer .header-h2{
font-size:large;
padding: 6px;
}
.blog-viewer .header-h3{
font-size:larger;
padding: 2px;
}
.blog-viewer .plain-text{
padding: 0px 20px 0px 20px;
/* Auto layout */
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
gap: 5px;
/* row-gap: 20px; */
}

View File

@ -1,23 +1,27 @@
.ScrollContent {
/* TODO Move this to body? */
/*.ScrollContent {
width: 100%;
height: 100%;
overflow: scroll;
overflow-x: hidden;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
/* Firefox */
/* scrollbar-width: none; */
/* Internet Explorer 10+ */
/* -ms-overflow-style: none; */
/* Auto layout */
display: flex;
/*display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
padding: 0px;
}
}*/
.ScrollContent::-webkit-scrollbar { /* WebKit */
/* WebKit */
/* .ScrollContent::-webkit-scrollbar {
width: 0;
height: 0;
}
} */
.PropertiesList{
/* width: 100%;

View File

@ -327,4 +327,25 @@
.FileTileTitle{
white-space: nowrap;
}
}
.ScrollContent {
width: 100%;
height: 100%;
overflow: scroll;
overflow-x: hidden;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
/* Auto layout */
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
padding: 0px;
}
.ScrollContent::-webkit-scrollbar { /* WebKit */
width: 0;
height: 0;
}

View File

@ -8,11 +8,11 @@
<div id="Drag" class="WindowDragArea"></div>
</div>
<div class="ContentBorder">
<div class="blog-viewer">
<div class="blog-viewer ScrollContent">
{{ range $block := .blocks }}
<div class="{{$block.Type}}">
<div class="{{$block.Type}}" >
{{ range $data := $block.Data }}
<div>
<div style="font-size: inherit;">
{{$data}}
</div>
{{ end }}