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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2002 |
'''
|
| 2003 |
|
| 2004 |
|
|
|
|
| 1999 |
}
|
| 2000 |
}
|
| 2001 |
|
| 2002 |
+
|
| 2003 |
+
/* =========================================================
|
| 2004 |
+
LAPTOP RESPONSIVE LAYOUT FIX
|
| 2005 |
+
Keeps long labels inside their controls and keeps the three
|
| 2006 |
+
ML Modeling action buttons aligned on one row on laptops.
|
| 2007 |
+
========================================================= */
|
| 2008 |
+
|
| 2009 |
+
/* Dataset action row: equal controls, but allow long button text to wrap cleanly. */
|
| 2010 |
+
#dataset-actions-row {
|
| 2011 |
+
display: flex !important;
|
| 2012 |
+
flex-wrap: nowrap !important;
|
| 2013 |
+
align-items: stretch !important;
|
| 2014 |
+
gap: 14px !important;
|
| 2015 |
+
}
|
| 2016 |
+
|
| 2017 |
+
#dataset-actions-row > * {
|
| 2018 |
+
flex: 1 1 0 !important;
|
| 2019 |
+
min-width: 0 !important;
|
| 2020 |
+
}
|
| 2021 |
+
|
| 2022 |
+
#dataset-actions-row #load-button,
|
| 2023 |
+
#dataset-actions-row #example-button,
|
| 2024 |
+
#dataset-actions-row #clear-button,
|
| 2025 |
+
#dataset-actions-row #load-button button,
|
| 2026 |
+
#dataset-actions-row #example-button button,
|
| 2027 |
+
#dataset-actions-row #clear-button button {
|
| 2028 |
+
width: 100% !important;
|
| 2029 |
+
min-width: 0 !important;
|
| 2030 |
+
height: auto !important;
|
| 2031 |
+
max-height: none !important;
|
| 2032 |
+
min-height: 56px !important;
|
| 2033 |
+
}
|
| 2034 |
+
|
| 2035 |
+
#dataset-actions-row #load-button button,
|
| 2036 |
+
#dataset-actions-row #example-button button,
|
| 2037 |
+
#dataset-actions-row #clear-button button {
|
| 2038 |
+
white-space: normal !important;
|
| 2039 |
+
overflow-wrap: anywhere !important;
|
| 2040 |
+
word-break: normal !important;
|
| 2041 |
+
line-height: 1.18 !important;
|
| 2042 |
+
padding: 10px 14px !important;
|
| 2043 |
+
text-align: center !important;
|
| 2044 |
+
}
|
| 2045 |
+
|
| 2046 |
+
/* Primary tabs: give the long ML Modeling label more room and allow wrapping. */
|
| 2047 |
+
@media (min-width: 801px) {
|
| 2048 |
+
#main-tabs [role="tablist"] {
|
| 2049 |
+
grid-template-columns:
|
| 2050 |
+
minmax(0, 0.88fr)
|
| 2051 |
+
minmax(0, 1.24fr)
|
| 2052 |
+
minmax(0, 0.88fr) !important;
|
| 2053 |
+
gap: 14px !important;
|
| 2054 |
+
}
|
| 2055 |
+
|
| 2056 |
+
#main-tabs button[role="tab"] {
|
| 2057 |
+
min-width: 0 !important;
|
| 2058 |
+
min-height: 64px !important;
|
| 2059 |
+
padding: 11px 14px !important;
|
| 2060 |
+
white-space: normal !important;
|
| 2061 |
+
overflow-wrap: anywhere !important;
|
| 2062 |
+
word-break: normal !important;
|
| 2063 |
+
line-height: 1.16 !important;
|
| 2064 |
+
text-align: center !important;
|
| 2065 |
+
}
|
| 2066 |
+
}
|
| 2067 |
+
|
| 2068 |
+
/* ML Modeling actions: always one aligned row on laptop/desktop. */
|
| 2069 |
+
.model-action-row {
|
| 2070 |
+
width: 100% !important;
|
| 2071 |
+
max-width: none !important;
|
| 2072 |
+
margin: 24px 0 0 !important;
|
| 2073 |
+
display: flex !important;
|
| 2074 |
+
flex-wrap: nowrap !important;
|
| 2075 |
+
align-items: stretch !important;
|
| 2076 |
+
justify-content: stretch !important;
|
| 2077 |
+
gap: 16px !important;
|
| 2078 |
+
}
|
| 2079 |
+
|
| 2080 |
+
.model-action-row > * {
|
| 2081 |
+
flex: 1 1 0 !important;
|
| 2082 |
+
width: auto !important;
|
| 2083 |
+
max-width: none !important;
|
| 2084 |
+
min-width: 0 !important;
|
| 2085 |
+
margin: 0 !important;
|
| 2086 |
+
}
|
| 2087 |
+
|
| 2088 |
+
.model-action-row #train-button,
|
| 2089 |
+
.model-action-row #compare-button,
|
| 2090 |
+
.model-action-row #code-button,
|
| 2091 |
+
.model-action-row #train-button button,
|
| 2092 |
+
.model-action-row #compare-button button,
|
| 2093 |
+
.model-action-row #code-button button {
|
| 2094 |
+
width: 100% !important;
|
| 2095 |
+
min-width: 0 !important;
|
| 2096 |
+
max-width: none !important;
|
| 2097 |
+
height: auto !important;
|
| 2098 |
+
min-height: 58px !important;
|
| 2099 |
+
margin: 0 !important;
|
| 2100 |
+
}
|
| 2101 |
+
|
| 2102 |
+
.model-action-row #train-button button,
|
| 2103 |
+
.model-action-row #compare-button button,
|
| 2104 |
+
.model-action-row #code-button button {
|
| 2105 |
+
white-space: normal !important;
|
| 2106 |
+
overflow-wrap: anywhere !important;
|
| 2107 |
+
word-break: normal !important;
|
| 2108 |
+
line-height: 1.16 !important;
|
| 2109 |
+
padding: 11px 12px !important;
|
| 2110 |
+
text-align: center !important;
|
| 2111 |
+
}
|
| 2112 |
+
|
| 2113 |
+
/* Laptop widths: slightly tighten text and spacing without wrapping rows. */
|
| 2114 |
+
@media (min-width: 801px) and (max-width: 1450px) {
|
| 2115 |
+
#dataset-actions-row {
|
| 2116 |
+
gap: 10px !important;
|
| 2117 |
+
}
|
| 2118 |
+
|
| 2119 |
+
#dataset-actions-row button {
|
| 2120 |
+
font-size: 12.5px !important;
|
| 2121 |
+
padding-left: 10px !important;
|
| 2122 |
+
padding-right: 10px !important;
|
| 2123 |
+
}
|
| 2124 |
+
|
| 2125 |
+
#main-tabs [role="tablist"] {
|
| 2126 |
+
gap: 10px !important;
|
| 2127 |
+
padding-left: 12px !important;
|
| 2128 |
+
padding-right: 12px !important;
|
| 2129 |
+
}
|
| 2130 |
+
|
| 2131 |
+
#main-tabs button[role="tab"] {
|
| 2132 |
+
font-size: 12.5px !important;
|
| 2133 |
+
padding-left: 9px !important;
|
| 2134 |
+
padding-right: 9px !important;
|
| 2135 |
+
}
|
| 2136 |
+
|
| 2137 |
+
.model-action-row {
|
| 2138 |
+
gap: 12px !important;
|
| 2139 |
+
}
|
| 2140 |
+
|
| 2141 |
+
.model-action-row #train-button button,
|
| 2142 |
+
.model-action-row #compare-button button,
|
| 2143 |
+
.model-action-row #code-button button {
|
| 2144 |
+
font-size: 13.5px !important;
|
| 2145 |
+
padding-left: 9px !important;
|
| 2146 |
+
padding-right: 9px !important;
|
| 2147 |
+
}
|
| 2148 |
+
}
|
| 2149 |
+
|
| 2150 |
+
/* Tablet/mobile: stack action controls so they remain readable. */
|
| 2151 |
+
@media (max-width: 800px) {
|
| 2152 |
+
#dataset-actions-row,
|
| 2153 |
+
.model-action-row {
|
| 2154 |
+
flex-direction: column !important;
|
| 2155 |
+
flex-wrap: nowrap !important;
|
| 2156 |
+
gap: 12px !important;
|
| 2157 |
+
}
|
| 2158 |
+
|
| 2159 |
+
#dataset-actions-row > *,
|
| 2160 |
+
.model-action-row > * {
|
| 2161 |
+
width: 100% !important;
|
| 2162 |
+
max-width: none !important;
|
| 2163 |
+
flex: 0 0 auto !important;
|
| 2164 |
+
}
|
| 2165 |
+
|
| 2166 |
+
#main-tabs button[role="tab"] {
|
| 2167 |
+
white-space: normal !important;
|
| 2168 |
+
line-height: 1.15 !important;
|
| 2169 |
+
}
|
| 2170 |
+
}
|
| 2171 |
+
|
| 2172 |
'''
|
| 2173 |
|
| 2174 |
|