liquid-layout

Date Math / Manipulation in Liquid Template Filter

限于喜欢 提交于 2019-11-30 08:22:16
I'm constructing an "Integration URL" in Desk.com, which uses the Shopify Liquid Template filter syntax. This URL needs to contain a "start date" and an "end date" for a query where the start date is 7 days ago and the end date is right now. To achieve this I think I need to subtract 7 days (604800 in Epoch time) from the 'now' object and then apply my formatting but I can't figure out valid syntax for that. For the current time, this syntax is valid and working: {{'now' | date: "%b %d, %Y %I:%M %p -0500" | uri_encode | replace:"+","%20"}} For 7 days ago, here's the best I could come up with

In CSS, how do I get a left-side fixed-width column with a right-side table that uses the rest of the width?

為{幸葍}努か 提交于 2019-11-28 03:34:23
So I've tried to work with the pure-CSS, never-use-tables-for-layout gospel, I really have. But after an incredible amount of pain and anguish, I'm just about ready to give up. I'm willing to go to some effort to accomplish things in CSS, don't get me wrong. But when it seems like some of the most asininely simple things that can be done with layout tables are utterly impossible in CSS, I don't care if conceptual purity really starts to take a beating. Now, it probably seems like I'm angry, and I am; I'm angry about my wasted time, I'm angry about people coming out of QuarkXpress backgrounds

Browser doesn't scale below 400px?

匆匆过客 提交于 2019-11-28 02:51:14
I'm working on putting together a liquid style-sheet and it works wonderful. One thing that I've noticed is that my browser window in Chrome won't resize below 400px it just gets stuck there and in FF as I scale down it it just stops at around 400px and then pops a horizontal scroll bar. When I open the site on my phone it looks perfect at around 320px, so I know it does scale lower than 400px. I was curious if anyone knew if this was a browser/desktop thing or if I should be looking at something other than my CSS. I don't have any min-width declarations so i'm not sure what could be causing

CSS container div not getting height

旧时模样 提交于 2019-11-27 05:51:53
I want my container div to get the height of max of its children's height. without knowing what height the child div s are going to have. I was trying out on JSFiddle . The container div is on red. which is not showing up. Why? Add the following property: .c{ ... overflow: hidden; } This will force the container to respect the height of all elements within it, regardless of floating elements. http://jsfiddle.net/gtdfY/3/ UPDATE Recently, I was working on a project that required this trick, but needed to allow overflow to show, so instead, you can use a pseudo-element to clear your floats,

Browser doesn't scale below 400px?

两盒软妹~` 提交于 2019-11-27 05:02:09
问题 I'm working on putting together a liquid style-sheet and it works wonderful. One thing that I've noticed is that my browser window in Chrome won't resize below 400px it just gets stuck there and in FF as I scale down it it just stops at around 400px and then pops a horizontal scroll bar. When I open the site on my phone it looks perfect at around 320px, so I know it does scale lower than 400px. I was curious if anyone knew if this was a browser/desktop thing or if I should be looking at

In CSS, how do I get a left-side fixed-width column with a right-side table that uses the rest of the width?

风流意气都作罢 提交于 2019-11-27 00:07:27
问题 So I've tried to work with the pure-CSS, never-use-tables-for-layout gospel, I really have. But after an incredible amount of pain and anguish, I'm just about ready to give up. I'm willing to go to some effort to accomplish things in CSS, don't get me wrong. But when it seems like some of the most asininely simple things that can be done with layout tables are utterly impossible in CSS, I don't care if conceptual purity really starts to take a beating. Now, it probably seems like I'm angry,

CSS container div not getting height

别等时光非礼了梦想. 提交于 2019-11-26 11:47:49
问题 I want my container div to get the height of max of its children\'s height. without knowing what height the child div s are going to have. I was trying out on JSFiddle. The container div is on red. which is not showing up. Why? 回答1: Add the following property: .c{ ... overflow: hidden; } This will force the container to respect the height of all elements within it, regardless of floating elements. http://jsfiddle.net/gtdfY/3/ UPDATE Recently, I was working on a project that required this