mirror of
https://github.com/Gioni06/terminal.css
synced 2025-03-09 17:19:04 -04:00
Add timeline component
This commit is contained in:
parent
dc5b43ece2
commit
5f9c04fe7f
@ -764,6 +764,39 @@ select:-webkit-autofill:focus {
|
|||||||
padding: var(--global-space);
|
padding: var(--global-space);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.terminal-timeline {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 70px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-timeline:before {
|
||||||
|
content: ' ';
|
||||||
|
background: var(--secondary-color);
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
left: 35px;
|
||||||
|
width: 2px;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-timeline .terminal-card {
|
||||||
|
margin-bottom: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-timeline .terminal-card:before {
|
||||||
|
content: ' ';
|
||||||
|
background: var(--invert-font-color);
|
||||||
|
border: 2px solid var(--secondary-color);
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
margin-top: 25px;
|
||||||
|
left: 26px;
|
||||||
|
width: 15px;
|
||||||
|
height: 15px;
|
||||||
|
z-index: 400;
|
||||||
|
}
|
||||||
|
|
||||||
.terminal-alert {
|
.terminal-alert {
|
||||||
color: var(--font-color);
|
color: var(--font-color);
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<li><a href="#Forms">Forms</a></li>
|
<li><a href="#Forms">Forms</a></li>
|
||||||
<li><a href="#Progress">Progress Bar</a></li>
|
<li><a href="#Progress">Progress Bar</a></li>
|
||||||
<li><a href="#Cards">Cards</a></li>
|
<li><a href="#Cards">Cards</a></li>
|
||||||
|
<li><a href="#Timeline">Timeline</a></li>
|
||||||
<li><a href="#Alerts">Alerts</a></li>
|
<li><a href="#Alerts">Alerts</a></li>
|
||||||
<li><a href="#Media">Media</a></li>
|
<li><a href="#Media">Media</a></li>
|
||||||
<li><a href="#Figure">Image with caption</a></li>
|
<li><a href="#Figure">Image with caption</a></li>
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
<hr />
|
<hr />
|
||||||
<%- include('components/card') %>
|
<%- include('components/card') %>
|
||||||
<hr />
|
<hr />
|
||||||
|
<%- include('components/timeline') %>
|
||||||
|
<hr />
|
||||||
<%- include('components/alerts') %>
|
<%- include('components/alerts') %>
|
||||||
<hr />
|
<hr />
|
||||||
<%- include('components/figure') %>
|
<%- include('components/figure') %>
|
||||||
|
22
src/partials/components/timeline.ejs
Normal file
22
src/partials/components/timeline.ejs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<section>
|
||||||
|
<header><h2 id="Timeline">Timeline</h2></header>
|
||||||
|
<div class="terminal-timeline">
|
||||||
|
<div class="terminal-card">
|
||||||
|
<header>Card Title</header>
|
||||||
|
<div>
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, quas
|
||||||
|
ex vero enim in doloribus officiis ullam vel nam esse sapiente velit
|
||||||
|
incidunt. Eaque quod et, aut maiores excepturi sint.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="terminal-card">
|
||||||
|
<header>Card Title</header>
|
||||||
|
<div>
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, quas
|
||||||
|
ex vero enim in doloribus officiis ullam vel nam esse sapiente velit
|
||||||
|
incidunt. Eaque quod et, aut maiores excepturi sint.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
</section>
|
Loading…
x
Reference in New Issue
Block a user