Global: Clean up the code [CSS]

This commit is contained in:
Ilya Prokopenko 2022-04-17 13:16:34 +03:00
parent de1857388d
commit d71613d47c
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56
2 changed files with 65 additions and 155 deletions

View file

@ -2,7 +2,7 @@
/* Design belongs to Pavel Durov & VK Group */ /* Design belongs to Pavel Durov & VK Group */
.post { .post {
padding: 5px 0 5px 0; padding: 5px 0;
} }
.post-divider { .post-divider {
@ -12,7 +12,7 @@
.post-author { .post-author {
background-color: transparent; background-color: transparent;
border: none; border: none;
padding: 0 3px 3px 3px; padding: 0 3px 3px;
} }
.post-author .date { .post-author .date {
@ -25,7 +25,7 @@
} }
.post-content .text { .post-content .text {
padding: 0 4px 0 4px; padding: 0 4px;
} }
.post-menu { .post-menu {
@ -37,7 +37,7 @@
} }
.comment { .comment {
padding: 5px 0 0 0; padding: 5px 0 0;
border-top: 1px #ddd solid; border-top: 1px #ddd solid;
} }
@ -46,16 +46,16 @@
} }
.repost-icon { .repost-icon {
background: url('/assets/packages/static/openvk/img/published.gif') no-repeat 0px 0px; background: url('/assets/packages/static/openvk/img/published.gif') no-repeat 0 0;
height: 12px; height: 12px;
margin: 2px 3px 0px; margin: 2px 3px 0;
width: 11px; width: 11px;
} }
.heart { .heart {
background: url('/assets/packages/static/openvk/img/like.gif') no-repeat 1px 0px; background: url('/assets/packages/static/openvk/img/like.gif') no-repeat 1px 0;
height: 10px; height: 10px;
margin: 2px 3px 0px; margin: 2px 3px 0;
width: 11px; width: 11px;
float: none; float: none;
opacity: 0.4; opacity: 0.4;
@ -73,24 +73,25 @@
opacity: 0.4 !important; opacity: 0.4 !important;
} }
.post-share-button, .post-like-button { .post-share-button,
.post-like-button {
display: flex; display: flex;
padding: 2px; padding: 2px;
border-radius: 2px; border-radius: 2px;
transition-duration: 0.2s; transition-duration: 0.2s;
} }
.post-share-button:hover, .post-like-button:hover { .post-share-button:hover,
.post-like-button:hover {
background-color: rgb(240, 240, 240); background-color: rgb(240, 240, 240);
} }
.post-author .delete { .post-author .delete {
float: right; float: right;
display: inline-block;
height: 16px; height: 16px;
width: 16px; width: 16px;
overflow: auto; overflow: auto;
background: url("/assets/packages/static/openvk/img/input_clear.gif") no-repeat 0px 0px; background: url("/assets/packages/static/openvk/img/input_clear.gif") no-repeat 0 0;
opacity: 0.1; opacity: 0.1;
transition-duration: 0.3s; transition-duration: 0.3s;
} }
@ -101,11 +102,10 @@
.post-author .pin { .post-author .pin {
float: right; float: right;
display: inline-block;
height: 16px; height: 16px;
width: 16px; width: 16px;
overflow: auto; overflow: auto;
background: url("/assets/packages/static/openvk/img/pin.png") no-repeat 0px 0px; background: url("/assets/packages/static/openvk/img/pin.png") no-repeat 0 0;
opacity: 0.1; opacity: 0.1;
transition-duration: 0.3s; transition-duration: 0.3s;
} }
@ -117,7 +117,7 @@
.expand_button { .expand_button {
background-color: #eee; background-color: #eee;
width: 100%; width: 100%;
display: inline-block;; display: inline-block;
height: 30px; height: 30px;
line-height: 28px; line-height: 28px;
text-align: center; text-align: center;

View file

@ -13,12 +13,6 @@ body {
word-wrap: break-word; word-wrap: break-word;
} }
span {
padding: 0 0 2px;
color: gray;
font-weight: bold;
}
.nobold, .nobold,
nobold { nobold {
font-weight: normal; font-weight: normal;
@ -48,9 +42,9 @@ p {
position: relative; position: relative;
width: 791px; width: 791px;
height: 45px; height: 45px;
background: url('../img/header.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 0; background-position: 0;
background: url('../img/header.png');
} }
.page_custom_header { .page_custom_header {
@ -59,7 +53,7 @@ p {
#page_act { #page_act {
border-bottom: 1px solid #d5dde6; border-bottom: 1px solid #d5dde6;
padding: 2px 10px 5px 10px; padding: 2px 10px 5px;
color: #2B587A; color: #2B587A;
width: 608px; width: 608px;
margin-left: -10px; margin-left: -10px;
@ -95,8 +89,8 @@ p {
display: inline-block; display: inline-block;
height: 29px; height: 29px;
padding: 11px 4px 0 7px; padding: 11px 4px 0 7px;
background-size: 1.5px 41px;
background: url('../img/divider.png') no-repeat; background: url('../img/divider.png') no-repeat;
background-size: 1.5px 41px;
} }
.header_navigation .link a { .header_navigation .link a {
@ -164,7 +158,6 @@ p {
padding: 3px 3px 3px 6px; padding: 3px 3px 3px 6px;
text-decoration: none; text-decoration: none;
border-top: 1px solid #fff; border-top: 1px solid #fff;
/* fix */
color: #000; color: #000;
} }
@ -184,17 +177,17 @@ p {
.wrap1 { .wrap1 {
border: 1px solid #EBF0F4; border: 1px solid #EBF0F4;
border-top: 0px; border-top: 0;
width: auto; width: auto;
} }
.wrap2 { .wrap2 {
border-right: 1px solid #F6F8FA; border-right: 1px solid #F6F8FA;
border-top: 0px; border-top: 0;
} }
.page_yellowheader { .page_yellowheader {
padding: 4px 10px 4px; padding: 4px 10px;
font-weight: bold; font-weight: bold;
background: url('../img/header_yellow.png') repeat-x; background: url('../img/header_yellow.png') repeat-x;
background-color: #EEE5B8; background-color: #EEE5B8;
@ -405,7 +398,7 @@ table {
.page_status { .page_status {
font-weight: normal; font-weight: normal;
font-size: 11px; font-size: 11px;
padding: 3px 1px 3px; padding: 3px 1px;
color: #000; color: #000;
width: 380px; width: 380px;
height: auto !important; height: auto !important;
@ -442,9 +435,9 @@ table {
outline: none; outline: none;
white-space: nowrap; white-space: nowrap;
background: #595959; background: #595959;
background-position: 0px -16px; background-position: 0 -16px;
color: #fff; color: #fff;
padding: 4px 8px 4px; padding: 4px 8px;
text-shadow: 0 1px 0 #686868; text-shadow: 0 1px 0 #686868;
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
@ -477,7 +470,7 @@ input[type=radio] {
outline: none; outline: none;
cursor: pointer; cursor: pointer;
vertical-align: middle; vertical-align: middle;
margin: 4px 3px 3px 3px; margin: 4px 3px 3px;
} }
input[type=checkbox] { input[type=checkbox] {
@ -520,17 +513,13 @@ input[type=radio]:checked {
width: 200px; width: 200px;
} }
.right_big_block {
width: 399px;
float: right;
}
.content_title_expanded { .content_title_expanded {
background-image: url('../img/flex_arrow_open2.png'); background-image: url('../img/flex_arrow_open2.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: #e6e6e6; background-color: #e6e6e6;
border-top: #8B8B8B solid 1px; border-top: #8B8B8B solid 1px;
padding: 3px 8px 3px 24px; padding: 3px 8px 3px 24px;
margin-top: 5px;
font-weight: bold; font-weight: bold;
color: #626262; color: #626262;
font-size: 11px; font-size: 11px;
@ -554,7 +543,6 @@ input[type=radio]:checked {
.content_subtitle { .content_subtitle {
background-color: #F0F0F0; background-color: #F0F0F0;
padding: 0;
display: block; display: block;
font-size: 11px; font-size: 11px;
border-bottom: 1px solid #EEEEEE; border-bottom: 1px solid #EEEEEE;
@ -568,7 +556,7 @@ input[type=radio]:checked {
} }
.content-withouttop { .content-withouttop {
padding-top: 0px; padding-top: 0;
} }
input[type="text"], input[type="text"],
@ -595,8 +583,8 @@ h4 {
color: #45688E; color: #45688E;
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
margin: 0px; margin: 0;
padding: 0px 0px 3px; padding: 0 0 3px;
font-family: verdana, arial, sans-serif; font-family: verdana, arial, sans-serif;
} }
@ -619,7 +607,7 @@ h4 {
border-top: #8B8B8B solid 1px; border-top: #8B8B8B solid 1px;
border-bottom: #ECECEC solid 1px; border-bottom: #ECECEC solid 1px;
font-size: 11px; font-size: 11px;
padding: 3px 5px 3px; padding: 3px 5px;
line-height: 125%; line-height: 125%;
} }
@ -769,7 +757,7 @@ span {
} }
.content_list .cl_element .cl_avatar { .content_list .cl_element .cl_avatar {
padding: 7px 7px 0 7px; padding: 7px 7px 0;
text-align: center; text-align: center;
} }
@ -807,13 +795,6 @@ table.User {
width: 603px; width: 603px;
} }
.container_gray .content {
background: #fff;
padding: 5px;
border: #DEDEDE solid 1px;
clear: both;
}
.tabs { .tabs {
border-bottom: 1px solid #707070; border-bottom: 1px solid #707070;
padding: 0 10px; padding: 0 10px;
@ -832,7 +813,7 @@ table.User {
display: inline-block; display: inline-block;
padding: 5px 10px; padding: 5px 10px;
margin-right: 3px; margin-right: 3px;
border-radius: 3px 3px 0px 0px; border-radius: 3px 3px 0 0;
} }
.tab:hover { .tab:hover {
@ -995,11 +976,6 @@ table.User {
color: #404036; color: #404036;
} }
.messenger-app--messages,
.messenger-app--input {
padding: 10px;
}
.messenger-app--messages, .messenger-app--messages,
.messenger-app--input { .messenger-app--input {
padding: 10px 70px; padding: 10px 70px;
@ -1021,11 +997,6 @@ table.User {
margin-bottom: 1.2rem; margin-bottom: 1.2rem;
} }
.messenger-app--messages---message .ava,
.messenger-app--input>.ava {
max-width: 64px;
}
.messenger-app--messages---message .ava, .messenger-app--messages---message .ava,
.messenger-app--input>.ava { .messenger-app--input>.ava {
width: 52px; width: 52px;
@ -1074,6 +1045,7 @@ table.User {
box-sizing: border-box; box-sizing: border-box;
padding: 0 10px; padding: 0 10px;
width: calc(100% - 128px); width: calc(100% - 128px);
float: right;
} }
.messenger-app--input---messagebox textarea { .messenger-app--input---messagebox textarea {
@ -1083,10 +1055,6 @@ table.User {
margin-bottom: 8px !important; margin-bottom: 8px !important;
} }
.messenger-app--input---messagebox {
float: right;
}
.messenger-app--input .blocked { .messenger-app--input .blocked {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -1190,16 +1158,16 @@ textarea {
#faqhead { #faqhead {
background: #fbf3c3; background: #fbf3c3;
margin: 0px 5px 0px 5px; margin: 0 5px;
padding: 5px; padding: 5px;
font-weight: bold; font-weight: bold;
border: 1px solid #d7cf9e; border: 1px solid #d7cf9e;
border-bottom: 0px; border-bottom: 0;
} }
#faqcontent { #faqcontent {
background: #fafafa; background: #fafafa;
margin: 0px 5px 10px 5px; margin: 0 5px 10px;
padding: 5px 5px 5px 10px; padding: 5px 5px 5px 10px;
border: 1px solid #ddd; border: 1px solid #ddd;
} }
@ -1307,12 +1275,6 @@ body.scrolled .toTop:hover {
vertical-align: super; vertical-align: super;
} }
.ugc-table tr>td:nth-of-type(2) {
display: block;
width: 270px;
overflow: hidden;
}
.ugc-table.slim tr>td:nth-of-type(1) { .ugc-table.slim tr>td:nth-of-type(1) {
width: unset; width: unset;
} }
@ -1378,9 +1340,9 @@ body.scrolled .toTop:hover {
} }
.heart { .heart {
background: url('/assets/packages/static/openvk/img/like.gif') no-repeat 1px 0px; background: url('/assets/packages/static/openvk/img/like.gif') no-repeat 1px 0;
height: 10px; height: 10px;
margin: 2px 3px 0px; margin: 2px 3px 0;
width: 11px; width: 11px;
float: left; float: left;
opacity: 0.4; opacity: 0.4;
@ -1400,10 +1362,6 @@ body.scrolled .toTop:hover {
opacity: 1 !important; opacity: 1 !important;
} }
.content_title_expanded {
margin-top: 5px;
}
.page-wrap { .page-wrap {
border-bottom: solid 1px #C3CAD2; border-bottom: solid 1px #C3CAD2;
border-left: solid 1px #DAE1E8; border-left: solid 1px #DAE1E8;
@ -1411,33 +1369,12 @@ body.scrolled .toTop:hover {
padding: 10px; padding: 10px;
} }
.wrap1 {
width: auto;
border: 1px solid #EBF0F4;
border-top: 0px;
}
.wrap2 {
border-right: 1px solid #F6F8FA;
border-top: 0px;
}
#wrapH {
border-right: solid 1px #EAEEF3;
border-left: solid 1px #EAEEF3;
}
#wrapHI {
border-right: solid 1px #D5DDE6;
border-left: solid 1px #D5DDE6;
}
.ugc-table td { .ugc-table td {
vertical-align: top !important; vertical-align: top !important;
font-size: 11px; font-size: 11px;
line-height: 13px; line-height: 13px;
margin: 0px; margin: 0;
padding: 1px 0px 1px 0px; padding: 1px 0;
} }
.label { .label {
@ -1457,47 +1394,44 @@ body.scrolled .toTop:hover {
} }
#basicInfo { #basicInfo {
padding: 5px 0px 15px 8px; padding: 5px 0 15px 8px;
} }
.accountInfo { .accountInfo {
padding: 0px; padding: 0;
margin: 0px 0px 0px 8px; margin: 0 0 0 8px;
border-bottom: solid 1px #DAE1E8; border-bottom: solid 1px #DAE1E8;
display: block; display: block;
} }
.profileName { .profileName {
/* width: 225px; */
color: #45688E; color: #45688E;
font-size: 11px; font-size: 11px;
font-weight: bold; font-weight: bold;
margin: 0px; margin: 0;
/* padding: 2px 5px 0px 0px; */
} }
.profileName h2 { .profileName h2 {
color: #45688E; color: #45688E;
font-size: 13px; font-size: 13px;
padding-bottom: 0px; margin: 0;
margin: 0px; padding: 0;
padding: 0px;
} }
.notes_titles { .notes_titles {
margin: 0px; margin: 0;
padding: 0px; padding: 0;
list-style: none; list-style: none;
} }
.written { .written {
background: url('/assets/packages/static/openvk/img/note.gif') no-repeat 0px 1px; background: url('/assets/packages/static/openvk/img/note.gif') no-repeat 0 1px;
padding: 0px 0px 6px 22px; padding: 0 0 6px 22px;
} }
.written a { .written a {
display: block; display: block;
padding: 0px 0px 1px 0px; padding: 0 0 1px;
} }
.notes_titles small { .notes_titles small {
@ -1517,8 +1451,8 @@ body.scrolled .toTop:hover {
} }
.right_big_block h4 { .right_big_block h4 {
margin: 1px 0px 0px; margin: 1px 0 0;
padding: 4px 0px 2px !important; padding: 4px 0 2px !important;
} }
.knowledgeBaseArticle ul { .knowledgeBaseArticle ul {
@ -1577,7 +1511,7 @@ body.scrolled .toTop:hover {
align-content: center; align-content: center;
display: flex; display: flex;
padding: 2px; padding: 2px;
box-shadow: inset 0 0 0px 1px #ccc, inset 0 0 0px 2px #fff; box-shadow: inset 0 0 0 1px #ccc, inset 0 0 0 2px #fff;
background-color: #000; background-color: #000;
} }
@ -1663,11 +1597,11 @@ body.scrolled .toTop:hover {
} }
.avatar-list { .avatar-list {
padding: 4px 8px 4px 8px; padding: 4px 8px;
} }
.avatar-list-item { .avatar-list-item {
padding: 4px 0 4px 0; padding: 4px 0;
} }
.avatar-list-item::after { .avatar-list-item::after {
@ -1772,9 +1706,9 @@ body.scrolled .toTop:hover {
outline: none; outline: none;
white-space: nowrap; white-space: nowrap;
background: #595959; background: #595959;
background-position: 0px -16px; background-position: 0 -16px;
color: #fff; color: #fff;
padding: 4px 8px 4px; padding: 4px 8px;
text-shadow: 0 1px 0 #686868; text-shadow: 0 1px 0 #686868;
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
@ -1819,7 +1753,7 @@ body.scrolled .toTop:hover {
height: 16px; height: 16px;
width: 16px; width: 16px;
overflow: auto; overflow: auto;
background: url("/assets/packages/static/openvk/img/pin.png") no-repeat 0px 0px; background: url("/assets/packages/static/openvk/img/pin.png") no-repeat 0 0;
vertical-align: middle; vertical-align: middle;
} }
@ -1867,7 +1801,7 @@ body.scrolled .toTop:hover {
background: #f7f7f7; background: #f7f7f7;
border-bottom: solid 1px #DAE1E8; border-bottom: solid 1px #DAE1E8;
border-top: solid 1px #45688E; border-top: solid 1px #45688E;
padding: 4px 6px 5px 6px; padding: 4px 6px 5px;
} }
.note_header .note_title { .note_header .note_title {
@ -1876,18 +1810,18 @@ body.scrolled .toTop:hover {
font-weight: bold; font-weight: bold;
line-height: 15px; line-height: 15px;
margin: 0; margin: 0;
padding: 0 0 1px 0; padding: 0 0 1px;
} }
.note_footer { .note_footer {
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
clear: both; clear: both;
margin-top: 10px; margin-top: 10px;
padding: 0px 2px 0px 6px; padding: 0 2px 0 6px;
} }
.comments_count { .comments_count {
padding: 5px 0px 0px 0px; padding: 5px 0 0;
} }
.groups_options { .groups_options {
@ -1926,7 +1860,7 @@ table td[width="120"] {
} }
.profile_thumb { .profile_thumb {
padding: 0px 10px 0px 0px; padding: 0 10px 0 0;
width: 50px; width: 50px;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
@ -1950,23 +1884,6 @@ table td[width="120"] {
padding: 3px 7px; padding: 3px 7px;
} }
#gp_container span {
display: block;
margin: 10px 0 15px;
}
#gp_container h4 {
font-size: 11px;
}
.container_gray .content:last-child {
margin-bottom: 0;
}
.group_info {
padding: 0 0 0 5px !important;
}
.mb_tab#active { .mb_tab#active {
background-color: #898989; background-color: #898989;
} }
@ -1979,15 +1896,8 @@ table td[width="120"] {
color: white; color: white;
} }
.profile_thumb {
padding: 0px 10px 0px 0px;
width: 50px;
display: inline-block;
vertical-align: top;
}
.border-block { .border-block {
box-shadow: inset 0px 0 0px 1px #b6bfca, inset 0px 0 0px 10px #d8dfe7; box-shadow: inset 0 0 0 1px #b6bfca, inset 0 0 0 10px #d8dfe7;
width: 300px; width: 300px;
padding: 20px; padding: 20px;
} }