Compare commits

...

5 Commits

Author SHA1 Message Date
e01a4f3e6c fix: correct layout attribute in atom and sitemap files
fix: update title field in config and fix link formatting in post
fix build errors

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
2025-06-27 13:05:32 +05:30
f83be79e61 fix(bug): dropdown center allignment 2025-06-27 08:50:35 +05:30
263d34839d fix(bug): navigation component position 2025-06-27 08:42:30 +05:30
c12e6c72c6 feat: mobile view and navbar 2025-06-27 08:10:21 +05:30
11af75583d chore: update .gitignore to exclude temp and system files 2025-06-27 07:30:50 +05:30
12 changed files with 1066 additions and 185 deletions

29
.gitignore vendored
View File

@ -1,2 +1,27 @@
_site
.sass-cache
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Ignore dependencies
vendor/
.bundle/
node_modules/
package-lock.json
yarn.lock
# Ignore system files
.DS_Store
Thumbs.db
# Ignore logs and temp files
*.log
*.tmp
*.swp
*.swo
# Ignore by editors/IDEs
.vscode/
.idea/
*.iml

View File

@ -1,3 +1,2 @@
source 'http://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins

View File

@ -1,97 +1,117 @@
GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
activesupport (6.0.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
activesupport (7.2.2.1)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
base64 (0.2.0)
benchmark (0.4.1)
bigdecimal (3.2.2)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.11.1)
coffee-script-source (1.12.2)
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.6)
dnsruby (1.61.3)
addressable (~> 2.5)
em-websocket (0.5.1)
commonmarker (0.23.11)
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
csv (3.3.5)
dnsruby (1.72.4)
base64 (~> 0.2.0)
logger (~> 1.6.5)
simpleidn (~> 0.2.1)
drb (2.2.3)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.12.0)
ffi (>= 1.3.0)
http_parser.rb (~> 0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
execjs (2.7.0)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
ffi (1.13.1)
execjs (2.10.0)
faraday (2.13.1)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.1)
net-http (>= 0.5.0)
ffi (1.17.2-x86_64-linux-musl)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (207)
github-pages-health-check (= 1.16.1)
jekyll (= 3.9.0)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.1.6)
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.13.0)
gemoji (4.1.0)
github-pages (232)
github-pages-health-check (= 1.18.2)
jekyll (= 3.10.0)
jekyll-avatar (= 0.8.0)
jekyll-coffeescript (= 1.2.2)
jekyll-commonmark-ghpages (= 0.5.1)
jekyll-default-layout (= 0.1.5)
jekyll-feed (= 0.17.0)
jekyll-gist (= 1.5.0)
jekyll-github-metadata (= 2.13.0)
jekyll-mentions (= 1.5.1)
jekyll-github-metadata (= 2.16.1)
jekyll-include-cache (= 0.2.1)
jekyll-mentions (= 1.6.0)
jekyll-optional-front-matter (= 0.3.2)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.3.0)
jekyll-redirect-from (= 0.15.0)
jekyll-redirect-from (= 0.16.0)
jekyll-relative-links (= 0.6.1)
jekyll-remote-theme (= 0.4.1)
jekyll-remote-theme (= 0.4.3)
jekyll-sass-converter (= 1.5.2)
jekyll-seo-tag (= 2.6.1)
jekyll-seo-tag (= 2.8.0)
jekyll-sitemap (= 1.4.0)
jekyll-swiss (= 1.0.0)
jekyll-theme-architect (= 0.1.1)
jekyll-theme-cayman (= 0.1.1)
jekyll-theme-dinky (= 0.1.1)
jekyll-theme-hacker (= 0.1.1)
jekyll-theme-leap-day (= 0.1.1)
jekyll-theme-merlot (= 0.1.1)
jekyll-theme-midnight (= 0.1.1)
jekyll-theme-minimal (= 0.1.1)
jekyll-theme-modernist (= 0.1.1)
jekyll-theme-primer (= 0.5.4)
jekyll-theme-slate (= 0.1.1)
jekyll-theme-tactile (= 0.1.1)
jekyll-theme-time-machine (= 0.1.1)
jekyll-theme-architect (= 0.2.0)
jekyll-theme-cayman (= 0.2.0)
jekyll-theme-dinky (= 0.2.0)
jekyll-theme-hacker (= 0.2.0)
jekyll-theme-leap-day (= 0.2.0)
jekyll-theme-merlot (= 0.2.0)
jekyll-theme-midnight (= 0.2.0)
jekyll-theme-minimal (= 0.2.0)
jekyll-theme-modernist (= 0.2.0)
jekyll-theme-primer (= 0.6.0)
jekyll-theme-slate (= 0.2.0)
jekyll-theme-tactile (= 0.2.0)
jekyll-theme-time-machine (= 0.2.0)
jekyll-titles-from-headings (= 0.5.3)
jemoji (= 0.11.1)
kramdown (= 2.3.0)
jemoji (= 0.13.0)
kramdown (= 2.4.0)
kramdown-parser-gfm (= 1.1.0)
liquid (= 4.0.3)
liquid (= 4.0.4)
mercenary (~> 0.3)
minima (= 2.5.1)
nokogiri (>= 1.10.4, < 2.0)
rouge (= 3.19.0)
nokogiri (>= 1.16.2, < 2.0)
rouge (= 3.30.0)
terminal-table (~> 1.4)
github-pages-health-check (1.16.1)
webrick (~> 1.8)
github-pages-health-check (1.18.2)
addressable (~> 2.3)
dnsruby (~> 1.60)
octokit (~> 4.0)
public_suffix (~> 3.0)
octokit (>= 4, < 8)
public_suffix (>= 3.0, < 6.0)
typhoeus (~> 1.3)
html-pipeline (2.14.3)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (0.9.5)
http_parser.rb (0.8.0)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
jekyll (3.9.0)
jekyll (3.10.0)
addressable (~> 2.4)
colorator (~> 1.0)
csv (~> 3.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
i18n (>= 0.7, < 2)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
@ -100,28 +120,31 @@ GEM
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-avatar (0.7.0)
webrick (>= 1.0)
jekyll-avatar (0.8.0)
jekyll (>= 3.0, < 5.0)
jekyll-coffeescript (1.1.1)
jekyll-coffeescript (1.2.2)
coffee-script (~> 2.2)
coffee-script-source (~> 1.11.1)
jekyll-commonmark (1.3.1)
commonmarker (~> 0.14)
jekyll (>= 3.7, < 5.0)
jekyll-commonmark-ghpages (0.1.6)
commonmarker (~> 0.17.6)
jekyll-commonmark (~> 1.2)
rouge (>= 2.0, < 4.0)
jekyll-default-layout (0.1.4)
jekyll (~> 3.0)
jekyll-feed (0.13.0)
coffee-script-source (~> 1.12)
jekyll-commonmark (1.4.0)
commonmarker (~> 0.22)
jekyll-commonmark-ghpages (0.5.1)
commonmarker (>= 0.23.7, < 1.1.0)
jekyll (>= 3.9, < 4.0)
jekyll-commonmark (~> 1.4.0)
rouge (>= 2.0, < 5.0)
jekyll-default-layout (0.1.5)
jekyll (>= 3.0, < 5.0)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-github-metadata (2.13.0)
jekyll-github-metadata (2.16.1)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.5.1)
octokit (>= 4, < 7, != 4.4.0)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-mentions (1.6.0)
html-pipeline (~> 2.3)
jekyll (>= 3.7, < 5.0)
jekyll-optional-front-matter (0.3.2)
@ -129,127 +152,129 @@ GEM
jekyll-paginate (1.1.0)
jekyll-readme-index (0.3.0)
jekyll (>= 3.0, < 5.0)
jekyll-redirect-from (0.15.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-relative-links (0.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-remote-theme (0.4.1)
jekyll-remote-theme (0.4.3)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
rubyzip (>= 1.3.0)
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
rubyzip (>= 1.3.0, < 3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-swiss (1.0.0)
jekyll-theme-architect (0.1.1)
jekyll (~> 3.5)
jekyll-theme-architect (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-cayman (0.1.1)
jekyll (~> 3.5)
jekyll-theme-cayman (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-dinky (0.1.1)
jekyll (~> 3.5)
jekyll-theme-dinky (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-hacker (0.1.1)
jekyll (~> 3.5)
jekyll-theme-hacker (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-leap-day (0.1.1)
jekyll (~> 3.5)
jekyll-theme-leap-day (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-merlot (0.1.1)
jekyll (~> 3.5)
jekyll-theme-merlot (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-midnight (0.1.1)
jekyll (~> 3.5)
jekyll-theme-midnight (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-minimal (0.1.1)
jekyll (~> 3.5)
jekyll-theme-minimal (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-modernist (0.1.1)
jekyll (~> 3.5)
jekyll-theme-modernist (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-primer (0.5.4)
jekyll-theme-primer (0.6.0)
jekyll (> 3.5, < 5.0)
jekyll-github-metadata (~> 2.9)
jekyll-seo-tag (~> 2.0)
jekyll-theme-slate (0.1.1)
jekyll (~> 3.5)
jekyll-theme-slate (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-tactile (0.1.1)
jekyll (~> 3.5)
jekyll-theme-tactile (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-time-machine (0.1.1)
jekyll (~> 3.5)
jekyll-theme-time-machine (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-titles-from-headings (0.5.3)
jekyll (>= 3.3, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.11.1)
gemoji (~> 3.0)
jemoji (0.13.0)
gemoji (>= 3, < 5)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.0)
json (2.12.2)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.7.1)
liquid (4.0.4)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.6)
mercenary (0.3.6)
mini_portile2 (2.8.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.16.3)
multipart-post (2.1.1)
nokogiri (1.13.10)
mini_portile2 (~> 2.8.0)
minitest (5.25.5)
net-http (0.6.0)
uri
nokogiri (1.18.8-x86_64-linux-musl)
racc (~> 1.4)
octokit (4.18.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.1.1)
racc (1.6.1)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
public_suffix (5.1.1)
racc (1.8.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.19.0)
ruby-enum (0.8.0)
i18n
rubyzip (2.3.2)
rexml (3.4.1)
rouge (3.30.0)
rubyzip (2.4.1)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.2)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
faraday (>= 0.17.3, < 3)
securerandom (0.4.1)
simpleidn (0.2.3)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
typhoeus (1.4.0)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unicode-display_width (1.7.0)
zeitwerk (2.6.6)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (1.8.0)
uri (1.0.3)
webrick (1.9.1)
PLATFORMS
ruby
x86_64-linux-musl
DEPENDENCIES
github-pages
BUNDLED WITH
2.3.26
2.3.25

View File

@ -21,9 +21,9 @@ defaults:
is_category_page: true
layout: category
name: Watch Out, IIT Roorkee
title: Watch Out, IIT Roorkee
url: http://watchout.iitr.ac.in
gems: [jekyll-paginate]
plugins: [jekyll-paginate]
description: The official news magazine of IIT Roorkee.
paginate: 10
paginate_path: "/page/:num"

View File

@ -13,7 +13,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>
{{ title }}
@ -43,15 +43,16 @@
<meta name="author" content="{{ site.name }}" />
<meta name="description" content="{{ desc }}" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="alternate" type="application/rss+xml" href="/atom.xml" />
<link rel="stylesheet" href="{{ '/css/base.css' | relative_url }}">
<link rel="stylesheet" href="/css/base.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="/css/table.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="/css/posts.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="/css/mobile.css" type="text/css" media="screen and (max-width: 768px)" />
<script type="text/javascript" src="/js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/masonry.min.js"></script>
<script type="text/javascript" src="/js/application.js"></script>
</head>
</head>

View File

@ -8,6 +8,15 @@
</div>
</div>
</a>
<!-- Mobile toggle button -->
<button type="button" class="navbar-toggle" id="mobile-menu-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="social pull-right">
<a href="/about">About</a>
<a href="/guide">Guide</a>
@ -16,6 +25,28 @@
<a href="https://www.youtube.com/channel/UCthZ7tKOzy4EJpuVxtdcp1A"><img src="/images/youtube-play.svg"></a>
<a href="mailto:watchout@iitr.ac.in"><img src="/images/email.png" width="16px"></a>
</div>
<!-- Mobile navigation menu -->
<div class="mobile-nav" id="mobile-nav">
<ul class="nav">
{% for cat in site.data.categories %}
{% if cat.subcategories != nil %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-category="{{ cat.name }}">{{ cat.title }}</a>
<ul class="dropdown-menu">
{% for subcat in cat.subcategories %}
{% if site.categories[subcat.name] != nil %}
<li><a href="/category/{{ subcat.name }}/">{{ subcat.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% elsif site.categories[cat.name] != nil%}
<li><a href="/category/{{ cat.name }}/">{{ cat.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
<nav class="navbar navbar-default" data-spy="affix" data-offset-top="110">
@ -54,3 +85,44 @@
<!--/.nav-collapse -->
</div>
</nav>
<!-- Mobile Navigation JavaScript -->
<script>
document.addEventListener('DOMContentLoaded', function() {
// Mobile menu toggle functio
const mobileToggle = document.getElementById('mobile-menu-toggle');
const mobileNav = document.getElementById('mobile-nav');
if (mobileToggle && mobileNav) {
mobileToggle.addEventListener('click', function() {
mobileNav.classList.toggle('show');
});
}
// Mobile dropdown functionality
const dropdownToggles = document.querySelectorAll('.mobile-nav .dropdown-toggle');
dropdownToggles.forEach(function(toggleBtn) {
toggleBtn.addEventListener('click', function(e) {
e.preventDefault();
const dropdown = this.parentElement;
// Close other open dropdowns jab some other dropdown is clicked
const otherDropdowns = document.querySelectorAll('.mobile-nav .dropdown.open');
otherDropdowns.forEach(function(otherDropdown) {
if (otherDropdown !== dropdown) {
otherDropdown.classList.remove('open');
}
});
dropdown.classList.toggle('open');
});
});
// Close mobile menu when clicking outside
document.addEventListener('click', function(e) {
if (mobileNav && !mobileNav.contains(e.target) && !mobileToggle.contains(e.target)) {
mobileNav.classList.remove('show');
}
});
});
</script>

View File

@ -74,6 +74,6 @@ This issue can be dealt with if the dogs are treated properly. The campus has a
The Dog Menace Committee meets every month, so any rule/initiatives which may have loopholes are expected to be revamped. Roorkees pup fiction will need an active contribution from the campus junta to have a happy and warm ending.
<span style="text-decoration:underline">[Minutes of Meeting of the Dog Menace Committee Meeting, 15 th April 2019 (PDF)]({{ site.url }}/{{ https://drive.google.com/file/d/1Ro59qPApmDfeWm5k_YyI3-p5jzWroQFa/view?usp=sharing }})</span>
<span style="text-decoration:underline">[Minutes of Meeting of the Dog Menace Committee, 15th April 2019 (PDF)](https://drive.google.com/file/d/1Ro59qPApmDfeWm5k_YyI3-p5jzWroQFa/view?usp=sharing)</span>
![pic](/images/posts/doggoz2.png){: style="width:70%;height:auto"}

View File

@ -1,5 +1,5 @@
---
layout: nil
layout: none
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

View File

@ -26,6 +26,10 @@ $article-cover-img-height: 190px;
$carousel-bg-color: #333;
$carousel-height: 625px;
// Mobile breakpoints
$mobile-breakpoint: 768px;
$small-mobile-breakpoint: 480px;
// =============== /VARS ===============//
@import "bootstrap";
@ -56,6 +60,17 @@ $carousel-height: 625px;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
}
@mixin mobile {
@media (max-width: #{$mobile-breakpoint}) {
@content;
}
}
@mixin small-mobile {
@media (max-width: #{$small-mobile-breakpoint}) {
@content;
}
}
// ============== /MIXINS ============== //
@ -80,6 +95,12 @@ $carousel-height: 625px;
src: local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v7/IQHow_FEYlDC4Gzy_m8fcoWiMMZ7xLd792ULpGE4W_Y.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
// Base styles with mobile-first approach (very impotant)
html {
overflow-x: hidden;
max-width: 100%;
}
body {
font-size: 13px;
@ -87,21 +108,49 @@ body {
background: #fff;
font-family: Lato, Merriweather, Open Sans, sans-serif;
@include box-sizing();
overflow-x: hidden;
max-width: 100%;
@include mobile {
font-size: 14px;
}
@include small-mobile {
font-size: 13px;
}
}
*{
font-family: Lato, Merriweather, Open Sans, sans-serif;
box-sizing: border-box;
}
// Ensure all containers don't overflow
.container, .container-fluid {
max-width: 100%;
overflow-x: hidden;
}
// ================ NAV ================//
.pre-nav, .pre-footer {
height: $pre-nav-logo-height * 1.6;
border-bottom: 1px solid #f3f3f3;
@include mobile {
height: auto;
padding: 15px 0;
text-align: center;
}
.brand {
height: 100%;
padding: $pre-nav-logo-height * .3 0;
@include mobile {
float: none;
display: block;
padding: 10px 0;
}
}
.name-container {
@ -109,6 +158,11 @@ body {
position: relative;
margin-left: 2em;
line-height: 1;
@include mobile {
margin-left: 1em;
height: auto;
}
.name {
position: absolute;
@ -116,6 +170,15 @@ body {
width: 7em;
font-size: 18px;
color: $navbar-default-brand-color;
@include mobile {
position: static;
font-size: 16px;
}
@include small-mobile {
font-size: 14px;
}
}
.desc {
@ -124,12 +187,26 @@ body {
position: absolute;
bottom: 0;
color: #ababab;
@include mobile {
position: static;
font-size: 12px;
margin-top: 5px;
}
@include small-mobile {
font-size: 11px;
}
}
}
.logo {
height: $pre-nav-logo-height;
float: left;
@include mobile {
height: 50px;
}
}
.social {
@ -141,9 +218,19 @@ body {
> * {
margin-left: 1em;
@include mobile {
margin: 0 5px;
}
}
@include mobile {
float: none;
display: block;
padding: 10px 0;
margin-top: 10px;
}
}
}
nav {
@ -159,6 +246,10 @@ nav {
width: 100%;
position: relative;
left: -15px;
@include mobile {
left: 0;
}
}
&.affix {
@ -189,14 +280,28 @@ nav {
float: none;
margin-bottom: -100%; // Hack to fix the spacing between header and navbar
@include mobile {
display: block;
margin-bottom: 0;
}
&:first-of-type a {
padding-left: 0;
@include mobile {
padding-left: 15px;
}
}
&:last-of-type a {
padding-right: 0;
@include mobile {
padding-right: 15px;
}
}
}
.navbar-nav {
font-size: 16px;
text-align: justify;
@ -206,6 +311,23 @@ nav {
width: 100%; /* Ensures justification for single lines */
display: inline-block;
}
@include mobile {
font-size: 14px;
text-align: left;
> li > a {
padding: 10px 15px;
}
}
}
.navbar-collapse {
@include mobile {
border-top: 1px solid #e5e5e5;
margin-top: 10px;
padding-top: 10px;
}
}
// ================ /NAV ================//
@ -214,6 +336,10 @@ nav {
#header {
font-size: 12px;
@include mobile {
margin-bottom: 20px;
}
.header-row {
position: relative;
@ -223,7 +349,14 @@ nav {
overflow: hidden;
color: white;
box-shadow: $home-header-shadow;
@include mobile {
height: auto;
min-height: 250px;
border-radius: 0;
display: flex;
flex-direction: column;
}
}
.row {
@ -232,10 +365,20 @@ nav {
.cover-image {
height: $home-header-height;
@include mobile {
height: 200px;
order: 1;
}
}
.cover-details {
padding: 2em 1.5em;
@include mobile {
order: 2;
padding: 20px 15px;
}
}
.cover-link {
@ -250,6 +393,10 @@ nav {
.cover-title-label {
font-size: 14px;
font-weight: bold;
@include mobile {
font-size: 12px;
}
}
.title {
@ -257,6 +404,15 @@ nav {
font-weight: bold;
margin-top: 0;
margin-bottom: 20px;
@include mobile {
font-size: 20px;
margin-bottom: 15px;
}
@include small-mobile {
font-size: 18px;
}
}
}
@ -265,6 +421,12 @@ nav {
.cover-image {
border-radius: 10px;
@include mobile {
height: 150px;
margin-bottom: 15px;
border-radius: 0;
}
}
.title {
@ -287,6 +449,11 @@ nav {
.cover-excerpt {
margin-top: 12px;
@include mobile {
font-size: 13px;
line-height: 1.4;
}
}
// ============= /HOME-HEADER ============= //
@ -295,6 +462,10 @@ nav {
color: white;
margin-bottom: 60px;
position: relative;
@include mobile {
margin-bottom: 30px;
}
.container-title {
position: absolute;

View File

@ -1,30 +1,532 @@
.sidebar {
position: inherit;
width: inherit;
margin: 0;
padding: 25px; }
.sidebar img {
display: none; }
.sidebar .name {
display: inline; }
.sidebar .name #fname, .sidebar .name #lname {
font-size: 25px; }
.sidebar .meta {
display: none; }
.sidebar ul {
padding: 25px; }
.sidebar li {
display: inline; }
.sidebar .sections {
margin: 0; }
.sidebar .sections a {
font-size: 16px;
margin: 0 20px 0 0;
padding: 5px 10px; }
/* Mobile view - Apppplied at 768px and below */
@media (max-width: 768px) {
/* Base Mobile Settings */
body {
font-size: 14px;
overflow-x: hidden;
}
.container {
padding-left: 15px;
padding-right: 15px;
}
/* Pre-nav and Navigation */
.pre-nav, .pre-footer {
height: auto;
min-height: 80px;
padding: 15px 0;
position: relative;
}
.pre-nav .brand,
.pre-footer .brand {
display: block;
float: none;
text-align: center;
padding: 10px 0;
}
.pre-nav .social,
.pre-footer .social {
display: block;
float: none;
text-align: center;
padding: 10px 0;
margin-top: 10px;
}
.pre-nav .social > *,
.pre-footer .social > * {
margin: 0 5px;
}
.pre-nav .name-container .name {
font-size: 16px;
}
.pre-nav .name-container .desc {
font-size: 12px;
}
.pre-nav .logo {
height: 50px;
}
/* Mobile Toggle Button Styles */
.navbar-toggle {
position: absolute;
right: 15px;
top: 25px;
transform: translateY(-50%);
border: 1px solid #ddd;
background-color: transparent;
padding: 4px 6px;
border-radius: 4px;
cursor: pointer;
z-index: 1000;
}
.navbar-toggle:hover,
.navbar-toggle:focus {
background-color: #f5f5f5;
border-color: #bbb;
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
background-color: #888;
border-radius: 1px;
margin: 4px 0;
transition: all 0.3s ease;
}
/* Hide original navbar on mobile */
.navbar {
display: none;
}
/* Mobile Navigation Menu Styles */
.mobile-nav {
display: none;
margin-top: 10px;
border-top: 1px solid #e5e5e5;
padding-top: 15px;
clear: both;
width: 100%;
}
.mobile-nav.show {
display: block;
animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.mobile-nav ul {
list-style: none;
padding: 0;
margin: 0;
}
.mobile-nav li {
margin-bottom: 0;
}
.mobile-nav a {
display: block;
padding: 12px 15px;
text-decoration: none;
color: #333;
border-bottom: 1px solid #eee;
transition: background-color 0.2s ease;
}
.mobile-nav a:hover {
background-color: #f5f5f5;
text-decoration: none;
color: #333;
}
/* Mobile Dropdown Styles */
.mobile-nav .dropdown-menu {
position: static;
display: none;
float: none;
width: auto;
margin-top: 0;
background-color: #f9f9f9;
border: none;
border-radius: 0;
box-shadow: none;
padding-left: 0;
}
.mobile-nav .dropdown.open .dropdown-menu {
display: block;
}
.mobile-nav .dropdown-menu a {
padding-left: 30px;
padding-right: 30px;
background-color: #f9f9f9;
font-size: 13px;
text-align: center;
}
.mobile-nav .dropdown-menu a:hover {
background-color: #f0f0f0;
}
.mobile-nav .dropdown-toggle::after {
content: ' ▼';
font-size: 10px;
float: right;
margin-top: 2px;
transition: transform 0.2s ease;
}
.mobile-nav .dropdown.open .dropdown-toggle::after {
transform: rotate(180deg);
}
/* Navbar */
.navbar-nav {
margin: 0;
font-size: 14px;
}
.navbar-nav > li {
display: block;
float: none;
margin-bottom: 0;
}
.navbar-nav > li > a {
padding: 10px 15px;
text-align: left;
}
.navbar-collapse {
border-top: 1px solid #e5e5e5;
margin-top: 10px;
padding-top: 10px;
}
/* Header Styles */
#header {
margin-bottom: 20px;
}
#header .header-row {
height: auto;
min-height: 250px;
border-radius: 0;
}
#header .cover-image {
height: 200px;
order: 1;
}
#header .cover-details {
order: 2;
padding: 20px 15px;
}
#header .title {
font-size: 20px;
margin-bottom: 15px;
}
#header .cover-title-label {
font-size: 12px;
}
#header .cover-excerpt {
font-size: 13px;
line-height: 1.4;
}
/* Category Header */
#header.category-header .cover-image {
height: 150px;
margin-bottom: 15px;
}
/* New Articles Section */
#new-articles {
margin-bottom: 30px;
}
#new-articles .container-title {
position: static;
font-size: 18px;
margin-bottom: 15px;
padding: 10px 15px;
text-align: center;
}
#new-articles .article-col {
padding: 5px 0;
margin-bottom: 15px;
}
#new-articles .article {
height: 250px;
margin-top: 0;
}
#new-articles .details {
padding: 15px;
}
#new-articles .details .title {
font-size: 16px;
line-height: 1.3;
}
#new-articles .details .date {
position: static;
margin-top: 5px;
font-size: 11px;
}
/* Article Horizontal Layout */
.article-horiozntal {
height: auto;
margin-bottom: 25px;
}
.article-horiozntal .img-container {
height: 150px;
margin-bottom: 10px;
}
.article-horiozntal .details-container {
padding-left: 0;
}
.article-horiozntal .title {
font-size: 16px;
line-height: 1.4;
}
.article-horiozntal .excerpt {
font-size: 13px;
line-height: 1.4;
margin-top: 10px;
}
/* Post Styles */
.post {
font-size: 16px;
line-height: 1.6;
}
.post .header {
padding-bottom: 20px;
}
.post .body {
padding-top: 20px;
}
.post .cover-img {
height: 200px;
margin-bottom: 20px;
}
.post .header .title {
font-size: 20px;
line-height: 1.3;
}
.post .header .tag {
font-size: 14px;
}
.post .fb-content {
margin-top: 25px;
}
/* More Articles */
#more-articles-container {
margin-top: 25px;
margin-bottom: 30px;
}
#more-articles .article {
height: 120px;
margin-bottom: 15px;
}
#more-articles .details {
padding: 10px;
}
#more-articles .title {
font-size: 14px;
line-height: 1.3;
}
/* Category Posts */
.category-posts {
margin-top: 15px;
}
.category-posts .article-horiozntal {
margin-bottom: 20px;
}
/* Bootstrap Grid Fixes */
.col-md-4, .col-md-8, .col-sm-3, .col-sm-6 {
width: 100%;
padding-left: 0;
padding-right: 0;
}
/* Facebook Plugin Responsiveness */
.fb-page {
width: 100% !important;
margin-top: 20px;
}
.fb-comments {
width: 100% !important;
}
/* Hide Facebook sidebar on mobile */
.post .col-md-4 {
display: none;
}
.category-posts .col-md-4 {
display: none;
}
/* Make content full width on mobile */
.post .col-md-8,
.category-posts .col-md-8 {
width: 100%;
}
/* Images Responsiveness */
img {
max-width: 100%;
height: auto;
}
.img-center-fill {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Footer */
footer {
margin-top: 30px;
padding-top: 20px;
}
.copyright {
text-align: center;
font-size: 12px;
}
/* Utility Classes */
.hidden-mobile {
display: none !important;
}
.visible-mobile {
display: block !important;
}
/* Text adjustments */
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }
/* Remove margins and padding that cause horizontal scroll */
.row {
margin-left: 0;
margin-right: 0;
}
.outer-row {
margin-left: -5px;
margin-right: -5px;
}
/* Ensure no horizontal scroll */
html, body {
max-width: 100%;
overflow-x: hidden;
}
}
.content {
margin: 0;
padding: 5px 25px;
width: inherit; }
.content h1 {
margin: 0 0 5px 0; }
/* Extra Small Devices (phones, less than 480px) */
@media (max-width: 480px) {
body {
font-size: 13px;
}
.container {
padding-left: 10px;
padding-right: 10px;
}
#header .title {
font-size: 18px;
}
#new-articles .details .title {
font-size: 14px;
}
.post .header .title {
font-size: 18px;
}
.post {
font-size: 15px;
}
#new-articles .container-title {
font-size: 16px;
}
.container-title {
font-size: 20px;
}
.pre-nav .name-container .name {
font-size: 14px;
}
.pre-nav .name-container .desc {
font-size: 11px;
}
/* Adjust togge button for smaller screens */
.navbar-toggle {
right: 10px;
padding: 3px 5px;
}
.navbar-toggle .icon-bar {
width: 18px;
height: 2px;
margin: 3px 0;
}
/* Mobile nav adjustments for small screensss */
.mobile-nav a {
padding: 10px 12px;
font-size: 14px;
}
.mobile-nav .dropdown-menu a {
padding-left: 25px;
padding-right: 25px;
font-size: 12px;
text-align: center;
}
}

View File

@ -1,19 +1,105 @@
.mbtablestyle {
border-collapse: collapse;
margin-top: 5rem;
width: 100%;
max-width: 100%;
}
.mdtablestyle {
border-collapse: collapse;
margin: 2rem 0;
width: 100%;
max-width: 100%;
}
.mbtablestyle td,
.mbtablestyle th,
.mdtablestyle td,
.mdtablestyle th {
border: 1px solid black;
border: 1px solid black;
padding: 0.5rem 1.5rem;
padding-bottom: 2rem;
vertical-align: top;
word-wrap: break-word;
}
/* Mobile table styles for the articles and stuff */
@media (max-width: 768px) {
.mbtablestyle,
.mdtablestyle {
margin-top: 2rem;
margin-bottom: 2rem;
font-size: 12px;
display: block;
overflow-x: auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
.mbtablestyle td,
.mbtablestyle th,
.mdtablestyle td,
.mdtablestyle th {
padding: 0.25rem 0.75rem;
padding-bottom: 1rem;
min-width: 100px;
}
/* Alternative responsive table approach - stacked layout */
.responsive-table {
display: block;
width: 100%;
}
.responsive-table thead {
display: none;
}
.responsive-table tbody,
.responsive-table tr,
.responsive-table td {
display: block;
width: 100%;
}
.responsive-table tr {
border: 1px solid #ccc;
margin-bottom: 10px;
padding: 10px;
}
.responsive-table td {
border: none;
position: relative;
padding-left: 50% !important;
padding-top: 10px;
padding-bottom: 10px;
}
.responsive-table td:before {
content: attr(data-label) ": ";
position: absolute;
left: 6px;
width: 45%;
font-weight: bold;
white-space: nowrap;
}
}
@media (max-width: 480px) {
.mbtablestyle,
.mdtablestyle {
font-size: 11px;
margin-top: 1rem;
margin-bottom: 1rem;
}
.mbtablestyle td,
.mbtablestyle th,
.mdtablestyle td,
.mdtablestyle th {
padding: 0.2rem 0.5rem;
padding-bottom: 0.5rem;
min-width: 80px;
}
}

View File

@ -1,5 +1,5 @@
---
layout: nil
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">