Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 53 additions & 15 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,64 @@
* {
box-sizing: border-box;
}

input[type="text"] {
width: 100%;
}

@media (min-width: 641px) {
input[type="text"] {
width: auto;
}
}

img {
max-width: 100%;
}

input[type="submit"] {
display: block;
margin-top: 1em;
}

@media (min-width: 641px) {
input[type="submit"] {
display: inline-block;
}
}

.container {
margin: 3em auto;
width: 600px;
margin: 1em auto;
}

.hidden {
display: none;
@media (min-width: 641px) {
.container {
margin: 3em auto;
max-width: 600px;
}
}

.left {
float: left;
.hidden {
display: none;
}

.stack-image {
background: url('../images/stack-icon.png') no-repeat center center;
width: 200px;
height: 200px;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
margin-right: 1em;
border-radius: 5px;
text-align: center;
}

@media (min-width: 641px) {
.stack-image {
width: 200px;
height: 200px;
margin-right: 1em;
float: left;
}
}

.stack-image img {
margin-left: auto;
margin-right: auto;
}

.intro {
Expand All @@ -31,7 +69,7 @@
clear: both;
}

.inspiration {
.inspiration {
margin-left: 3em;
}

Expand Down
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Stack Overflow AJAX Demo</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="container">
<div class="intro">
<div class="left stack-image"></div>
<div class="stack-image">
<img src="images/stack-icon.png" alt="Stack Overflow Logo" />
</div>
<div class="explanation">
<h1>StackOverflow Reputation Builder</h1>
<p>This app lets you search by topic for unanswered questions on Stack Overflow to help you build your reputation. Find unanswered questions for a topic you know about, write quality answers, and watch your reputation go up.</p>
Expand Down