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 */
.post {
padding: 5px 0 5px 0;
padding: 5px 0;
}
.post-divider {
@ -12,7 +12,7 @@
.post-author {
background-color: transparent;
border: none;
padding: 0 3px 3px 3px;
padding: 0 3px 3px;
}
.post-author .date {
@ -25,7 +25,7 @@
}
.post-content .text {
padding: 0 4px 0 4px;
padding: 0 4px;
}
.post-menu {
@ -37,7 +37,7 @@
}
.comment {
padding: 5px 0 0 0;
padding: 5px 0 0;
border-top: 1px #ddd solid;
}
@ -46,16 +46,16 @@
}
.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;
margin: 2px 3px 0px;
margin: 2px 3px 0;
width: 11px;
}
.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;
margin: 2px 3px 0px;
margin: 2px 3px 0;
width: 11px;
float: none;
opacity: 0.4;
@ -73,24 +73,25 @@
opacity: 0.4 !important;
}
.post-share-button, .post-like-button {
.post-share-button,
.post-like-button {
display: flex;
padding: 2px;
border-radius: 2px;
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);
}
.post-author .delete {
float: right;
display: inline-block;
height: 16px;
width: 16px;
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;
transition-duration: 0.3s;
}
@ -101,11 +102,10 @@
.post-author .pin {
float: right;
display: inline-block;
height: 16px;
width: 16px;
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;
transition-duration: 0.3s;
}
@ -117,7 +117,7 @@
.expand_button {
background-color: #eee;
width: 100%;
display: inline-block;;
display: inline-block;
height: 30px;
line-height: 28px;
text-align: center;

View file

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