Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2019-03-03 23:05:28

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: Older style Textile parsing for 4.7.3?

A very simple way to get the content and sidebar layout is to add:

.container {
    display: flex;
    min-height: 100%;
}
main {
    flex: 5;
    padding-right: 3rem;
}
.complementary-content {
    flex: 1;
}

Obviously you can do a lot more than that, or be more specific about it, but it illustrates the principle.

And if you don’t want the text to be enlarged at wider viewport widths, you can comment out this rule:

/* ==========================================================================
   Additional layout for screen media 864px and up
   ========================================================================== */
@media only screen and (min-width: 46em) {
  /**
     * Enlarge baseline text size.
     */
  html {
    /* font-size: 1.125rem; */
  }
}

And then you can start adding things like your recent articles back into the aside section for your sidebar…

EDIT: You can embed video natively in HTML5, of course, but if you are on the lookout for a general purpose embedder, try oui_video and it’s partner plugins for different providers. It’s very versatile.

ONE MORE THING: There are some email obfuscation plugins for txp like yab_email (and I’m sure there are others), but if you just need your email once on the page, a quite effective obfuscator is hivelogic’s enkoder .


TXP Builders – finely-crafted code, design and txp

Offline

#14 2019-03-04 09:11:40

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Older style Textile parsing for 4.7.3?

I’m going to rewrite the default theme to a certain extent in Textpattern v4.8 – and also include the grid scaffolding from my general dev framework.

Offline

Board footer

Powered by FluxBB