Skip to content

Instantly share code, notes, and snippets.

@emanoelqueiroz
Created June 5, 2018 17:49
Show Gist options
  • Save emanoelqueiroz/4fb935a4824f5f94d886fc794a24f9f2 to your computer and use it in GitHub Desktop.
Save emanoelqueiroz/4fb935a4824f5f94d886fc794a24f9f2 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Flex-Box-Trainning</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<style>
body {
margin: 0px;
}
.content {
display: flex;
flex-direction: row;
height: 100vh;
}
.box {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
}
.box1 {
background-color: crimson
}
.box2 {
background-color: cornflowerblue
}
.box3 {
background-color: darkmagenta
}
.painel {
display: flex;
flex-direction: column;
background-color: darkcyan;
width: 500px;
height: 200px;
}
.PainelRanges {
display: flex;
flex-direction: column;
}
.PainelBotao {
display: flex;
flex-direction: column-reverse;
height: 100vh;
}
.AligitensPainel {
display: flex;
justify-content: space-around;
}
input[type=range] {
-webkit-appearance: none;
width: 100%;
margin: -7.1px 0;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 26.2px;
cursor: pointer;
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
background: rgba(163, 189, 72, 0.52);
border-radius: 14.5px;
border: 0.2px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
border: 1px solid rgba(0, 0, 212, 0);
height: 12px;
width: 16px;
border-radius: 3px;
background: #a597ff;
cursor: pointer;
-webkit-appearance: none;
margin-top: 6.9px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: rgba(172, 196, 91, 0.52);
}
input[type=range]::-moz-range-track {
width: 100%;
height: 26.2px;
cursor: pointer;
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
background: rgba(163, 189, 72, 0.52);
border-radius: 14.5px;
border: 0.2px solid #010101;
}
input[type=range]::-moz-range-thumb {
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
border: 1px solid rgba(0, 0, 212, 0);
height: 12px;
width: 16px;
border-radius: 3px;
background: #a597ff;
cursor: pointer;
}
input[type=range]::-ms-track {
width: 100%;
height: 26.2px;
cursor: pointer;
background: transparent;
border-color: transparent;
color: transparent;
}
input[type=range]::-ms-fill-lower {
background: rgba(148, 173, 62, 0.52);
border: 0.2px solid #010101;
border-radius: 29px;
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
background: rgba(163, 189, 72, 0.52);
border: 0.2px solid #010101;
border-radius: 29px;
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-thumb {
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
border: 1px solid rgba(0, 0, 212, 0);
width: 16px;
border-radius: 3px;
background: #a597ff;
cursor: pointer;
height: 12px;
}
input[type=range]:focus::-ms-fill-lower {
background: rgba(163, 189, 72, 0.52);
}
input[type=range]:focus::-ms-fill-upper {
background: rgba(172, 196, 91, 0.52);
}
</style>
<body>
<div class="content">
<div class="box box1">
<div class="painel">
<div class="PainelRanges">
<div class="AligitensPainel">
<input type="range" min="0" max="255">
<input type="range" min="0" max="255">
<input type="range" min="0" max="255">
</div>
<div class="AligitensPainel">
<label>0-255</label>
<label>0-255</label>
<label>0-255</label>
</div>
</div>
<div class="PainelBotao">
<button>Salvar</button>
</div>
</div>
</div>
<div class="box box2">
<div class="painel">
<div class="PainelRanges">
<div class="AligitensPainel">
<input type="range" min="0" max="255">
<input type="range" min="0" max="255">
<input type="range" min="0" max="255">
</div>
<div class="AligitensPainel">
<label>0-255</label>
<label>0-255</label>
<label>0-255</label>
</div>
</div>
<div class="PainelBotao">
<button>Salvar</button>
</div>
</div>
</div>
<div class="box box3">
<div class="painel">
<div class="PainelRanges">
<div class="AligitensPainel">
<input type="range" min="0" max="255">
<input type="range" min="0" max="255">
<input type="range" min="0" max="255">
</div>
<div class="AligitensPainel">
<label>0-255</label>
<label>0-255</label>
<label>0-255</label>
</div>
</div>
<div class="PainelBotao">
<button>Salvar</button>
</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment