Skip to content

Instantly share code, notes, and snippets.

@johnsardine
Created September 18, 2012 23:58
Show Gist options
  • Save johnsardine/3746818 to your computer and use it in GitHub Desktop.
Save johnsardine/3746818 to your computer and use it in GitHub Desktop.
Estilo da lista que contem cada prova
/* Estilo da lista que contem cada prova */
.event-list {
/* background: red; */
width: 600px;
padding: 0;
padding-left: 10px;
padding-bottom: 10px;
margin: 0;
font-family: sans-serif;
}
/* Retirar a bola de cada entrada da lista(prova) */
.event-list li {
list-style: none;
}
/* Estilo a aplicar a todas as progras, a direita e esquerda */
.event {
position: relative;
/* background: green; */
padding: 25px 0;
width: 50%;
}
/* Ajustes para a primeira bola da lista */
.event:first-child {
padding-top: 0;
}
.event:first-child::before {
top: 10px;
}
/* Ajustes para a ultima bola da lista */
.event:last-child {
padding-bottom: 0;
}
.event:last-child::before {
top: auto;
bottom: 0;
}
/* Estilo para as provas a esquerda */
.event-left {
border-right: 4px solid #009fc6;
}
/* Bola das provas a esquerda */
.event-left::before {
content: '';
position: absolute;
height: 20px;
width: 20px;
right: -12px;
top: 50%;
margin-top: -10px;
background: #009fc6;
border-radius: 50%;
}
/* Estilo para as provas a direita */
.event-right {
border-left: 4px solid #009fc6;
margin-left: 50%;
padding-left: 20px;
}
/* Bola das provas a direita */
.event-right::before {
content: '';
position: absolute;
height: 20px;
width: 20px;
left: -12px;
top: 50%;
margin-top: -10px;
background: #009fc6;
border-radius: 50%;
}
/* Estilo de cada bola com o ano */
.event-year {
position: relative;
right: -2px;
color: #fff;
background: #009fc6;
padding: 20px 0;
margin-left: 45%;
margin-right: 45%;
border-radius: 50%;
text-align: center;
}
<h2>XCMarathon</h2>
<h2>XCOlympic</h2>
<ul class="event-list">
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event event-left">2º Junior Final do tbe</li>
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event-year">2012</li>
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event event-left">2º Junior Final do tbe</li>
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event-year">2012</li>
<li class="event event-right">2º Junior Final do tbe</li>
<li class="event event-left">2º Junior Final do tbe</li>
<li class="event event-right">2º Junior Final do tbe</li>
</ul>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment