StephennFernandes commited on
Commit
fa7a0bc
·
verified ·
1 Parent(s): 0c381e3

Use full card width for panoramic CIIL banner

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. index.html +5 -4
README.md CHANGED
@@ -9,7 +9,7 @@ pinned: false
9
  ---
10
 
11
  <p align="center">
12
- <img src="https://huggingface.co/spaces/CIIL/README/resolve/main/assets/ciil-banner.png" alt="Central Institute of Indian Languages" width="100%" />
13
  </p>
14
 
15
  <h3 align="center">भारतीय भाषा संस्थान</h3>
 
9
  ---
10
 
11
  <p align="center">
12
+ <img src="https://huggingface.co/spaces/CIIL/README/resolve/main/assets/ciil-banner.png" alt="Central Institute of Indian Languages" width="100%" style="display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; object-position: center 46%; border-radius: 6px;" />
13
  </p>
14
 
15
  <h3 align="center">भारतीय भाषा संस्थान</h3>
index.html CHANGED
@@ -9,8 +9,9 @@
9
  :root { color-scheme: light dark; --bg: #fff; --text: #28303c; --heading: #18202c; --link: #805328; --rule: #e5e7eb; --quote: #b77a35; }
10
  * { box-sizing: border-box; }
11
  body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Devanagari", sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
12
- main { max-width: 936px; margin: 0 auto; padding: 40px 28px 48px; overflow-wrap: break-word; }
13
- main > p:first-child { margin: 0 0 28px; }
 
14
  img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 6px; }
15
  h2, h3 { color: var(--heading); font-weight: 650; line-height: 1.35; }
16
  h2 { margin: 2.25em 0 1em; font-size: 1.55rem; letter-spacing: -0.025em; }
@@ -28,13 +29,13 @@ ul { padding-left: 1.35em; }
28
  li { padding-left: 0.25em; margin: 1em 0; }
29
  li::marker { color: var(--quote); }
30
  hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0 24px; }
31
- @media (max-width: 600px) { main { padding: 16px 20px 32px; } h2 { font-size: 1.35rem; } h3[align="center"] { font-size: 1.4rem; } blockquote { padding-left: 14px; } }
32
  @media (prefers-color-scheme: dark) { :root { --bg: #0f172a; --text: #cbd5e1; --heading: #f1f5f9; --link: #dfb476; --rule: #334155; --quote: #c89653; } }
33
  </style>
34
  </head>
35
  <body>
36
  <main aria-label="Central Institute of Indian Languages organization card">
37
- <p align="center">
38
  <img src="https://huggingface.co/spaces/CIIL/README/resolve/main/assets/ciil-banner.png" alt="Central Institute of Indian Languages" width="100%" />
39
  </p>
40
  <h3 align="center">भारतीय भाषा संस्थान</h3>
 
9
  :root { color-scheme: light dark; --bg: #fff; --text: #28303c; --heading: #18202c; --link: #805328; --rule: #e5e7eb; --quote: #b77a35; }
10
  * { box-sizing: border-box; }
11
  body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Devanagari", sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
12
+ main { max-width: none; margin: 0 auto; padding: 40px 28px 48px; overflow-wrap: break-word; }
13
+ main > p.ciil-banner { margin: 0 -28px 28px; }
14
+ main > p.ciil-banner img { aspect-ratio: 4 / 1; object-fit: cover; object-position: center 46%; }
15
  img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 6px; }
16
  h2, h3 { color: var(--heading); font-weight: 650; line-height: 1.35; }
17
  h2 { margin: 2.25em 0 1em; font-size: 1.55rem; letter-spacing: -0.025em; }
 
29
  li { padding-left: 0.25em; margin: 1em 0; }
30
  li::marker { color: var(--quote); }
31
  hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0 24px; }
32
+ @media (max-width: 600px) { main { padding: 16px 20px 32px; } main > p.ciil-banner { margin-left: -20px; margin-right: -20px; } h2 { font-size: 1.35rem; } h3[align="center"] { font-size: 1.4rem; } blockquote { padding-left: 14px; } }
33
  @media (prefers-color-scheme: dark) { :root { --bg: #0f172a; --text: #cbd5e1; --heading: #f1f5f9; --link: #dfb476; --rule: #334155; --quote: #c89653; } }
34
  </style>
35
  </head>
36
  <body>
37
  <main aria-label="Central Institute of Indian Languages organization card">
38
+ <p class="ciil-banner" align="center">
39
  <img src="https://huggingface.co/spaces/CIIL/README/resolve/main/assets/ciil-banner.png" alt="Central Institute of Indian Languages" width="100%" />
40
  </p>
41
  <h3 align="center">भारतीय भाषा संस्थान</h3>