aboutsummaryrefslogtreecommitdiff
path: root/source/css/theme-narrow.css
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-07-17 16:28:52 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-07-17 16:28:52 -0700
commit3e7de572d153d91a691c9792c8d3611e0bb8b00f (patch)
tree5407033597f214f41da9ddb44ffeae6fb012c358 /source/css/theme-narrow.css
parenteffd834bd74c3b6a25ebaf59adcab6bd6d29cbdc (diff)
downloadmy_new_personal_website-3e7de572d153d91a691c9792c8d3611e0bb8b00f.tar.xz
my_new_personal_website-3e7de572d153d91a691c9792c8d3611e0bb8b00f.zip
design mobile and narrow window friendly theme
Tested on iPhone 6 Plus (both portrait and landscape).
Diffstat (limited to 'source/css/theme-narrow.css')
-rw-r--r--source/css/theme-narrow.css31
1 files changed, 31 insertions, 0 deletions
diff --git a/source/css/theme-narrow.css b/source/css/theme-narrow.css
new file mode 100644
index 00000000..8f3e5ecf
--- /dev/null
+++ b/source/css/theme-narrow.css
@@ -0,0 +1,31 @@
+nav {
+ position: static;
+ padding: 5% 0 0 0;
+ text-align: center;
+ height: 100%;
+ width: 100%;
+}
+
+nav div {
+ text-align: center;
+ margin: auto;
+}
+
+nav div.logo {
+ height: 200px;
+ width: 200px;
+ padding: 2px 0;
+}
+
+nav div.title, div.author {
+ height: 0;
+ width: 0;
+ visibility: hidden;
+ pointer-events: none;
+}
+
+article {
+ position: static;
+ width: 80%;
+ padding: 0 10%;
+}