HTML/CSS Задание 61
0
Я тут добавил немного самодеятельности и прилепил логотип на сайт. На компах все работает норм, но когда начали переделывать под телефоны, всё пошло как-то не так. Если кто знает, подскажите, что поправить или добавить.
style.css:
* {
margin: 0;
padding: 0;
}
input[type="text"], input[type="password"], input[type="search"] {
color: #5d5d5d;
width: 60%;
padding: 5%;
border-radius: 3px;
}
input, textarea {
outline: none;
border: none;
border: solid 1px #f2f2f2;
}
h1, h2 {
margin: 0 0 15px;
padding: 15px 0 5px 0;
color: #000;
font: normal 170% "century gothic", arial;
}
h2 {
font-size: 130%;
}
a, a:hover {
outline: none;
text-decoration: underline;
color: #aeb002;
}
body {
font-size: 1.2em;
background-color: #fff;
color: #555;
}
p {
padding: 0 0 20px 0;
line-height: 1.5em;
font-size: 0.9em;
}
ul {
margin: 2px 0 22px 17px;
}
ul li {
margin: 0 0 6px 0;
padding: 0 0 4px 5px;
line-height: 1.5em;
}
hr {
border: solid 1px;
color: #f3f3f3
}
table {
width: 100%;
border: solid 1px #f4f4f4;
}
td {
padding: 2%;
border: solid 1px #f4f4f4;
}
td img {
width: 60px;
vertical-align: middle;
}
a {
cursor: pointer;
}
.center {
text-align: center;
}
.header {
background-color: #c80c0c;
height: 177px;
font-size: 0.8em;
margin-left: 0px;
margin-right: 0px;
min-width: 900px;
}
.main, .logo, .menubar, .site_content, .footer {
margin-left: auto;
margin-right: auto;
}
.logo {
width: 950px;
padding-bottom: 40px;
}
.logo img {
float: left;
}
.logo_text {
width: 630px;
}
.logo_text h1 {
width: 600px;
}
.logo h1, .logo h2 {
font: normal 300% 'century gothic', arial, sans-serif;
margin: 0 0 0 100px;
}
.logo_text h1, .logo_text h1 a, .logo_text h1 a:hover {
padding: 22px 0 0 0;
color: #fff;
letter-spacing: 0.1em;
text-decoration: none;
}
.logo_text h2 {
font-size: 1.3em;
padding: 4px 0 0 10px;
margin-left: 100px;
color: #C0C0C0;
width: 500px;
}
.logo_text h2 a {
text-decoration: none;
color: #fff;
margin-left: 7px;
}
.menubar {
width: 720px;
height: 46px;
float: left;
}
ul.menu {
float: left;
margin: 0 0 10px 0;
}
ul.menu li {
float: left;
padding: 0 0 0 0;
list-style: none;
margin: 0 10px 0 0;
}
ul.menu li a {
font: normal 120% 'century gothic';
display: block;
height: 20px;
margin: 0 35px 0 0;
color: #fff;
text-decoration: none;
}
ul.menu li.selected a {
color: #aeb002;
}
ul.menu li a:hover {
color: #e4ec04;
}
.site_content {
width: 880px;
overflow: hidden;
margin: 20px auto 0 auto;
background-color: white;
}
.sidebar_container {
float: right;
width: 200px;
}
.sidebar {
float: right;
width: 222px;
padding: 5%;
margin: 0 0 16px 0;
border: solid 1px #f2f2f2;
border-radius: 3px;
background-color: #f9f9f9;
}
.btn {
padding: 8px;
background-color: white;
cursor: pointer;
border-radius: 3px;
}
.btn1 {
background-color: #c80c0c;
padding: 2%;
color: white;
border-radius: 5px;
cursor: pointer;
}
.sidebar h2 {
color: #136cb2;
}
.lables_passreg_text {
font-size: 0.7em;
margin: 3% 0 0 2%;
}
.sidebar ul {
margin: 0;
}
.sidebar ul li {
list-style-type: none;
margin: 0 0 0 0;
font-size: 0.9em;
}
.sidebar .rating_sidebar {
float: right;
}
.sidebar .btn {
margin-top: 10px;
}
.content {
text-align: left;
width: 620px;
padding: 0 0 0 5px;
float: left;
}
.content a {
text-decoration: none;
}
.films_block {
margin: 5%;
}
.films_block img {
border-radius: 5px;
border: solid 3px #dad7d5;
width: 23%;
}
.info_film_page {
margin-top: 2%;
margin-bottom: 4%;
}
.info_film_page .label {
font-size: 1.2em;
}
.info_film_page .value {
font-size: 1em;
color: #49945a;
margin-right: 3%;
}
.description_film {
margin-bottom: 15%;
}
.description_film img {
float: left;
margin-right: 2%;
border-radius: 5px;
border: solid 5px #dad7d5;
}
.reviews {
margin-bottom: 4%;
font-size: 0.9em;
}
.reviews .review_name {
background-color: #c80c0c;
color: white;
padding: 1%;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.reviews .review_text {
padding: 2% 0 2% 2%;
}
.send {
margin-bottom: 4%;
}
.send input[type="text"], textarea {
border: solid 1px #c3c3c3;
margin-bottom: 2%;
}
.send input[type="text"] {
width: 90.5%;
}
.send textarea {
width: 624px;
height: 200px;
}
.survey {
margin-bottom: 4%;
}
.survey input[type="text"] {
width: 88.2%;
}
.survey input[type="text"], textarea {
border: solid 1px #c3c3c3;
margin-bottom: 2%;
}
.survey textarea {
width: 610px;
height: 200px;
}
.info_film {
margin-bottom: 5%;
background-color: #f9f9f9;
padding: 5%;
height: 340px;
}
.info_film img {
float: left;
margin-right: 2%;
border-radius: 5px;
border: solid 5px #dad7d5;
width: 25%;
}
.button {
background-color: #c80c0c;
padding: 2%;
color: white;
border-radius: 5px;
float: right;
margin-top: 2%;
clear: both;
font-size: 0.8em;
}
.button a {
color: white;
}
.rating {
font-weight: bold;
}
.footer {
width: 100%;
min-width: 900px;
height: 80px;
background-color: #c80c0c;
padding: 28px 0 5px 0;
text-align: center;
color: #a0aa94;
margin: 0 0 0 0;
}
.footer a {
color: #fff;
text-decoration: none;
font-size: 0.8em;
}
.footer a:hover {
color: white;
text-decoration: none;
}
.footer p {
padding: 0 0 10px 0;
}
/* CSS Mobile*/
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px) {
.header {
background-color: #c80a0a;
min-width: 100%;
height: 20%;
text-align: center;
}
.logo {
width: 100%;
}
.site_content {
width: 100%;
}
.menubar {
width: 100%;
height: 100%;
}
.site_content {
width: 100%;
text-align: center;
}
.sidebar_container {
display: none;
}
.footer {
background-color: #c80a0a;
display: none;
}
ul.menu {
float: none;
}
ul.menu li {
margin: 0;
padding: 0;
float: none;
}
.logo h1 {
font: normal 235% 'century gothic', arial, sans-serif;
}
.logo h2 {
font: normal 100% 'century gothic', arial, sans-serif;
color: #fff;
}
}
Получается как-то так: (откройте вид с телефона)
file:///D:/Web%20programing/%D0%A1%D0%BE%D0%B2%D0%B5%D1%82%D1%81%D0%BA%D0%B8%D0%B5%20%D1%84%D0%B8%D0%BB%D1%8C%D0%BC%D1%8B(%D1%81%D0%B0%D0%B9%D1%82)/index.html