Changeset 37587 for main


Ignore:
Timestamp:
2023-03-28T16:15:05+13:00 (13 months ago)
Author:
davidb
Message:

expansion and refinement of css around the audio diarization editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/style/core.css

    r37477 r37587  
    944944    float: right;
    945945    top: 28px;
    946     left: 128px;
     946    left: 140px;
    947947    padding: 5px;
    948948}
     
    14071407
    14081408#audioContainer {
     1409        position: relative;
    14091410    width: 100%;
    14101411        overflow: hidden;
     
    14251426    background-color: white;
    14261427        position: relative;
    1427 }
    1428 
    1429 #toolbar {
    1430     background-color: rgb(20, 30, 32);
     1428        overflow-y: hidden;
     1429}
     1430
     1431#audio-toolbar {
     1432    background-color: rgb(16, 24, 26);
    14311433    position: relative;
    14321434    display: flex;
     
    14401442}
    14411443
    1442 #toolbar button {
     1444#audio-toolbar button {
    14431445    cursor: pointer;
    14441446    height: 100%;
     
    14491451    filter: invert(1);
    14501452    cursor: pointer;
    1451     transition: 0.1s ease;
     1453    /* transition: 0.1s ease; */
    14521454}
    14531455
     
    14701472}
    14711473
    1472 .audio-scroll {
    1473     scroll-behavior: smooth;
     1474#chapters img {
     1475    height: 1rem !important;
     1476    width: 1rem !important;
     1477    padding: 0 !important;
     1478    pointer-events: all !important;
     1479}
     1480
     1481#chapters img.hide {
     1482    opacity: 0;
     1483    pointer-events: none !important;
     1484}
     1485
     1486@supports (-moz-appearance:none) { /* bad results in chrome, safari not tested */
     1487    .audio-scroll {
     1488        scroll-behavior: smooth;
     1489    }
     1490}
     1491
     1492.audio-scroll::-webkit-scrollbar {
     1493  height: 6px;
     1494}
     1495
     1496.audio-scroll::-webkit-scrollbar-track {
     1497  background: rgba(0,0,0,0.1);
     1498}
     1499
     1500.audio-scroll::-webkit-scrollbar-thumb {
     1501  background: #BDBDBD;
     1502}
     1503
     1504.audio-scroll::-webkit-scrollbar-thumb:hover {
     1505  background: #6E6E6E;
    14741506}
    14751507
     
    14781510    border-style: solid;
    14791511    border-width: 1px 0 0 0;
    1480     /* border-top-right-radius: 5px; */
    14811512    border-top-left-radius: 5px;
    14821513    padding: 0.5rem;
     
    14901521
    14911522.chapter:hover {
    1492     background-color: rgb(101, 116, 116);
     1523    background-color: rgb(81, 90, 90);
    14931524}
    14941525
     
    15061537}
    15071538
     1539.speakerName {
     1540    flex: 1;
     1541    pointer-events: none;
     1542}
     1543
     1544.speakerLocked {
     1545    /* flex: 1; */
     1546}
     1547
    15081548.speakerTime {
    1509     /* float: right; */
    1510     white-space: nowrap;
    1511 }
    1512 
    1513 .speakerName {
    1514     /* white-space: normal; */
     1549    flex: 1;
     1550    text-align: right;
     1551    pointer-events: none;
    15151552}
    15161553
     
    15391576    z-index: 10;
    15401577    height: 8rem;
     1578    width: 1.5rem;
    15411579    margin-top: -8rem;
    1542     padding-left: 1rem; 
     1580    padding-left: 1rem;
    15431581    padding-right: 1rem;
    15441582    margin-left: -1rem;
    1545     box-shadow: 0 0 15px;
     1583    /* border-radius: 50%; */
     1584    -webkit-appearance: slider-vertical; /* chrome */
     1585    writing-mode: bt-lr; /* IE */
     1586    box-shadow: 0 0 10px 2px #000; /* bad results on chrome (and probably safari) */
    15461587}
    15471588
     
    15561597}
    15571598
    1558 /* Limit scope of the following to only canvases within a audioContainer div */
    1559 #audioContainer canvas {
    1560     /* transition: width 0.5s ease; */
     1599#audioContainer canvas { /* Limit scope of the following to only canvases within a audioContainer div */
    15611600    /* z-index: 4 !important; */
    15621601    pointer-events: none;
     
    15761615
    15771616#wave-timeline {
    1578     background-color: rgb(40, 54, 58);
     1617    background-color: var(--audio-bg-colour);
    15791618    /* background-color: rgb(24, 36, 39); */
    15801619}
     
    15831622    color: white;
    15841623    padding: 0.2rem;
     1624    position: absolute;
    15851625}
    15861626
     
    16251665
    16261666.word:hover {
    1627     background-color: rgb(101, 116, 116);
     1667    background-color: rgb(81, 90, 90);
    16281668}
    16291669
     
    16441684
    16451685#tapeDetails tr:nth-of-type(odd) {
    1646     background-color: darkseagreen;
     1686    /* background-color: darkseagreen; */
     1687    background-color: #76bb58ab;
    16471688}
    16481689
     
    16711712    color: white;
    16721713    overflow-y: hidden;
    1673     transition: height 0.4s ease, padding 0.4s ease;
     1714    transition: height 0.2s ease, padding 0.2s ease;
    16741715    box-sizing: border-box; /* ensures padding doesn't modify width */
    16751716    font-family: 'Courier New', monospace;
     
    16931734    font-size: 15px;
    16941735    font-family: 'Courier New', monospace;
     1736    font-weight: normal;
    16951737}
    16961738
     
    17111753
    17121754#edit-panel input[type='text'] {
    1713     width: 50%;
     1755    /* width: 35%; */
    17141756  /* border: 1px solid white; */
    17151757  outline: none;
     
    17191761    transition: 0.25s ease-in;
    17201762    background-color: white;
     1763    flex-grow: 1; /* size increases when div is enlarged */
    17211764}
    17221765
     
    17701813#audio-dropdowns {
    17711814    width: 100%;
    1772     background-color: rgb(40, 54, 58);
     1815    background-color: var(--audio-bg-colour);
    17731816    display: flex;
    17741817    flex-direction: row;
     
    18041847    -webkit-appearance: textfield;
    18051848    appearance: textfield;
     1849}
     1850
     1851.no-arrows::-webkit-inner-spin-button {
     1852    display: none;
    18061853}
    18071854
     
    18291876    transition: background-color 0.1s ease;
    18301877        z-index: 1 !important;
    1831         height: 70% !important;
    1832         top: 15% !important;
     1878        height: 60% !important;
     1879        top: 20% !important;
     1880        /* border: 1px solid #000; */
    18331881        /* transition: width 2s ease; */
     1882}
     1883
     1884/* .wavesurfer-region:hover {
     1885    background-color: rgba(200, 200, 200, 0.4) !important;
     1886} */
     1887
     1888.region-padlock {
     1889    position: absolute;
     1890    right: 0;
     1891    width: 1rem !important;
     1892    height: 1rem;
     1893    padding-top: 0.2rem;
     1894    padding-right: 0.2rem;
     1895    /* pointer-events: none; */
     1896}
     1897
     1898.region-menu {
     1899    position: absolute;
     1900    left: 0;
     1901    width: 1rem !important;
     1902    height: 1rem;
     1903    padding: 0.2rem 0.1rem;
    18341904}
    18351905
     
    18501920}
    18511921
     1922.region-bottom img {
     1923    bottom: 0.2rem; /* padlock img shows bottom of region on secondary */
     1924}
     1925
    18521926#caret-container {
    18531927    position: absolute;
    18541928    /* background-color: #090; */
    1855     height: 128px; /* match waveform */
     1929    height: 140px; /* match waveform */
    18561930    width: 20px; /* match gs_content padding */
    18571931    flex-direction: column;
    1858     justify-content: space-around;
    1859     left: -4px; /* padding */
     1932    justify-content: space-evenly;
     1933    left: 0; /* padding */
     1934    padding-top: 2rem;
     1935    display: none;
     1936}
     1937
     1938#caret-container img {
    18601939    cursor: pointer;
    1861     display: none;
    1862 }
    1863 
    1864 #caret-container img {
    18651940    filter: none;
    18661941    opacity: 0.85;
     1942    width: 1.5rem;
    18671943}
    18681944
     
    18841960    background: rgb(20, 30, 32);
    18851961    box-shadow: 1px 1px 15px -5px black;
    1886     border-radius: 5px;
     1962    /* border-radius: 5px; */
    18871963    display: none;
    1888 }
    1889 
    1890 #context-menu.visible {
    1891     display: block;
    1892     transition: display 200ms ease-in-out;
     1964    border: 1px solid #eee;
    18931965}
    18941966
     
    19061978}
    19071979
    1908 .context-menu-item.faded {
     1980/* .context-menu-item.faded {
    19091981    color: rgb(94, 94, 94);
    19101982}
     
    19121984.context-menu-item.faded:hover {
    19131985    background-color: rgb(20, 30, 32);
    1914 }
    1915 
    1916 #dual-mode-menu-button {
     1986} */
     1987
     1988#timeline-menu-button {
    19171989    position: absolute;
    19181990    right: 0;
    19191991    padding: 0.2rem;
    1920     width: 0.8rem !important;
     1992    width: 1rem !important;
    19211993    z-index: 1;
    1922     display: none;
    1923 }
    1924 
    1925 #dual-mode-menu-button.visible {
    1926     display: block;
    1927 }
    1928 
    1929 #dual-mode-menu {
     1994    /* display: none; */
     1995    transition: transform 0.2s ease-in-out;
     1996}
     1997
     1998#timeline-menu {
    19301999    position: absolute;
    19312000    right: 1.5rem;
    1932     width: 150px;
     2001    width: 200px;
    19332002    background: rgb(20, 30, 32);
    19342003    box-shadow: 1px 1px 15px -5px black;
    1935     border-radius: 5px;
    1936     z-index: 10;
     2004    /* border-radius: 5px; */
     2005    z-index: 12;
    19372006    display: none;
    1938 }
    1939 
    1940 #dual-mode-menu.visible {
    1941     display: block;
    1942     transition: display 200ms ease-in-out;
    1943 }
    1944 
    1945 .dual-mode-menu-item {
    1946     padding: 8px 10px;
     2007    margin: 2.2rem 0;
     2008    border: 1px solid #eee;
     2009}
     2010
     2011#timeline-menu input {
     2012    pointer-events: none;
     2013}
     2014
     2015#timeline-menu hr {
     2016    height: 1px;
     2017    border: 0;
     2018    background: #333;
     2019    margin-top: 0;
     2020}
     2021
     2022.timeline-menu-item {
     2023    padding: 0.4rem 0.8rem;
    19472024    font-size: 14px;
    19482025    user-select: none;
     
    19502027    cursor: pointer;
    19512028    border-radius: inherit;
    1952 }
    1953 
    1954 .dual-mode-menu-item:hover {
     2029    display: flex;
     2030    flex-wrap: nowrap;
     2031    justify-content: space-between;
     2032}
     2033
     2034.timeline-menu-item:hover {
    19552035    background: #343434;
    19562036}
    19572037
    1958 #prim-set-label {
    1959     position: absolute;
    1960     top: 0px;
    1961     left: 0.2rem;
    1962     color: #eee;
    1963     font-size: 12px;
    1964 }
    1965 
    1966 #sec-set-label {
    1967     position: absolute;
    1968     bottom: 0px;
    1969     left: 0.2rem;
    1970     color: #eee;
    1971     font-size: 12px;
     2038.timeline-menu-subtext {
     2039    padding: 0.1rem 0.4rem;
     2040    font-size: 14px;
     2041    color: #999;
     2042    font-weight: bold;
     2043    pointer-events: none;
    19722044}
    19732045
     
    20092081    font-size: 14px;
    20102082    color: white;
    2011     transition: background-color 0.3s ease, height 0.3s ease;
     2083    transition: background-color 0.2s ease, height 0.2s ease;
    20122084    user-select: none;
    20132085    resize: horizontal;
    2014     overflow:auto;
     2086    overflow: auto;
    20152087}
    20162088
     
    20212093}
    20222094
     2095#new-canvas {
     2096    position: absolute;
     2097    background-color: var(--audio-bg-colour);
     2098    background-size: cover;
     2099    top: 0px;
     2100    left: 0px;
     2101    overflow-y: scroll;
     2102}
     2103
     2104#waveform-spinner {
     2105    position: absolute;
     2106    inset: 0; /* top, bottom, left, right shorthand */
     2107  margin: auto; /* center horizontally and vertically */
     2108  border: 5px solid white;
     2109  border-top: 5px solid var(--audio-accent-colour);
     2110  border-radius: 50%;
     2111    background-color: var(--audio-bg-colour);
     2112  width: 3rem;
     2113  height: 3rem;
     2114  animation: spin 1.3s ease-in-out infinite;
     2115    z-index: 10;
     2116    transition: 0.5s ease-in-out;
     2117}
     2118
     2119@keyframes spin {
     2120  0% { transform: rotate(0deg); }
     2121  100% { transform: rotate(720deg); }
     2122}
     2123
     2124#waveform-blocker {
     2125    position: absolute;
     2126    width: 100%;
     2127    height: 100%;
     2128    background-color: var(--audio-bg-colour);
     2129    z-index: 9;
     2130}
     2131
     2132.track-set-label {
     2133    position: absolute;
     2134    max-width: 150px;
     2135    left: 0.2rem;
     2136    color: #eee;
     2137    font-size: 14px;
     2138    user-select: none;
     2139}
     2140
     2141#track-set-label-bottom {
     2142    bottom: 0px;
     2143}
     2144
     2145.track-arrow {
     2146    position: relative;
     2147    width: 1.5em !important;
     2148    transform: rotate(90deg);
     2149    vertical-align: text-bottom;
     2150    z-index: 20;
     2151    /* transition: transform 0.2s ease-in-out; */
     2152}
     2153
     2154#version-select-menu {
     2155    position: absolute;
     2156    display: none;
     2157    z-index: 21;
     2158    background: rgb(20, 30, 32);
     2159    box-shadow: 1px 1px 15px -5px black;
     2160    /* border-radius: 5px; */
     2161    border: 1px solid #eee;
     2162    overflow-y: auto;
     2163    margin: 2px;
     2164}
     2165
     2166#version-select-menu.visible {
     2167    display: inline;
     2168}
     2169
     2170.version-select-menu-item {
     2171    padding: 8px 10px;
     2172    font-size: 14px;
     2173    user-select: none;
     2174    color: #eee;
     2175    cursor: pointer;
     2176    border-radius: inherit;
     2177}
     2178
     2179.version-select-menu-item:hover {
     2180    background: #343434;
     2181}
     2182
     2183#save-popup {
     2184    display: none;
     2185    position: absolute;
     2186    inset: 0;
     2187    margin: auto;
     2188    width: 25vw;
     2189    height: 9vh;
     2190    background: rgb(20, 30, 32);
     2191    border: 1px solid #ffffff70;
     2192    /* border-radius: 5px; */
     2193    box-shadow: 1px 1px 15px -5px black;
     2194    z-index: 1000;
     2195    padding: 0.5rem 0.5rem 2rem 0.5rem;
     2196    color: #eee;
     2197    font-weight: bold;
     2198}
     2199
     2200#commit-message {
     2201    width: 22vw;
     2202    resize: none;
     2203    display: block;
     2204    margin-left: auto;
     2205    margin-right: auto;
     2206    margin-top: 0.5rem;
     2207    margin-bottom: 0.1rem;
     2208}
     2209
     2210#save-popup button {
     2211    width: 11vw;
     2212    margin: 0.2rem;
     2213}
     2214
     2215#save-popup-bg {
     2216    display: none;
     2217    position: absolute;
     2218    width: 100%;
     2219    height: 100%;
     2220    top: 0;
     2221    left: 0;
     2222    backdrop-filter: blur(1px);
     2223    background-color: rgba(20, 34, 38, 0.1);
     2224    z-index: 999;
     2225    user-select: none;
     2226}
     2227
     2228.visible {
     2229    display: block !important;
     2230}
     2231
    20232232#favouritesFullViewLink {
    20242233    color: black;
    20252234}
    20262235
     2236:root { /* css vars */
     2237    --audio-accent-colour: #66d640;
     2238    /* --audio-bg-colour: rgb(40, 54, 58); */
     2239    --audio-bg-colour: rgb(29, 43, 47);
     2240}
Note: See TracChangeset for help on using the changeset viewer.