A search interface for the Performing Patents Otherwise publication as part of the Politics of Patents case study (part of Copim WP6): this parses data from the archive of RTF files and provides additional data from the European Patent Office OPS API. https://patents.copim.ac.uk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

425 lines
7.9KB

  1. /*
  2. # @name: custom.css
  3. # @creation_date: 2022-09-07
  4. # @license: The MIT License <https://opensource.org/licenses/MIT>
  5. # @author: Simon Bowie <ad7588@coventry.ac.uk>
  6. # @author: Joana Chicau <web@joanachicau.com>
  7. # @purpose: Custom CSS to override Bootstrap 5 defaults
  8. # @acknowledgements:
  9. # Bootstrap 5.1.3: https://getbootstrap.com/
  10. */
  11. /* NEW STYLE by Joana Chicau */
  12. /* FONTS*/
  13. @font-face {
  14. font-family: "MetaAccanthis";
  15. src: url(fonts/MetaAccanthis_regular.ttf) format('truetype');
  16. font-weight: bold;
  17. }
  18. @font-face {
  19. font-family: "MetaAccanthisAlternate";
  20. src: url(fonts/MetaAccanthisAlternate.ttf) format('truetype');
  21. font-weight: normal;
  22. }
  23. @font-face {
  24. font-family: "Cmunobi";
  25. src: url(fonts/cmunobi.ttf) format('opentype');
  26. font-weight: normal;
  27. }
  28. @font-face {
  29. font-family: "Compagnon";
  30. src: url(fonts/Compagnon-Roman.otf) format('opentype');
  31. font-weight: bold;
  32. }
  33. @font-face {
  34. font-family: "Compagnon-M";
  35. src: url(fonts/Compagnon-Medium.otf) format('opentype');
  36. font-weight: bold;
  37. }
  38. @font-face {
  39. font-family: "Compagnon-L";
  40. src: url(fonts/Compagnon-Light.otf) format('opentype');
  41. font-weight: lighter;
  42. }
  43. @font-face {
  44. font-family: "Compagnon-T";
  45. src: url(fonts/Compagnon-LightItalic.otf) format('opentype');
  46. font-weight: bold;
  47. }
  48. :root {
  49. --color-dark: #0c2039;
  50. --color-whitish: #fbf9ff;
  51. --color-lightyellow: #ffff99;
  52. --color-gray: #edecec;
  53. --color-blue: #4f1dff;
  54. --color-pink: #cc285f;
  55. --title-font: "Compagnon-T"; /* Cmunobi */
  56. --body-font: "Compagnon";
  57. /*@media screen and (min-width: 320px)*/
  58. --title-fontsize: calc(2rem + 1.5vw) !important;
  59. --body-fontsize: calc(14px + 6 * (100vw - 320px) / 1600) !important;
  60. --button-fontsize: calc(16px + 6 * (100vw - 320px) / 1600) !important;
  61. --body-fontsize-s: calc(11px + 6 * (100vw - 320px) / 1600) !important;
  62. }
  63. ::selection {
  64. background-color: var(--color-lightyellow);
  65. }
  66. body {
  67. color: var(--color-dark);
  68. font-family: var(--body-font) !important;
  69. font-size: var(--body-fontsize) !important;
  70. cursor: crosshair;
  71. background-color: var(--color-whitish) !important;
  72. }
  73. .background-random{
  74. background-position: center center;
  75. background-size: cover;
  76. background-repeat: no-repeat;
  77. }
  78. h1, .h1 {
  79. font-family: var(--title-font) !important;
  80. font-size: var(--title-fontsize) !important;
  81. -webkit-text-stroke-width: 0.09rem;
  82. -webkit-text-stroke-color: black;
  83. letter-spacing: -0.15rem;
  84. }
  85. a.h1 {
  86. text-decoration: none;
  87. }
  88. a, a:visited {
  89. cursor: cell;
  90. color: var(--color-dark) !important;
  91. }
  92. a:hover {
  93. text-shadow: 1px 1px 10px var(--color-lightyellow);
  94. }
  95. p {
  96. margin-top: 0;
  97. margin-bottom: 0rem !important;
  98. }
  99. .contrast {
  100. color: var(--color-lightyellow) !important;
  101. }
  102. /* overwrite */
  103. .p-5 {
  104. padding: 3.5rem !important;
  105. }
  106. /* INDEX */
  107. .border, .border-dark {
  108. border-color: var(--color-dark) !important;
  109. border-radius: 0.25rem;
  110. }
  111. .border-glow, hr {
  112. box-shadow: 1px 1px 4px var(--color-lightyellow);
  113. }
  114. input#inputsearch, select#searchopt, select#sort, input#submit {
  115. background: var(--color-dark) !important;
  116. color: var(--color-lightyellow) !important;
  117. border: none !important;
  118. border-radius: 0.25rem !important;
  119. margin: 0.25rem;
  120. }
  121. select#searchopt{
  122. padding: 0.25rem 0.5rem;
  123. }
  124. input#inputsearch {
  125. width: 350px;
  126. }
  127. input#submit:hover {
  128. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-lightyellow) !important;
  129. }
  130. .button-search a, .button-search input, .button-search select {
  131. font-size: var(--button-fontsize) !important;
  132. text-decoration: none;
  133. border-radius: 0.25rem;
  134. padding: 0.25rem 0.5rem;
  135. }
  136. .random-interferences a {
  137. color: var(--color-dark) !important;
  138. background: var(--color-lightyellow);
  139. }
  140. .random-interferences a:hover {
  141. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-dark) !important;
  142. }
  143. .button-hidden-off a {
  144. color: var(--color-dark) !important;
  145. background: var(--color-gray);
  146. text-decoration: none;
  147. }
  148. .button-hidden-off a:hover {
  149. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-dark) !important;
  150. }
  151. .arrow-back {
  152. position: fixed;
  153. left: 0;
  154. margin: 0.5rem;
  155. }
  156. .action {
  157. margin: 1.5rem 3rem;
  158. z-index: 999;
  159. position: fixed;
  160. top: 0;
  161. right: 0;
  162. }
  163. .action button {
  164. color: var(--color-pink) !important;
  165. font-size: 2rem;
  166. background-color: transparent;
  167. border: none;
  168. }
  169. .action button:hover {
  170. color: var(--color-dark) !important;
  171. }
  172. #random-img-page .action button:hover {
  173. color: var(--color-whitish) !important;
  174. }
  175. button#notes, button#notes-operations{
  176. position: fixed;
  177. top: 0;
  178. right:0;
  179. margin: 0.25rem 0.75rem;
  180. color: var(--color-whitish) !important;
  181. background: var(--color-pink) !important;
  182. border: 0.1rem solid var(--color-pink) !important;
  183. border-radius: 5rem 3rem;
  184. height: 2rem;
  185. width: 2rem;
  186. line-height: 0.1rem;
  187. }
  188. button#notes:hover, button#notes-operations:hover {
  189. color: var(--color-dark) !important;
  190. }
  191. .info {
  192. font-family: var(--body-font) !important;
  193. color: var(--color-pink) !important;
  194. }
  195. .code {
  196. line-height: 1.2rem;
  197. font-size: var(--body-fontsize-s);
  198. margin: 0.5rem 1rem;
  199. }
  200. .operations {
  201. font-size: var(--body-fontsize-s);
  202. }
  203. .w-6 {
  204. max-width: 75%;
  205. }
  206. .mb-10{
  207. margin-bottom: 10rem;
  208. }
  209. .note-veritcal {
  210. font-size: var(--body-fontsize-s);
  211. position: absolute;
  212. right: 0;
  213. z-index: 200;
  214. margin: 0.5rem;
  215. border-radius: 0.25rem;
  216. padding: 0.15rem 0.25rem;
  217. writing-mode: vertical-rl;
  218. text-orientation: mixed;
  219. }
  220. .note-interference span {
  221. display: inline-flex;
  222. background-color: var(--color-lightyellow);
  223. width: 2rem;
  224. height: 1rem;
  225. }
  226. p.about-text {
  227. margin: 10% ;
  228. }
  229. .index-row {
  230. display: flex;
  231. width: 100%;
  232. flex-wrap: wrap;
  233. justify-content: space-evenly;
  234. flex-direction: row;
  235. }
  236. /* SEARCH */
  237. .search-links {
  238. font-size: var(--body-fontsize-s);
  239. }
  240. .emphasis {
  241. border-bottom: 0.10rem var(--color-lightyellow) solid;
  242. }
  243. .search_term {
  244. background: var(--color-lightyellow);
  245. }
  246. .ID-link-search {
  247. background: var(--color-lightyellow);
  248. }
  249. /* PAGE —> RANDOM IMAGES */
  250. body#random-img-page{
  251. background-color: var(--color-dark) !important;
  252. }
  253. #random-img-page .img-fluid {
  254. flex-shrink: 1;
  255. flex-basis: 10px;
  256. height: 50vh;
  257. box-shadow: 1px 1px 10px #fff6af;
  258. border-radius: 100%;
  259. transition: all 1s ease-in-out;
  260. }
  261. #random-img-page .img-fluid:hover {
  262. transform: scale(2.0);
  263. border-radius: 0.15rem;
  264. transform-origin: top left;
  265. opacity: 0.85;
  266. }
  267. /* PAGE —> RANDOM TITLES */
  268. #page-titles a, #page-titles span {
  269. font-size: 3.5vw; /* should be converted to calc */
  270. }
  271. .joint {
  272. padding:0rem 2.5rem ;
  273. }
  274. /* COMPARE —> 2 RANDOM PATENTS */
  275. .skewY {
  276. transform: skewY(-20deg);
  277. }
  278. .compare {
  279. display: flex;
  280. flex-wrap: wrap;
  281. flex-direction: row;
  282. justify-content: space-between;
  283. }
  284. .compare > div {
  285. width: 48%;
  286. }
  287. /* COMPARE —> 10 ABSTRACTS */
  288. #rdn-abstracts #alltext p::first-letter {
  289. font-size: 5rem;
  290. }
  291. #rdn-abstracts #alltext p {
  292. margin: 0% 20%;
  293. line-height: 1.8rem;
  294. font-size: var(--body-fontsize);
  295. }
  296. /* DATA */
  297. canvas > * {
  298. font-family: var(--body-font) !important;
  299. }
  300. .anchordata {
  301. margin: 1rem 2rem;
  302. z-index: 999;
  303. position: fixed;
  304. right: 0;
  305. transform: skewY(10deg);
  306. }
  307. .anchordata a {
  308. text-decoration: none;
  309. border-bottom: 0.20rem var(--color-lightyellow) solid;
  310. }
  311. /***************** MOBILE ****************/
  312. @media screen and (min-width:0px) and (max-width: 768px) {
  313. /* overwrite */
  314. .p-5 {
  315. padding: 0.5rem !important;
  316. }
  317. /* INDEX SEARCH */
  318. input#inputsearch {
  319. width: 250px;;
  320. }
  321. /* RANDOM TITLES */
  322. .action button {
  323. font-size: 1rem;
  324. }
  325. /* RANDOM IMAGES */
  326. #random-img-page .img-fluid:hover {
  327. transform: none;
  328. border-radius: 0.15rem;
  329. opacity: 1;
  330. }
  331. /* COMPARE —> 2 RANDOM PATENTS */
  332. .compare > div {
  333. width: 100%;
  334. }
  335. .col {
  336. flex: auto !important;
  337. }
  338. }