Skip to content

Commit

Permalink
Actualizo estilo de columnas
Browse files Browse the repository at this point in the history
  • Loading branch information
chrodriguez committed Jan 3, 2025
1 parent 41f254c commit 3cc18af
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ Then start editing `theme/source/mikroways.scss` while executing:

```
npm run sass
npm run sass -- --watch
```


> This command will regenerate `theme/mikroways.css` each time source sass file
> is modified.
Expand Down
54 changes: 49 additions & 5 deletions example/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,32 @@ This is a sample text

This text is outside columns, but the following text is placed inside columns:

<div class="container">
<div class="container small">
<div class="col">

### Column 1

This is a text inside column 1. As you can see, text flows but don't overlaps
with next column
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

```
ls
```
</div>

<div class="col">

### Column 2

* Item 1
* Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

```
ls
```

</div>
</div>

Expand All @@ -90,6 +101,39 @@ with next column
* Item 2
</div>
</div>
----
# Code in columns

This text is outside columns, but the following text is placed inside columns:

<div class="container">
<div class="col">

### Column 1

```c
#include <stdio.h>

int main()
{
printf("Hello world, from Mikroways\n");
return 0;
}
```
</div>

<div class="col">

### Column 2

```ruby
hello="Hello"
world="world"
puts "#{hello} #{world}! from Mikroways"
```
</div>
</div>

---

# Shadows
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"demo": "reveal-md --watch --theme theme/mikroways.css example/demo.md",
"static": "reveal-md --static --theme theme/mikroways.css example/demo.md && cp example/images/*cast _static/images/",
"sass": "node-sass --watch theme/source/mikroways.scss theme/mikroways.css"
"sass": "node-sass theme/source/mikroways.scss theme/mikroways.css"
},
"repository": {
"type": "git",
Expand Down
6 changes: 5 additions & 1 deletion theme/mikroways.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions theme/source/mikroways.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ $whiteLogo: 'iVBORw0KGgoAAAANSUhEUgAAAyAAAAEMCAMAAAALXyI+AAAA0GVYSWZJSSoACAAAAAo

.col {
flex: 1;
margin-left: 5px;
margin-right: 5px;
padding-left: 3px;
padding-right: 3px;
}

.main-list {
Expand Down

0 comments on commit 3cc18af

Please sign in to comment.