Skip to content

Instantly share code, notes, and snippets.

@gaspaonrocks
Last active February 22, 2017 10:47
Show Gist options
  • Save gaspaonrocks/e32d0ba44b6c05dbea4a8c2aba158a44 to your computer and use it in GitHub Desktop.
Save gaspaonrocks/e32d0ba44b6c05dbea4a8c2aba158a44 to your computer and use it in GitHub Desktop.
Skull invader
body {
padding-top: 10px;
}
[class*="col-xs"] {
height: 30px;
}
.white {
background-color: white;
}
.black {
background-color: black;
}
.blue {
background-color: blue;
}
.red {
background-color: red;
}
.container {
padding-right: 15px;
padding-left: 15px;
margin-right: 15px;
margin-left: 15px;
}
@media (min-width: 375px) {
.container {
width: 340px;
}
[class*="col-xs"] {
height: 20px;
}
}
@media (min-width: 768px) {
.container {
width: 750px;
}
[class*="col-xs"] {
height: 35px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;}
[class*="col-xs"] {
height: 50px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
[class*="col-xs"] {
height: 80px;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="Test Bootstrap.css">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 white"></div>
</div>
<div class="row">
<div class="col-xs-2 white"></div>
<div class="col-xs-8 black"></div>
<div class="col-xs-2 white"></div>
</div>
<div class="row">
<div class="col-xs-2 white"></div>
<div class="col-xs-1 black"></div>
<div class="col-xs-2 white"></div>
<div class="col-xs-2 black"></div>
<div class="col-xs-2 white"></div>
<div class="col-xs-1 black"></div>
<div class="col-xs-2 white"></div>
</div>
<div class="row">
<div class="col-xs-2 white"></div>
<div class="col-xs-1 black"></div>
<div class="col-xs-1 white"></div>
<div class="col-xs-1 blue"></div>
<div class="col-xs-2 black"></div>
<div class="col-xs-1 white"></div>
<div class="col-xs-1 blue"></div>
<div class="col-xs-1 black"></div>
<div class="col-xs-2 white"></div>
</div>
<div class="row">
<div class="col-xs-2 white"></div>
<div class="col-xs-8 black"></div>
<div class="col-xs-2 white"></div>
</div>
<div class="row">
<div class="col-xs-2 white"></div>
<div class="col-xs-3 black"></div>
<div class="col-xs-2 white"></div>
<div class="col-xs-3 black"></div>
<div class="col-xs-2 white"></div>
</div>
<div class="row">
<div class="col-xs-3 white"></div>
<div class="col-xs-6 black"></div>
<div class="col-xs-3 white"></div>
</div>
<div class="row">
<div class="col-xs-3 white"></div>
<div class="col-xs-1 black"></div>
<div class="col-xs-4 red"></div>
<div class="col-xs-1 black"></div>
<div class="col-xs-3 white"></div>
</div>
<div class="row">
<div class="col-xs-3 white"></div>
<div class="col-xs-6 black"></div>
<div class="col-xs-3 white"></div>
</div>
<div class="row">
<div class="col-xs-12 white"></div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment