Chapter Text
Initially this was just copied and pasted this from Coding Encyclopædia with some slightly different messages. All the features seem to be here, but some are slightly broken for whatever reason.
Testing an iMessage-style group chat thing by Azdaema Codes
(See the end of the work for notes.)
The CSS for this has gone in largely unedited. I'm going to try to combine bits from the one-on-one segment and the group chat segment, which are both found one after the other here. For reference, this is based on a work by Azdaema Codes which can be found here.
(See the end of the chapter for more notes.)
Initially this was just copied and pasted this from Coding Encyclopædia with some slightly different messages. All the features seem to be here, but some are slightly broken for whatever reason.
I am testing this on my regular skin, because I might end up incorporating text messages into multiple works in the future.
Notes to Self on How This Works
The class of the <dl> tag the entire thing is contained in can have multiple classes combined between the speech marks.
- "imessage" is what makes it work
- "border" renders the border
- "sms" turns all outgoing texts green regardless of whether the "sms" class is on them
- "grouptext" displays all the usernames on incoming texts when work skin is switched on. Omitting this hides them, but they still remain there and are visible when work skin is switched off.
Texts will be grouped together within each <div> tag. To add a space between them, create another div with another set of <dt> and <dd> tags in it. When adding "read 0:00 am/pm" timestamps, ensure it is between the last message and the </div>
SMS doesn't have read receipts or emoji. It might explain why putting an emoji class <dd> into an out sms class <div> gave it a green background.
Leaving the typebar empty will make it show a light grey string of text saying "iMessage". If the <dl> class contains "sms", this will be replaced by "Text Message • SMS"
I've changed the way you make the header. Now it is a div with a class of "contact". Within that is the image (class="headerimg"), then a line break tag like in the original, then a normal <h2> tag. Its attributes are modified by a section I added to the CSS to set the <h2> font to "Helvetica", "Helvetica Neue", system-ui; within anything with the class of "imessage".
Divider
Tag weirdness
- There used to be a text class in this skin called "sms" that was intended to just make everything monospace, as seen here. It is no longer applied to things with the "sms" class.
- Ensure all divs are opened and closed properly or you'll get weird visual errors.
MARI4444, eon4, its_ukon, and GumbaBunny left kudos on this work!
Sorry, this work doesn't allow non-Archive users to comment. You can however still leave Kudos!