@govnepal/css 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/civic-calm.css +141 -1
  2. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Civic Calm — @govnepal/css
3
3
  * The framework-agnostic visual layer. Semantic HTML plus .gov-* classes; no JavaScript.
4
- * Built against design-guidelines 0.2.0-dev (43560eec).
4
+ * Built against design-guidelines 0.2.0-dev (8c2cd94f).
5
5
  *
6
6
  * This stylesheet holds ALL of Civic Calm's visual decisions. @govnepal/ui adds only behavior
7
7
  * (ARIA, keyboard, focus management) on top of these classes — so a plain-HTML site or a CMS
@@ -1830,6 +1830,146 @@ a:visited,
1830
1830
  color: var(--gov-color-text-secondary);
1831
1831
  }
1832
1832
 
1833
+ /* Officer + citizen navigation and government display components (batch C). */
1834
+
1835
+ /* Bottom navigation — mobile primary nav, fixed, labels always shown. */
1836
+ .gov-bottom-nav {
1837
+ display: flex;
1838
+ border-block-start: var(--gov-border-width-sm) solid var(--gov-color-border-default);
1839
+ background: var(--gov-color-background-surface);
1840
+ }
1841
+
1842
+ .gov-bottom-nav__item {
1843
+ flex: 1;
1844
+ display: flex;
1845
+ flex-direction: column;
1846
+ align-items: center;
1847
+ gap: var(--gov-space-1);
1848
+ min-block-size: var(--gov-target-recommended-size);
1849
+ padding: var(--gov-space-2);
1850
+ text-decoration: none;
1851
+ color: var(--gov-color-text-secondary);
1852
+ font-size: var(--gov-type-caption-font-size);
1853
+ }
1854
+
1855
+ .gov-bottom-nav__item[aria-current="page"] {
1856
+ color: var(--gov-color-interactive-selected-indicator);
1857
+ font-weight: var(--gov-font-weight-semibold);
1858
+ }
1859
+
1860
+ /* Sidebar — officer left rail. */
1861
+ .gov-sidebar {
1862
+ display: flex;
1863
+ flex-direction: column;
1864
+ gap: var(--gov-space-1);
1865
+ padding: var(--gov-space-3);
1866
+ background: var(--gov-color-background-secondary);
1867
+ border-inline-end: var(--gov-border-width-sm) solid var(--gov-color-border-default);
1868
+ }
1869
+
1870
+ .gov-sidebar__link {
1871
+ display: block;
1872
+ padding: var(--gov-space-2) var(--gov-space-3);
1873
+ border-radius: var(--gov-radius-sm);
1874
+ text-decoration: none;
1875
+ color: var(--gov-color-text-primary);
1876
+ min-block-size: var(--gov-target-min-size);
1877
+ }
1878
+
1879
+ .gov-sidebar__link[aria-current="page"] {
1880
+ background: var(--gov-color-interactive-selected-background);
1881
+ font-weight: var(--gov-font-weight-semibold);
1882
+ }
1883
+
1884
+ /* Status tracker — vertical list of taxonomy statuses. */
1885
+ .gov-status-tracker {
1886
+ list-style: none;
1887
+ padding: 0;
1888
+ display: flex;
1889
+ flex-direction: column;
1890
+ gap: var(--gov-space-4);
1891
+ }
1892
+
1893
+ .gov-status-tracker__step {
1894
+ display: flex;
1895
+ align-items: flex-start;
1896
+ gap: var(--gov-space-3);
1897
+ color: var(--gov-color-text-secondary);
1898
+ }
1899
+
1900
+ .gov-status-tracker__step--complete { color: var(--gov-color-status-success-text); }
1901
+ .gov-status-tracker__step--current {
1902
+ color: var(--gov-color-text-primary);
1903
+ font-weight: var(--gov-font-weight-semibold);
1904
+ }
1905
+
1906
+ .gov-status-tracker__marker {
1907
+ inline-size: 24px;
1908
+ block-size: 24px;
1909
+ flex-shrink: 0;
1910
+ border-radius: var(--gov-radius-full);
1911
+ border: var(--gov-border-width-md) solid currentColor;
1912
+ display: inline-flex;
1913
+ align-items: center;
1914
+ justify-content: center;
1915
+ font-size: var(--gov-type-small-font-size);
1916
+ }
1917
+
1918
+ /* Audit log item — an immutable record row. */
1919
+ .gov-audit-item {
1920
+ padding-block: var(--gov-space-3);
1921
+ border-block-end: var(--gov-border-width-sm) solid var(--gov-color-border-default);
1922
+ }
1923
+
1924
+ .gov-audit-item__meta {
1925
+ color: var(--gov-color-text-secondary);
1926
+ font-size: var(--gov-type-small-font-size);
1927
+ }
1928
+
1929
+ .gov-audit-item__ref { font-family: var(--gov-font-family-mono); }
1930
+
1931
+ /* Feedback widget — "was this page useful?" plus a report link. */
1932
+ .gov-feedback {
1933
+ border-block-start: var(--gov-border-width-sm) solid var(--gov-color-border-default);
1934
+ padding-block: var(--gov-space-4);
1935
+ display: flex;
1936
+ flex-wrap: wrap;
1937
+ align-items: center;
1938
+ gap: var(--gov-space-3);
1939
+ }
1940
+
1941
+ /* Biometric capture status indicators (batch C, NID). Status by icon + text + colour, never
1942
+ * colour alone (§4.1); the raw biometric sample is NEVER rendered (§9.1). */
1943
+ .gov-capture-status {
1944
+ display: flex;
1945
+ align-items: flex-start;
1946
+ gap: var(--gov-space-2);
1947
+ padding: var(--gov-space-3);
1948
+ border: var(--gov-border-width-md) solid var(--gov-color-border-default);
1949
+ border-radius: var(--gov-radius-md);
1950
+ }
1951
+
1952
+ .gov-capture-status__icon {
1953
+ inline-size: var(--gov-icon-size-lg, 24px);
1954
+ block-size: var(--gov-icon-size-lg, 24px);
1955
+ flex-shrink: 0;
1956
+ }
1957
+
1958
+ .gov-capture-status--pass { border-color: var(--gov-color-status-success-border); color: var(--gov-color-status-success-text); }
1959
+ .gov-capture-status--retry { border-color: var(--gov-color-status-warning-border); color: var(--gov-color-status-warning-text); }
1960
+ .gov-capture-status--error { border-color: var(--gov-color-status-error-border); color: var(--gov-color-status-error-text); }
1961
+
1962
+ .gov-capture-frame {
1963
+ aspect-ratio: 4 / 3;
1964
+ display: flex;
1965
+ align-items: center;
1966
+ justify-content: center;
1967
+ background: var(--gov-color-background-inverse);
1968
+ color: var(--gov-color-text-inverse);
1969
+ border-radius: var(--gov-radius-md);
1970
+ border: var(--gov-border-width-lg) dashed var(--gov-color-border-strong);
1971
+ }
1972
+
1833
1973
  /* National identity marks — the emblem and flag (identity/emblem, identity/flag).
1834
1974
  *
1835
1975
  * Base sizing only. Both are <img> of verified masters; neither is boxed, recoloured, or given a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govnepal/css",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Civic Calm — the framework-agnostic stylesheet. Semantic HTML plus .gov-* classes, no JavaScript.",
5
5
  "license": "MIT",
6
6
  "type": "module",