Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r10694: LJSUP-8956: Calendar Minimalism

Committer: esavintcev
LJSUP-8956: Calendar Minimalism
U   trunk/bin/upgrading/s2layers/sup/layout.s2
U   trunk/bin/upgrading/s2layers/sup/themes.s2
U   trunk/htdocs/stc/sup/s/style.css
Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2011-06-24 02:20:36 UTC (rev 10693)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2011-06-24 03:13:09 UTC (rev 10694)
@@ -517,9 +517,9 @@
             } else {
                 """<td>""";
             }
-            if ($day.num_entries > 0) { """<a href="$day.url">"""; }
-            print $day.day == 0?"&nbsp;":string($day.day);
-            if ($day.num_entries > 0) { """</a>"""; }
+            if ($day.num_entries > 0) { """<span><a href="$day.url">"""; }
+            print $day.day == 0 ? "<span>&nbsp;</span>" : "<span>" + string($day.day) + "</span>";
+            if ($day.num_entries > 0) { """</a></span>"""; }
             """</td>""";
         if ($counter%7 == 0) {"""</tr>\n""";}
         $counter++;

Modified: trunk/bin/upgrading/s2layers/sup/themes.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/themes.s2	2011-06-24 02:20:36 UTC (rev 10693)
+++ trunk/bin/upgrading/s2layers/sup/themes.s2	2011-06-24 03:13:09 UTC (rev 10694)
@@ -289,9 +289,9 @@
         } else {
             """<td>""";
         }
-        if ($day.num_entries > 0) { """<a href="$day.url">"""; }
-        print $day.day == 0?" ":string($day.day);
-        if ($day.num_entries > 0) { """</a>"""; }
+        if ($day.num_entries > 0) { """<span><a href="$day.url">"""; }
+        print $day.day == 0 ? "<span>&nbsp;</span>" : "<span>" + string($day.day) + "</span>";
+        if ($day.num_entries > 0) { """</a></span>"""; }
 
         """</td>""";
         if ($counter%7 == 0) {

Modified: trunk/htdocs/stc/sup/s/style.css
===================================================================
--- trunk/htdocs/stc/sup/s/style.css	2011-06-24 02:20:36 UTC (rev 10693)
+++ trunk/htdocs/stc/sup/s/style.css	2011-06-24 03:13:09 UTC (rev 10694)
@@ -534,6 +534,19 @@
 				margin:-2px -4px;
 				text-align:right;
 				}
+		.calendar-wrap TABLE TBODY TD SPAN {
+			position: static;
+			top: auto;
+			right: auto;
+			bottom: auto;
+			left: auto;
+			float: none;
+			display: inline;
+			width: auto;
+			height: auto;
+			margin: 0;
+			padding: 0;
+			}
 		.calendar-wrap TABLE TBODY TD.other SPAN {
 			display: none;
 			}

Tags: css, ljcom, s2, savintsev_egor
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments