Skip to content

Commit

Permalink
search is now responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
meodai committed Oct 23, 2014
1 parent b5652fc commit 6617a8c
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ a[href$="/"]:hover,a[href$="/"]:hover,a.link--breadcrumb:hover {
/* header */
.header {

}
@media only screen and (max-width : 400px) {
.header {
padding: 0.5em;
}
}
.search {
box-sizing: border-box;
Expand All @@ -65,12 +70,25 @@ a[href$="/"]:hover,a[href$="/"]:hover,a.link--breadcrumb:hover {
padding: 0.6em;
color: #fff;
outline: none;
border-radius: 4px;
}

.search:focus {
box-shadow: 0 0 0 1px rgba(250,190,110,.9);
}

.search--main {
display: inline-block;
float: right;
width: 30%;
}
@media only screen and (max-width : 400px) {
.search--main {
width: 100%;
float: none;
}
}


/* directory title */
.main-title {
Expand All @@ -80,7 +98,12 @@ a[href$="/"]:hover,a[href$="/"]:hover,a.link--breadcrumb:hover {
margin-bottom: 0.8em;
max-width: 70%;
}

@media only screen and (max-width : 400px) {
.main-title {
max-width: 100%;
float: none;
}
}

/* wraps the table */
.wrap {
Expand Down

0 comments on commit 6617a8c

Please sign in to comment.