-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from lgommans/dev
HTML formatter
- Loading branch information
Showing
6 changed files
with
484 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class='navigation-bottom'><a href="index.html">Back to index</a>%s</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Chat: %s</title> | ||
<link rel=stylesheet href="telegram-history-dump.css"> | ||
</head> | ||
<body> | ||
<div class='navigation-top'><a href="index.html">Back to index</a>%s</div> | ||
<h1>%s</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Telegram History Dump</title> | ||
<link rel=stylesheet href="telegram-history-dump.css"> | ||
</head> | ||
<body> | ||
<h1>Telegram History Dump</h1> | ||
%s | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
body { | ||
width: 700px; | ||
margin: 15px auto 150px auto; | ||
} | ||
|
||
.msg { | ||
box-sizing: border-box; | ||
float: left; | ||
width: auto; | ||
max-width: 80%; | ||
position: relative; | ||
clear: both; | ||
|
||
background: #dcebfe; | ||
background-image: linear-gradient(bottom, #bee2ff 15%, #dcebfe 100%); | ||
border: solid 1px rgba(0,0,0,0.5); | ||
border-radius: 20px; | ||
box-shadow: inset 0 8px 5px rgba(255,255,255,0.65), 0 1px 2px rgba(0,0,0,0.2); | ||
|
||
margin-bottom: 10px; | ||
padding: 6px 20px; | ||
word-wrap: break-word; | ||
} | ||
|
||
.msg:before, .msg:after { | ||
border-radius: 20px / 5px; | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
} | ||
.msg:before { | ||
border: 10px solid transparent; | ||
border-bottom-color: rgba(0,0,0,0.5); | ||
bottom: 0px; | ||
left: -7px; | ||
z-index: -2; | ||
} | ||
.msg:after { | ||
border: 8px solid transparent; | ||
border-bottom-color: #bee2ff; | ||
bottom: 1px; | ||
left: -5px; | ||
} | ||
|
||
.out { | ||
float: right; | ||
background: #bcf6a6; | ||
background-image: linear-gradient(bottom, #bee2ff 15%, #bcf6a6 100%); | ||
} | ||
.out:before { | ||
left: auto; | ||
right: -7px; | ||
} | ||
.out:after { | ||
left: auto; | ||
right: -5px; | ||
|
||
border-bottom-color: #d9ffbe; | ||
} | ||
|
||
.dialog { | ||
float: left !important; | ||
} | ||
|
||
.dialog .icon { | ||
width: 23px; | ||
height: 20px; | ||
display: inline-block; | ||
} | ||
|
||
.navigation { | ||
clear: both; | ||
} | ||
|
||
.icon { | ||
background-size: 100% 100%; | ||
} | ||
|
||
/* Credits: http://www.flaticon.com/free-icon/multiple-users-silhouette_33308 */ | ||
.img-group { | ||
background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxs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DAuMTg4bDAuODQsMC4yNjUgICBjNi4zNTIsMS45ODMsMTIuMDIxLDIuODk3LDE2Ljk0NSwzLjE4NXYtMy42ODNDMTcuODE4LDQ5Ljc3MywyMy4yMTIsNDIuOTM2LDMwLjU4OSw0MC43NDF6IiBmaWxsPSIjMDAwMDAwIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==); | ||
} | ||
|
||
/* Credits: http://www.flaticon.com/free-icon/user-black-close-up-shape_32438 */ | ||
.img-single-user { | ||
background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgNDY2LjE0NiA0NjYuMTQ2IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0NjYuMTQ2IDQ2Ni4xNDY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8cGF0aCBkPSJNMjg5LjI4NSwxOTEuODZjMjguODQ0LTE4LjUzOSw0Ny45OTUtNTAuODMsNDcuOTk1LTg3LjY1NEMzMzcuMjgsNDYuNjU5LDI5MC42MjEsMCwyMzMuMDg4LDAgICBjLTU3LjU1OSwwLTEwNC4yMDcsNDYuNjU5LTEwNC4yMDcsMTA0LjIwN2MwLDM2LjgyNCwxOS4xNTEsNjkuMTIxLDQ3Ljk5Niw4Ny42NTRjLTY3Ljk1OSw2LjA4Mi0xMjEuNDIyLDYzLjMzMS0xMjEuNDIyLDEzMi44NTQgICB2MTA4LjE1NWwwLjI3NCwxLjY5bDcuNDU3LDIuMzI4YzcwLjE5NiwyMS45MjksMTMxLjE5NSwyOS4yNTksMTgxLjQwMSwyOS4yNTljOTguMDQ4LDAsMTU0Ljg4Ni0yNy45NywxNTguNDA4LTI5Ljc0M2w2Ljk2My0zLjUzNCAgIGgwLjczMlYzMjQuNzE0QzQxMC42OTgsMjU1LjE5NywzNTcuMjUzLDE5Ny45NTcsMjg5LjI4NSwxOTEuODZ6IiBmaWxsPSIjMDAwMDAwIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==); | ||
} | ||
|
||
.author { | ||
font-style: italic; | ||
display: inline-block; | ||
color: #666152; | ||
} | ||
|
||
.msg img, .msg video { | ||
max-width: 525px; | ||
max-height: 500px; | ||
} | ||
|
||
.msg .webpage, .msg .geo, .msg .contact { | ||
border-left: 3px solid #bbb; | ||
padding-left: 5px; | ||
} | ||
|
||
.msg-service { | ||
clear: both; | ||
text-align: center; | ||
} | ||
|
||
.msg-service .inner { | ||
margin-bottom: 10px; | ||
color: #fff; | ||
background-color: rgba(0, 0, 0, 0.7); | ||
padding: 5px; | ||
display: inline-block; | ||
border-radius: 6px; | ||
} | ||
|
||
.navigation-bottom { | ||
clear: both; | ||
padding-top: 15px; | ||
} | ||
|
Oops, something went wrong.