Ai
1 Star 1 Fork 0

Telegram/Webogram

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
desktop.less 36.56 KB
一键复制 编辑 原始数据 按行查看 历史
Igor Zhukov 提交于 2017-03-14 03:25 +08:00 . Fixed minor style bugs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256
@import "lib/mixins";
/* app desktop css */
.tg_head {
&_split {
max-width: 1010px;
margin: 0 auto;
height: 48px;
background: #5682a3;
}
&_logo_wrap {
float: left;
width: 31%;
}
&_main_wrap {
float: left;
width: 69%;
white-space: nowrap;
}
&_btn {
display: block;
font-weight: bold;
padding: 16px 19px;
color: #b9cfe3;
font-size: 13px;
line-height: 16px;
.dropdown.open &,
&:hover {
color: #fff;
text-decoration: none;
background: #497799;
}
.dropdown.open & {
position: relative;
z-index: 5;
}
}
}
.tg_head_logo_dropdown {
.dropdown-toggle {
color: #fff;
padding: 17px 20px 15px 22px;
display: block;
font-size: 14px;
line-height: 16px;
vertical-align: top;
&:hover,
&:focus,
&:active {
text-decoration: none;
}
.tg_head_logo_text {
display: inline-block;
vertical-align: top;
}
}
}
.icon-hamburger-wrap {
display: inline-block;
width: 18px;
height: 14px;
-webkit-transform: translate3d(0,0,0);
}
.tg_head_logo_dropdown {
.icon-hamburger-wrap {
margin: 0 40px 0 0;
vertical-align: top;
}
.icon-tg-title {
vertical-align: top;
}
}
.icon-hamburger-wrap {
.icon-bar {
background: #fff;
display: block;
height: 2px;
margin: 0;
&:nth-child(2) {
margin-bottom: 4px;
margin-top: 4px;
}
}
}
.tg_head_logo_dropdown {
.icon-bar {
opacity: 1;
-webkit-transition: -webkit-transform .1s ease-in;
-o-transition: -o-transform .1s ease;
-ms-transition: -ms-transform .1s ease;
-moz-transition: -moz-transform .1s ease;
transition: transform .1s ease-in;
-webkit-transform-origin: 50% 50%;
-o-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
transform-origin: 50% 50%;
}
&:not(.open) {
.dropdown-toggle:hover {
.icon-bar {
&:nth-child(1) {
.transform(translateY(-1px));
}
&:nth-child(3) {
.transform(translateY(1px));
}
}
}
}
&.open {
.icon-bar {
&:nth-child(1) {
.transform(translate3d(0,6px,0) rotate(45deg));
}
&:nth-child(2) {
opacity: 0;
}
&:nth-child(3) {
.transform(translate3d(0,-6px,0) rotate(-45deg));
}
}
}
.dropdown-menu {
border-radius: 0;
padding: 9px 0 7px;
margin: -1px 0 0;
float: none;
right: 0;
border: 1px solid rgba(15, 60, 96, 0.2);
border-left-color: #b5c3d0;
border-right-color: #b5c3d0;
.box-shadow(0px 1px 3px 0px rgba(60,75,87,0.27));
overflow: hidden;
}
@-webkit-keyframes rollIn {
from { transform: translateY(-220px); }
to { transform: translateY(0); }
}
@keyframes rollIn {
from { transform: translateY(-220px); }
to { transform: translateY(0); }
}
&.open {
.dropdown-menu {
-webkit-animation: rollIn 0.1s ease-in;
animation: rollIn 0.1s ease-in;
z-index: 4;
}
}
.dropdown-menu {
& > li {
& > a {
font-size: 12px;
line-height: 21px;
padding: 11px 19px 10px 21px;
color: #42749b;
&:hover {
background: #f2f6fa;
}
span {
vertical-align: top;
}
}
}
}
}
.icon {
&-new-group {
width: 20px;
height: 14px;
margin-right: 38px;
display: inline-block;
vertical-align: top;
margin-top: 3px;
.image-2x('../img/icons/General.png', 40px, 948px);
background-position: -10px -111px;
}
&-contacts {
width: 18px;
height: 18px;
margin-right: 40px;
margin-top: 2px;
display: inline-block;
vertical-align: top;
.image-2x('../img/icons/General.png', 40px, 948px);
background-position: -11px -135px;
}
&-settings {
width: 20px;
height: 20px;
margin-right: 38px;
margin-top: 1px;
display: inline-block;
vertical-align: top;
.image-2x('../img/icons/General.png', 40px, 948px);
background-position: -10px -163px;
}
&-faq {
width: 20px;
height: 20px;
margin-right: 38px;
margin-top: 1px;
display: inline-block;
vertical-align: top;
.image-2x('../img/icons/General.png', 40px, 948px);
background-position: -10px -637px;
}
&-about {
width: 21px;
height: 21px;
margin-right: 37px;
display: inline-block;
vertical-align: top;
.image-2x('../img/icons/General.png', 40px, 948px);
background-position: -10px -193px;
}
}
.tg_head_connecting {
&_text {
color: #b9cfe3;
padding: 14px 15px;
font-size: 13px;
display: block;
line-height: 20px;
float: left;
}
&_wrap {
.tg_head_btn {
float: left;
}
}
}
.tg_head_peer_search_btn {
float: right;
padding-top: 15px;
padding-bottom: 15px;
}
.tg_head_peer {
&_dropdown {
float: right;
}
&_status {
font-weight: normal;
}
&_dropdown {
.dropdown-menu {
max-width: 100%;
border-radius: 0;
padding: 9px 0;
float: none;
right: 0;
left: auto;
margin: -1px 0 0 0;
border: 1px solid rgba(15, 60, 96, 0.2);
.box-shadow(0px 1px 3px 0px rgba(60,75,87,0.27));
}
}
&_more_dropdown {
.dropdown-menu {
left: auto;
right: 0;
}
}
&_dropdown {
.dropdown-menu {
& > li {
& > a {
font-size: 13px;
line-height: 15px;
padding: 11px 18px 11px 18px;
color: #52719a;
&:hover {
background: #f3f6fa;
}
}
}
}
}
&_return_btn {
float: right;
}
&_return_count {
color: #fff;
margin-left: 3px;
}
&_title_wrap {
overflow: hidden;
.tg_head_btn {
padding: 15px 19px 15px;
line-height: 18px;
.tg_head_peer_info {
display: block;
white-space: nowrap;
overflow: hidden;
-ms-text-overflow: ellipsis;
text-overflow: ellipsis;
}
}
}
&_title {
display: inline-block;
color: #fff;
margin-right: 3px;
-ms-text-overflow: ellipsis;
text-overflow: ellipsis;
max-width: 180px;
overflow: hidden;
vertical-align: top;
}
&_media {
padding: 14px 19px;
color: #fff;
font-size: 13px;
line-height: 20px;
float: left;
font-weight: bold;
}
}
.icon-search {
display: inline-block;
width: 17px;
height: 17px;
.image-2x('../img/icons/IconsetW.png', 42px, 1171px);
background-position: -12px -1037px;
vertical-align: middle;
opacity: 0.9;
}
.tg_head_peer_media_dropdown {
.dropdown-toggle {
display: block;
.icon-bar {
display: block;
background-color: #d7e5f0;
width: 4px;
height: 4px;
border-radius: 2px;
margin-left: 3px;
margin-right: 3px;
& + .icon-bar {
margin-top: 2px;
}
}
}
}
.icon-filter {
&-photos,
&-video,
&-documents,
&-audio {
display: inline-block;
margin-right: 12px;
vertical-align: top;
.image-2x('../img/icons/General.png', 40px, 948px);
background-position: 0 0;
}
&-photos {
width: 18px;
height: 18px;
background-position: -11px -223px;
margin-top: 1px;
}
&-video {
width: 16px;
height: 18px;
background-position: -12px -278px;
margin-top: 1px;
}
&-documents {
width: 18px;
height: 17px;
background-position: -11px -251px;
margin-top: 1px;
}
&-audio {
width: 14px;
height: 19px;
background-position: -13px -306px;
margin-top: 0;
}
}
/** initial setup **/
.nano {
position : relative;
width : 100%;
height : 100%;
overflow : hidden;
& > .nano-content {
position : absolute;
overflow : scroll;
overflow-x : hidden;
top : 0;
right : 0;
bottom : 0;
left : 0;
&:focus {
outline: thin dotted;
}
&::-webkit-scrollbar {
display: none;
}
}
}
.has-scrollbar {
& > .nano-content {
&::-webkit-scrollbar {
display: block;
}
}
}
.nano {
& > .nano-pane {
background : rgba(0,0,0,.25);
position : absolute;
width : 10px;
right : 0;
top : 0;
bottom : 0;
visibility : hidden\9; /* Target only IE7 and IE8 with this hack */
opacity : .01;
-webkit-transition : .2s;
-moz-transition : .2s;
-o-transition : .2s;
transition : .2s;
.rounded(5px);
& > .nano-slider {
background: #444;
background: rgba(0,0,0,.5);
position : relative;
margin : 0 1px;
.rounded(3px);
}
}
}
.nano-pane {
.nano:hover > &,
&.active,
&.flashed {
visibility : visible\9; /* Target only IE7 and IE8 with this hack */
opacity : 0.99;
}
}
.composer_emoji_tooltip,
.composer_dropdown_wrap {
z-index: 1001;
.nano > .nano-pane {
background : rgba(255,255,255,0.0);
right: -2px;
top: 5px;
bottom: 5px;
& > .nano-slider {
background: #d1d1d1;
background : rgba(0,0,0,0.17);
margin: 0 3px 0 4px;
}
}
}
@media (max-width: 940px) {
.composer_emoji_tooltip {
margin-left: -245px;
&_tail {
left: 90%;
}
}
}
.composer_dropdown_wrap .nano > .nano-pane {
top: 3px;
bottom: 3px;
right: -1px;
}
.countries_modal_col {
.nano {
& > .nano-pane {
background : rgba(3,36,64,0.08);
width : 3px;
right: 6px;
top: 0;
-webkit-transition : .2s;
-moz-transition : .2s;
-o-transition : .2s;
transition : .2s;
.rounded(0);
& > .nano-slider {
background : rgba(3,46,79,0.22);
margin: 0;
.rounded(0);
}
}
}
}
.im_page_wrap {
background: #fff;
max-width: 1010px;
min-width: 300px;
margin: 0 auto;
.box-shadow(0px 1px 0 #dfe5ec);
border-radius: 0 0 3px 3px;
border-left: 1px solid #dfe5ec;
border-right: 1px solid #dfe5ec;
border-bottom: 1px solid #d2dbe3;
overflow: hidden;
}
.footer {
&_wrap {
font-size: 11px;
text-align: center;
color: #9cacb9;
line-height: 40px;
}
&_empty {
height: 23px;
}
&_brand {
color: #9cacb9;
font-weight: bold;
}
}
a {
&.footer_lang_link {
color: #9cacb9;
&.active {
font-weight: bold;
}
}
&.footer_link {
color: #9cacb9;
padding: 0 3px;
}
}
.footer_brand:hover,
.footer_brand:active,
a.footer_lang_link.active:hover,
a.footer_lang_link.active:active,
a.footer_link.active:hover,
a.footer_link.active:active {
color: #8499aa;
text-decoration: none;
}
.footer_link_divider {
padding: 0 5px;
}
.im_dialogs_col {
margin-right: -7px;
&_wrap {
float: left;
width: 31%;
border-right: 2px solid #E9EBED;
padding-bottom: 10px;
}
}
.im_dialogs_scrollable_wrap {
padding: 0 7px 0 0;
/* Hardware acceleration in Safari */
-webkit-transform: translateZ(0);
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
}
.im_dialogs_col {
.nano {
& > .nano-pane {
background : rgba(0,0,0,0.0);
width : 12px;
right: 0px;
.rounded(0);
.noTransition();
& > .nano-slider {
background: rgba(30, 85,127 , 0.3);
margin: 0 5px;
.rounded(0);
}
}
}
}
.im_history {
&_col_wrap {
float: left;
width: 69%;
}
&_scrollable_wrap {
/* Hardware acceleration in Safari */
-webkit-transform: translateZ(0);
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
}
}
.nano-pane {
.im_history_col .nano > &,
.contacts_modal_col .nano > &,
.sessions_modal_col .nano > &,
.stickerset_modal_col .nano > &,
.im_dialogs_modal_col .nano > & {
background : rgba(216,223,225,0.45); /*45% d8dfe5*/
width : 9px;
right: 0;
top: 0;
.rounded(2px);
.noTransition();
}
.contacts_modal_col .nano > & {
width: 5px;
right: 4px;
top: 10px;
}
.sessions_modal_col .nano > &,
.stickerset_modal_col .nano > & {
top: 4px;
bottom: 4px;
width: 5px;
right: 4px;
}
.im_dialogs_modal_col .nano > & {
width: 6px;
right: 2px;
top: 10px;
}
.im_history_col .nano > & {
top: 10px;
right: 8px;
}
.im_history_col .nano > &,
.contacts_modal_col .nano > &,
.sessions_modal_col .nano > &,
.stickerset_modal_col .nano > &,
.im_dialogs_modal_col .nano > & {
& > .nano-slider {
background : rgba(137,160,179,0.50); /*50% 89a0b3*/
margin: 0;
.rounded(2px);
}
}
}
.reply_markup_scrollable_container {
.nano > .nano-pane {
background: rgba(137, 160, 179, 0.1);
right: 2px;
width: 3px;
top: 0;
bottom: 0;
.rounded(1px);
& > .nano-slider {
.rounded(1px);
background: #d1d1d1;
background: rgba(137, 160, 179, 0.5);
margin: 0;
}
}
}
.im_history {
&_no_dialogs_wrap {
margin: 122px 170px 60px;
text-align: center;
}
&_appending {
-webkit-transition: all ease-in-out 0.2s;
-moz-transition: all ease-in-out 0.2s;
-ms-transition: all ease-in-out 0.2s;
-o-transition: all ease-in-out 0.2s;
transition: all ease-in-out 0.2s;
}
&_typing_wrap {
line-height: 18px;
width: 100%;
height: 39px;
overflow: hidden;
-webkit-user-select: none;
}
&_typing {
font-size: 11px;
color: #999;
max-width: 556px;
margin: 0 auto;
padding: 13px 81px 8px 85px;
a.im_history_typing_author {
color: #999;
font-weight: bold;
}
}
}
.im_history_loading_less {
margin-top: 5px;
}
/* Contacts modal */
.contacts_modal {
&_window {
.modal-dialog {
max-width: 420px;
}
}
&_members_list {
padding-top: 10px;
a.contacts_modal_contact {
padding: 8px 16px;
}
.active {
a.contacts_modal_contact,
a.contacts_modal_contact:hover {
background: #6490b1;
color: #fff;
}
a.contacts_modal_contact .md_modal_list_peer_description,
a.contacts_modal_contact:hover .md_modal_list_peer_description,
a.contacts_modal_contact .md_modal_list_peer_description .status_online {
color: #fff;
}
}
}
}
.session_terminate_btn {
opacity: 0;
}
.sessions_modal_session:hover .session_terminate_btn {
opacity: 1;
}
/* Messages edit panel */
.im {
&_edit_delete_btn,
&_edit_forward_btn,
&_edit_reply_btn,
&_start_btn {
border-radius: 2px;
padding: 7px 17px;
font-weight: bold;
font-size: 12px;
line-height: 18px;
margin: 6px 0 6px 14px;
}
&_edit_panel_wrap {
padding: 0px 0 41px;
margin: 0 24px 0 12px;
}
&_edit_panel_border {
display: block;
margin: 0 0 42px 3px;
border-bottom: 1px solid #EEE;
}
&_edit_cancel_link {
display: block;
padding: 7px 17px;
border-radius: 2px;
overflow: hidden;
margin: 6px 6px;
float: right;
}
&_edit_selected_actions {
text-align: left;
text-transform: uppercase;
}
&_edit_start_actions {
text-align: center;
text-transform: uppercase;
}
&_start_btn {
padding: 7px 25px;
}
&_selected_count {
color: #b9cfe3;
}
&_submit {
color: #499dd9;
font-size: 13px;
line-height: 18px;
height: 18px;
border-radius: 0;
float: right;
min-width: 0;
margin-top: 5px;
margin-left: 10px;
width: auto;
padding: 0;
font-weight: bold;
&:hover {
color: #3589c5;
background: inherit;
}
}
}
.im_submit_edit_label,
.im_submit_edit .im_submit_send_label {
display: none;
}
.im_submit_edit .im_submit_edit_label {
display: inline;
}
.composer_emoji_panel {
display: block;
height: 30px;
overflow: hidden;
max-width: 210px;
a.composer_emoji_btn {
display: inline-block;
padding: 5px;
outline: 0;
border-radius: 2px;
margin: -1px 0 2px -1px;
}
}
.im_message_selected .im_message_date,
.im_message_selected .im_message_document_size,
.im_message_selected .im_message_audio_duration,
.im_message_selected .im_message_audio_size,
.im_message_selected .im_message_fwd_date,
.im_message_selected .im_message_views_cnt,
.im_message_selected .im_message_sign_link,
.im_history_select_active .im_message_outer_wrap:hover .im_message_date,
.im_history_select_active .im_message_outer_wrap:hover .im_message_document_size,
.im_history_select_active .im_message_outer_wrap:hover .im_message_audio_duration,
.im_history_select_active .im_message_outer_wrap:hover .im_message_audio_size,
.im_history_select_active .im_message_outer_wrap:hover .im_message_fwd_date,
.im_history_select_active .im_message_outer_wrap:hover .im_message_views_cnt,
.im_history_select_active .im_message_outer_wrap:hover .im_message_sign_link {
color: #899daf;
}
.icon-select-tick {
display: none;
}
@media (min-width: 900px) {
.im_message_wrap {
position: relative;
}
.icon-select-tick {
.im_message_selected &,
.im_history_selectable .im_message_outer_wrap:hover & {
position: absolute;
width: 26px;
height: 26px;
margin: 9px 0 0 -59px;
display: block;
.image-2x('../img/icons/IconsetW.png', 42px, 1171px);
background-position: -9px -481px;
opacity: 0.5;
}
.im_message_selected & {
opacity: 1 !important;
}
.im_grouped_short &,
.im_grouped_short .im_message_outer_wrap:hover & {
margin-top: -2px;
}
.im_message_fwd &,
.im_message_outer_wrap:hover .im_message_fwd & {
margin-top: 10px;
}
.im_grouped_fwd &,
.im_grouped_fwd .im_message_outer_wrap:hover & {
margin-top: 7px;
}
.im_grouped &,
.im_grouped .im_message_outer_wrap:hover & {
margin-top: 7px;
}
.im_grouped_fwd_short &,
.im_grouped_fwd_short .im_message_outer_wrap:hover & {
margin-top: -5px;
}
}
}
.icon-message-status {
pointer-events: none;
background: #4eabf1;
border: 0;
display: block;
width: 10px;
height: 10px;
border-radius: 7px;
position: absolute;
margin-left: -26px;
margin-top: 16px;
opacity: 0;
.im_message_unread & {
opacity: 1.0;
}
.im_message_pending & {
opacity: 0.5;
}
.im_grouped_short & {
margin-top: 5px;
}
.im_message_fwd & {
margin-top: 16px;
}
.im_grouped_fwd & {
margin-top: 13px;
}
.im_grouped & {
margin-top: 13px;
}
.im_grouped_fwd_short & {
margin-top: 2px;
}
}
/* Dialogs modal */
.peer_select {
&_window {
.modal-dialog {
max-width: 420px;
}
}
&_modal_footer {
padding: 15px 10px 15px;
.box-shadow(0 -1px 0px rgba(0,0,0,0.05));
}
&_modal_recipients_wrap {
padding: 6px 0 0 10px;
white-space: nowrap;
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
}
&_modal_recipients_empty,
&_modal_recipients_name {
color: #999;
}
&_modal_recipient {
display: inline-block;
white-space: nowrap;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
}
}
a.peer_select_modal_share_link {
color: #999 !important;
}
@media (max-height: 600px), (max-width: 1010px) {
.im_page_wrap {
border-bottom: 0;
border-radius: 0;
.box-shadow(none);
}
.footer_wrap {
display: none;
}
}
.im_message_fwd {
&_author_wrap {
margin: 1px 0 4px;
display: inline-block;
}
&_author {
margin-right: 5px;
}
.im_message_fwd_author_wrap,
.im_message_text,
.im_message_media {
margin-left: 52px;
}
}
.im_send_panel_wrap {
max-width: 554px;
padding-bottom: 21px;
}
.im_send_form {
max-width: 382px;
left: 70px;
right: 72px;
}
.im_panel_peer_photo,
.im_panel_own_photo {
width: 52px;
height: 52px;
line-height: 52px;
border-radius: 50%;
overflow: hidden;
}
div.im_panel_peer_photo,
a.im_panel_peer_photo {
cursor: pointer;
margin-left: 20px;
height: 55px;
}
a.im_panel_own_photo {
display: block;
margin-right: 18px;
}
a.im_panel_own_photo .peer_initials,
div.im_panel_peer_photo .peer_initials,
a.im_panel_peer_photo .peer_initials {
font-size: 18px;
line-height: 50px;
}
.im_panel_peer_online {
background: #6ec26d;
border: 2px solid #fff;
display: block;
width: 14px;
height: 14px;
border-radius: 7px;
overflow: hidden;
position: absolute;
margin-top: -12px;
margin-left: 36px;
}
.composer_emoji_insert_btn,
.composer_progress_icon_wrap,
.composer_command_btn,
.composer_keyboard_btn {
z-index: 1;
}
.composer_emoji_insert_btn {
&:hover {
.icon-emoji {
opacity: 1;
}
}
&:active,
&.composer_emoji_insert_btn_on {
.icon-emoji {
background-position: -9px -367px;
opacity: 1;
}
}
}
.im_send_field_wrap {
margin-bottom: 13px;
padding-bottom: 2px;
overflow-x: hidden;
}
.composer_rich_textarea,
.composer_textarea {
overflow: none;
overflow-y: scroll;
border-radius: 0;
border: 0;
box-shadow: none;
outline: none;
box-shadow: 0 1px 0 0 #e8e8e8;
padding: 1px 28px 1px 0;
position: relative;
margin: 0;
min-height: 52px;
line-height: 20px;
height: auto;
box-sizing: border-box;
&:focus {
border: 0;
box-shadow: none;
outline: none;
box-shadow: 0 2px 0 0 #77b7e4;
}
.im_send_field_wrap_2ndbtn & {
padding-right: 65px;
}
}
.icon-paperclip {
display: inline-block;
width: 18px;
height: 17px;
vertical-align: top;
opacity: 0.8;
margin: 0;
.image-2x('../img/icons/General.png', 40px, 948px);
background-position: -11px -455px;
}
.im_attach {
cursor: pointer;
display: block;
overflow: hidden;
position: relative;
width: 18px;
height: 17px;
margin-right: 28px;
margin-top: 6px;
&:hover {
.icon-paperclip {
opacity: 1;
}
}
&:active {
.icon-paperclip {
background-position: -11px -482px;
opacity: 1;
}
}
}
.im_media_attach {
cursor: pointer;
display: block;
overflow: hidden;
position: relative;
padding: 0;
width: 20px;
height: 18px;
margin-top: 5px;
margin-right: 25px;
}
.icon-camera {
display: inline-block;
width: 20px;
height: 18px;
vertical-align: top;
opacity: 0.8;
.image-2x('../img/icons/General.png', 40px, 948px);
background-position: -10px -399px;
}
.im_media_attach {
&:hover .icon-camera {
opacity: 1;
}
&:active .icon-camera {
background-position: -10px -427px;
opacity: 1;
}
}
@media (max-height: 600px) {
a {
&.im_panel_peer_photo,
&.im_panel_own_photo {
display: none;
}
}
.im_send_field_wrap {
margin-bottom: 0;
}
.composer {
&_rich_textarea,
&_textarea {
min-height: 27px;
padding-right: 25px;
}
&_progress_icon_wrap {
top: 0;
right: 0;
margin-top: 0;
}
&_emoji_insert_btn {
top: 0;
right: 0px;
margin-top: -1px;
}
&_command_btn {
top: 2px;
right: 35px;
}
&_keyboard_btn {
top: 2px;
right: 35px;
}
&_emoji_panel {
display: none;
}
}
.im_submit {
position: absolute;
top: 0;
left: 100%;
margin: 0 0 0 15px;
}
.im_media_attach {
position: absolute;
top: -6px;
left: -43px;
width: 19px;
height: 24px;
}
.icon-camera {
display: inline-block;
width: 19px;
height: 23px;
vertical-align: text-top;
opacity: 0.8;
margin-top: -1px;
.image-2x('../img/icons/IconsetW.png', 42px, 1171px);
background-position: -12px -68px;
}
.im_media_attach {
&:hover .icon-camera,
&:active .icon-camera {
background-position: -12px -100px;
opacity: 1;
}
}
.im_attach {
display: none;
position: absolute;
top: 0;
right: 100%;
margin: 0;
margin-right: 45px;
margin-top: 1px;
}
.icon-emoji {
display: inline-block;
width: 22px;
height: 22px;
vertical-align: text-top;
opacity: 1;
margin: 0;
.image-2x('../img/icons/IconsetW.png', 42px, 1171px);
background-position: -10px -771px;
}
.composer_emoji_insert_btn:active .icon-emoji,
.is_1x .composer_emoji_insert_btn:active .icon-emoji,
.composer_emoji_insert_btn.composer_emoji_insert_btn_on .icon-emoji,
.is_1x .composer_emoji_insert_btn.composer_emoji_insert_btn_on .icon-emoji {
background-position: -10px -803px;
}
.im_edit_panel {
&_wrap {
padding-bottom: 8px;
}
&_border {
margin-bottom: 7px;
}
}
.im_send_dropbox_wrap {
padding-top: 5px;
padding-bottom: 5px;
}
}
.im_edit_panel {
&_wrap.im_edit_small_panel_wrap {
padding-bottom: 8px;
}
.im_edit_small_panel_wrap &_border {
margin-bottom: 7px;
}
}
/* Peer modals */
.user_modal {
&_window .modal-dialog {
max-width: 480px;
}
&_photo_profile_wrap {
padding: 13px 12px;
margin-bottom: 15px;
}
&_image_wrap {
display: block;
width: 100px;
margin-right: 22px;
overflow: hidden;
border-radius: 3px;
}
&_image {
width: 100px;
height: 100px;
}
&_header {
font-weight: bold;
margin: 2px 0 7px;
}
&_status {
color: #999;
margin-bottom: 15px;
}
}
.modal_section_body {
dt {
font-weight: normal;
display: inline-block;
width: 100px;
}
dd {
display: inline-block;
}
}
.user_modal {
&_main_btn {
border: 0;
font-size: 12px;
padding-left: 16px;
padding-right: 16px;
margin: 8px 10px 0 0;
float: left;
}
&_other_btn {
margin: 8px 0 0 0;
float: left;
.dropdown-toggle {
border: 0;
font-size: 12px;
}
.dropdown-menu {
margin-left: -3px;
}
}
&_settings_wrap {
margin-top: 25px;
}
&_notifications {
font-weight: bold;
}
&_clear {
margin-top: 20px;
}
}
.chat_modal {
&_window {
.modal-dialog {
max-width: 480px;
}
}
&_header {
font-weight: bold;
margin: 0 0 10px;
}
&_members_count {
color: #999;
margin-bottom: 16px;
}
&_actions_wrap {
float: right;
position: relative;
width: 332px;
& > button,
& > .chat_modal_other_btn > button,
& > span.btn {
padding: 7px 10px;
}
}
&_main_btn {
border: 0;
font-size: 12px;
padding-left: 16px;
padding-right: 16px;
float: left;
position: relative;
overflow: hidden;
margin-right: 10px;
margin-top: 8px;
}
&_invite_btn {
border: 0;
font-size: 12px;
padding-left: 16px;
padding-right: 16px;
float: left;
position: relative;
margin-right: 10px;
margin-top: 8px;
}
&_delete_btn {
border: 0;
font-size: 12px;
padding-left: 16px;
padding-right: 16px;
float: left;
margin-right: 10px;
margin-top: 8px;
}
&_other_btn {
margin-top: 8px;
float: left;
.dropdown-toggle {
border: 0;
font-size: 12px;
}
.dropdown-menu {
margin-left: -3px;
}
}
&_photo_update_link {
display: block;
padding: 5px 14px;
clear: both;
font-weight: normal;
line-height: 1.428571429;
color: #333333;
white-space: nowrap;
font-size: 13px;
overflow: hidden;
position: relative;
&:hover {
text-decoration: none;
color: #262626;
background-color: #f5f5f5;
}
}
&_settings_wrap {
margin-top: 10px;
}
}
.settings {
&_modal {
&_window {
.modal-dialog {
max-width: 480px;
}
}
&_settings {
padding: 4px 0;
margin: 0;
}
&_wrap {
.user_modal_main_btn {
position: relative;
overflow: hidden;
}
}
}
&_profile {
&_edit_form {
margin-bottom: 15px;
}
&_image_wrap {
float: left;
width: 120px;
margin-right: 22px;
}
&_first_name,
&_last_name {
width: 180px;
float: left;
margin-bottom: 0;
label {
margin-bottom: 3px;
}
}
&_first_name {
margin-right: 22px;
margin-bottom: 10px;
}
&_last_name {
margin-right: 10px;
margin-bottom: 15px;
}
&_save {
padding-top: 21px;
float: left;
&_btn {
width: 50px;
}
}
&_edit_form {
margin-bottom: 0;
input {
font-size: 12px;
line-height: normal;
background: #f2f2f2;
border: 1px solid #f2f2f2;
border-radius: 0;
padding: 6px 6px 6px 6px;
margin-bottom: 0;
margin: 0;
&:focus,
&:active {
background-color: #fff;
}
}
}
}
&_send_choose_form {
input {
margin-top: 2px;
}
}
&_send_choose_form {
margin-bottom: 20px;
}
&_user_phone,
&_version {
color: #999;
}
}
.modal_section_body {
dl.settings_modal_language {
margin: 3px 0;
dt {
padding-top: 2px;
}
}
}
.settings_modal_language_select {
font-size: 12px;
height: 21px;
line-height: 21px;
padding: 0;
}
.icon-volume {
&-outer {
display: inline-block;
background: #c7c7c7;
border-radius: 10px;
overflow: hidden;
height: 18px;
padding: 5px 8px;
margin: 0 9px 0 0;
width: 32px;
}
&-inner {
display: block;
background: #fff;
float: left;
width: 2px;
vertical-align: bottom;
margin: 0 1px 0;
height: 8px;
}
&-inner1 {
height: 2px;
margin-top: 6px;
}
&-inner2 {
height: 4px;
margin-top: 4px;
}
&-inner3 {
height: 6px;
margin-top: 2px;
}
&-outer1 &-inner2,
&-outer1 &-inner3,
&-outer1 &-inner4,
&-outer2 &-inner3,
&-outer2 &-inner4,
&-outer3 &-inner4 {
display: none;
}
}
.settings_volume_slider {
width: 100%;
max-width: 362px;
display: inline-block;
}
.im_message_selected .im_message_outer_wrap {
background: #f2f6fa;
}
.im_history_selectable .im_message_outer_wrap {
cursor: pointer;
}
.im_history_select_active .im_message_outer_wrap:hover {
background: #f2f6fa;
}
.im_message_wrap {
max-width: 560px;
padding: 0 15px 0 15px;
margin: 0 auto;
position: static;
}
.im_content_message_wrap {
margin: 8px 10px 8px 16px;
}
.im_message_views_wrap {
width: 0;
.im_grouped &,
.im_grouped_short &,
.im_grouped_fwd &,
.im_grouped_fwd_short & {
display: none;
.im_message_selected& {
display: block;
}
}
.im_message_selected.im_grouped &,
.im_message_selected.im_grouped_fwd & {
width: auto;
}
}
.im_message_views {
right: 0;
font-size: 0.85em;
top: 3px;
.im_grouped &,
.im_grouped_fwd & {
top: 19px;
}
.im_message_fwd & {
top: 3px;
}
}
.im_grouped_short {
.im_content_message_wrap {
margin: 6px 10px 6px 16px;
}
&:last-child {
.im_content_message_wrap {
margin-bottom: 8px;
}
}
}
@media (min-width: 901px) {
.im_message_wrap {
position: relative;
}
}
.im_message_author {
margin: 1px 0 4px;
display: inline-block;
}
/* Groupings */
.im_message_fwd_from {
margin-top: 5px;
}
.im_grouped .im_message_fwd_from {
margin-top: 0;
}
.im_message_fwd {
margin-top: 4px;
margin-bottom: 4px;
}
.im_grouped_short .im_message_author_wrap,
.im_grouped_short .im_message_from_photo,
.im_grouped .im_message_author_wrap,
.im_grouped .im_message_from_photo,
.im_grouped_fwd .im_message_author_wrap,
.im_grouped_fwd .im_message_from_photo,
.im_grouped_fwd_short .im_message_author_wrap,
.im_grouped_fwd_short .im_message_from_photo {
display: none;
}
.im_message_body {
.im_grouped_short &,
.im_grouped &,
.im_grouped_fwd &,
.im_grouped_fwd_short & {
margin-left: 57px;
}
}
.im_grouped_fwd .im_message_fwd_from,
.im_grouped_fwd_short .im_message_fwd_from {
display: none;
}
.im_message_fwd {
.im_grouped_short &,
.im_grouped &,
.im_grouped_fwd &,
.im_grouped_fwd_short & {
.im_message_meta {
display: none;
}
}
.im_grouped_fwd_short & {
margin-top: 8px;
}
}
.tooltip {
&-inner {
background: rgba(0,0,0, 0.8);
}
&-arrow {
opacity: 0.8;
}
}
.im_dialogs {
&_scrollable_wrap {
a.im_dialog {
padding: 7px 16px;
}
}
&_scrollable_wrap {
.active {
a.im_dialog {
margin-right: -2px;
padding-right: 18px;
}
}
}
}
.im_dialog {
&_photo {
width: 48px;
height: 48px;
border-radius: 50%;
overflow: hidden;
}
div&_photo {
margin-right: 15px;
.peer_initials {
line-height: 48px;
font-size: 18px;
}
}
&_message {
margin-top: 5px;
}
&_peer {
margin-top: 3px;
margin-bottom: 3px;
}
}
.active {
.im_dialog_date,
a.im_dialog:hover .im_dialog_date,
a.im_dialog_selected .im_dialog_date {
color: #fff;
}
}
/* Import contact modal */
.import_contact_modal_window {
.modal-dialog {
max-width: 480px;
}
}
.modal-content-animated {
-webkit-transition: margin-top linear 0.2s;
transition: margin-top linear 0.2s;
}
.countries {
&_modal_search {
padding: 12px 12px 12px;
margin: 0;
position: relative;
}
&_modal_col {
max-height: 350px;
}
&_modal_wrap .md_modal_body {
padding-bottom: 15px;
}
}
.modal_close {
width: 20px;
height: 21px;
float: right;
margin: 43px 40px 0 0;
opacity: 0.5;
pointer-events: none;
-webkit-transition : .2s;
-moz-transition : .2s;
-o-transition : .2s;
transition : .2s;
.image-2x('../img/icons/PhotoIcons.png', 40px, 200px);
background-position: -10px -10px;
&_wrap {
display: none;
cursor: pointer;
position: fixed;
top: 0;
right: 0;
width: 50%;
height: 100%;
&:hover {
.modal_close {
opacity: 1;
}
}
}
&_wrap_wnext {
width: 104px;
height: 150px;
}
}
.modal_prev_wrap,
.modal_next_wrap {
display: none;
position: fixed;
top: 0;
left: 0;
bottom: 64px;
width: 104px;
}
.modal_next_wrap {
left: auto;
right: 0;
}
.modal_prev,
.modal_next {
width: 16px;
height: 24px;
opacity: 0.15;
position: absolute;
top: 50%;
pointer-events: none;
margin: 0 0 0 38px;
-webkit-transition : .2s;
-moz-transition : .2s;
-o-transition : .2s;
transition : .2s;
.image-2x('../img/icons/PhotoIcons.png', 40px, 200px);
background-position: -12px -41px;
}
.modal_next {
margin: 0 0 0 50px;
background-position: -14px -75px;
}
.modal_prev_active_wrap {
cursor: pointer;
.modal_prev {
opacity: 0.5;
}
&:hover {
background-color: rgba(0,0,0,0.2);
.modal_prev {
opacity: 1;
}
}
}
.modal_next_active_wrap {
cursor: pointer;
.modal_next {
opacity: 0.5;
}
&:hover {
background-color: rgba(0,0,0,0.2);
.modal_next {
opacity: 1;
}
}
}
@media (min-width: 800px) {
.modal_close_wrap,
.modal_next_wrap,
.modal_prev_wrap {
display: block;
}
}
.media_modal {
&_bottom_panel {
max-width: 1000px;
margin: 0 auto;
color: rgba(255, 255, 255, 0.6);
position: relative;
&_wrap {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 64px;
background: #313131;
}
}
&_title_wrap {
max-width: 300px;
margin: 0 auto;
text-align: center;
font-size: 13px;
font-weight: bold;
line-height: 16px;
padding: 24px 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
&_info_wrap {
line-height: 16px;
padding: 15px 16px;
width: 200px;
position: absolute;
left: 0;
}
&_author_photo {
width: 32px;
height: 32px;
border-radius: 50%;
overflow: hidden;
.peer_initials {
line-height: 32px;
}
a& {
margin: 1px 10px 1px 0;
}
}
div&_author_name {
font-size: 13px;
margin-top: 1px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
&_date {
&,
a&:hover {
font-size: 11px;
color: rgba(255, 255, 255, 0.4);
}
div& {
margin-top: 2px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
&_wrap {
.modal-body {
padding: 16px;
}
}
}
.embed_modal_wrap .modal-body {
line-height: 0;
padding: 0;
}
.photo_modal_window,
.video_modal_window,
.document_modal_window {
padding: 0;
}
.video_modal_window {
.modal-body {
padding: 0;
}
}
.media_modal_bottom_actions {
position: absolute;
right: 0;
}
.media_modal_action_btn {
float: left;
display: block;
width: 68px;
height: 64px;
&:hover {
background: rgba(0,0,0,0.2);
}
i {
display: block;
opacity: 0.5;
.image-2x('../img/icons/PhotoIcons.png', 40px, 200px);
background-position: 0 0;
}
&:hover i {
opacity: 1;
}
& i&_download {
background-position: -12px -163px;
width: 16px;
height: 20px;
margin: 22px 26px;
}
& i&_forward {
background-position: -9px -109px;
width: 23px;
height: 15px;
margin: 24px 22px;
}
& i&_delete {
background-position: -13px -135px;
width: 14px;
height: 18px;
margin: 23px 27px;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Telegram/webogram.git
git@gitee.com:Telegram/webogram.git
Telegram
webogram
Webogram
master

搜索帮助