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.

549 lines
9.8KB

  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: normal;
  32. }
  33. @font-face {
  34. font-family: "Compagnon-B";
  35. src: url(fonts/Compagnon-Bold.otf) format('opentype');
  36. font-weight: bolder;
  37. }
  38. @font-face {
  39. font-family: "Compagnon-M";
  40. src: url(fonts/Compagnon-Medium.otf) format('opentype');
  41. font-weight: bold;
  42. }
  43. @font-face {
  44. font-family: "Compagnon-L";
  45. src: url(fonts/Compagnon-Light.otf) format('opentype');
  46. font-weight: lighter;
  47. }
  48. @font-face {
  49. font-family: "Compagnon-T";
  50. src: url(fonts/Compagnon-LightItalic.otf) format('opentype');
  51. font-weight: bold;
  52. }
  53. :root {
  54. --color-dark: #0c2039;
  55. --color-whitish: #fbf9ff;
  56. --color-lightyellow: #ffff99;
  57. --color-gray: #edecec;
  58. --color-blue: #4f1dff;
  59. --color-pink: #cc285f;
  60. --title-font: "Compagnon-T"; /* Cmunobi */
  61. --body-font: "Compagnon";
  62. /*@media screen and (min-width: 320px)*/
  63. --title-fontsize: calc(2rem + 1.5vw) !important;
  64. --body-fontsize: calc(14px + 6 * (100vw - 320px) / 1600) !important;
  65. --button-fontsize: calc(16px + 6 * (100vw - 320px) / 1600) !important;
  66. --body-fontsize-s: calc(11px + 6 * (100vw - 320px) / 1600) !important;
  67. }
  68. ::selection {
  69. background-color: var(--color-lightyellow);
  70. }
  71. body {
  72. color: var(--color-dark);
  73. font-family: var(--body-font) !important;
  74. font-size: var(--body-fontsize) !important;
  75. cursor: crosshair;
  76. background-color: var(--color-whitish) !important;
  77. }
  78. .background-random{
  79. background-position: center center;
  80. background-size: cover;
  81. background-repeat: no-repeat;
  82. }
  83. h1, .h1 {
  84. font-family: var(--title-font) !important;
  85. font-size: var(--title-fontsize) !important;
  86. -webkit-text-stroke-width: 0.08rem;
  87. -webkit-text-stroke-color: black;
  88. letter-spacing: -0.15rem;
  89. }
  90. a.h1 {
  91. text-decoration: none;
  92. }
  93. a, a:visited {
  94. cursor: cell;
  95. color: var(--color-dark) !important;
  96. }
  97. a:hover {
  98. text-shadow: 1px 1px 10px var(--color-lightyellow);
  99. }
  100. p {
  101. margin-top: 0;
  102. margin-bottom: 0rem !important;
  103. }
  104. .contrast {
  105. color: var(--color-lightyellow) !important;
  106. -webkit-text-stroke-width: 0.08rem;
  107. -webkit-text-stroke-color: var(--color-lightyellow) !important;
  108. }
  109. /* overwrite */
  110. .p-5 {
  111. padding: 3.5rem !important;
  112. }
  113. /* INDEX */
  114. .border, .border-dark {
  115. border-color: var(--color-dark) !important;
  116. border-radius: 0.25rem;
  117. }
  118. .border-glow, hr {
  119. box-shadow: 1px 1px 4px var(--color-lightyellow);
  120. }
  121. input#inputsearch, select#searchopt, select#sort, input#submit {
  122. background: var(--color-dark) !important;
  123. color: var(--color-lightyellow) !important;
  124. border: none !important;
  125. border-radius: 0.25rem !important;
  126. margin: 0.25rem;
  127. }
  128. select#searchopt{
  129. padding: 0.25rem 0.5rem;
  130. }
  131. input#inputsearch {
  132. width: 350px;
  133. }
  134. input#submit:hover {
  135. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-lightyellow) !important;
  136. }
  137. .button-search a, .button-search input, .button-search select {
  138. font-size: var(--button-fontsize) !important;
  139. text-decoration: none;
  140. border-radius: 0.25rem;
  141. padding: 0.25rem 0.5rem;
  142. }
  143. .random-interferences a {
  144. color: var(--color-dark) !important;
  145. background: var(--color-lightyellow);
  146. }
  147. .random-interferences a:hover {
  148. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-dark) !important;
  149. }
  150. .button-hidden-off a {
  151. color: var(--color-dark) !important;
  152. background: var(--color-gray);
  153. text-decoration: none;
  154. }
  155. .button-hidden-off a:hover {
  156. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-dark) !important;
  157. }
  158. .arrow-back {
  159. position: fixed;
  160. left: 0;
  161. margin: 0.5rem;
  162. }
  163. .action {
  164. margin: 1.5rem 3rem;
  165. z-index: 999;
  166. position: fixed;
  167. top: 0;
  168. right: 0;
  169. }
  170. .action button {
  171. color: var(--color-pink) !important;
  172. font-size: 2rem;
  173. background-color: transparent;
  174. border: none;
  175. }
  176. .action button:hover {
  177. color: var(--color-dark) !important;
  178. }
  179. #random-img-page .action button:hover {
  180. color: var(--color-whitish) !important;
  181. }
  182. button#notes, button#notes-operations{
  183. position: fixed;
  184. top: 0;
  185. right:0;
  186. margin: 0.25rem 0.75rem;
  187. color: var(--color-whitish) !important;
  188. background: var(--color-pink) !important;
  189. border: 0.1rem solid var(--color-pink) !important;
  190. border-radius: 5rem 3rem;
  191. height: 2rem;
  192. width: 2rem;
  193. line-height: 0.1rem;
  194. }
  195. button#notes:hover, button#notes-operations:hover {
  196. color: var(--color-dark) !important;
  197. }
  198. .info {
  199. font-family: var(--body-font) !important;
  200. color: var(--color-pink) !important;
  201. }
  202. .code {
  203. line-height: 1.2rem;
  204. font-size: var(--body-fontsize-s);
  205. margin: 0.5rem 1rem;
  206. }
  207. .operations {
  208. font-size: var(--body-fontsize-s);
  209. }
  210. .w-6 {
  211. max-width: 75%;
  212. }
  213. .mb-10{
  214. margin-bottom: 10rem;
  215. }
  216. .note-veritcal {
  217. font-size: var(--body-fontsize-s);
  218. position: absolute;
  219. right: 0;
  220. z-index: 200;
  221. margin: 0.5rem;
  222. border-radius: 0.25rem;
  223. padding: 0.15rem 0.25rem;
  224. writing-mode: vertical-rl;
  225. text-orientation: mixed;
  226. }
  227. .note-interference span {
  228. display: inline-flex;
  229. background-color: var(--color-lightyellow);
  230. width: 2rem;
  231. height: 1rem;
  232. }
  233. p.about-text {
  234. margin: 10% ;
  235. }
  236. .index-row {
  237. display: flex;
  238. width: 100%;
  239. flex-wrap: wrap;
  240. justify-content: space-evenly;
  241. flex-direction: row;
  242. }
  243. /* SEARCH */
  244. .search-links {
  245. font-size: var(--body-fontsize-s);
  246. }
  247. .emphasis {
  248. border-bottom: 0.10rem var(--color-lightyellow) solid;
  249. }
  250. .search_term {
  251. background: var(--color-lightyellow);
  252. }
  253. .ID-link-search {
  254. background: var(--color-lightyellow);
  255. }
  256. /* PAGE —> RANDOM IMAGES */
  257. body#random-img-page{
  258. background-color: var(--color-dark) !important;
  259. }
  260. #random-img-page .img-fluid {
  261. flex-shrink: 1;
  262. flex-basis: 10px;
  263. height: 50vh;
  264. box-shadow: 1px 1px 10px #fff6af;
  265. border-radius: 100%;
  266. transition: all 1s ease-in-out;
  267. }
  268. #random-img-page .img-fluid:hover {
  269. transform: scale(2.0);
  270. border-radius: 0.15rem;
  271. transform-origin: top left;
  272. opacity: 0.85;
  273. }
  274. /* PAGE —> RANDOM TITLES */
  275. #page-titles a, #page-titles span {
  276. font-size: 3.5vw; /* should be converted to calc */
  277. }
  278. .joint {
  279. padding:0rem 2.5rem ;
  280. }
  281. /* COMPARE —> 2 RANDOM PATENTS */
  282. .skewY {
  283. transform: skewY(-20deg);
  284. }
  285. .compare {
  286. display: flex;
  287. flex-wrap: wrap;
  288. flex-direction: row;
  289. justify-content: space-between;
  290. }
  291. .compare > div {
  292. width: 48%;
  293. }
  294. /* COMPARE —> 10 ABSTRACTS */
  295. #rdn-abstracts #alltext p::first-letter {
  296. font-size: 5rem;
  297. }
  298. #rdn-abstracts #alltext p {
  299. margin: 0% 20%;
  300. line-height: 1.8rem;
  301. font-size: var(--body-fontsize);
  302. }
  303. /* DATA */
  304. canvas > * {
  305. font-family: var(--body-font) !important;
  306. }
  307. .anchordata {
  308. margin: 1rem 2rem;
  309. z-index: 999;
  310. position: fixed;
  311. right: 0;
  312. transform: skewY(10deg);
  313. }
  314. .anchordata a {
  315. text-decoration: none;
  316. border-bottom: 0.20rem var(--color-lightyellow) solid;
  317. }
  318. /* THEMES */
  319. .themes {
  320. margin: 0% 20%;
  321. }
  322. .themes h1 {
  323. text-align: center;
  324. }
  325. .themes p {
  326. margin: 2rem 0rem;
  327. }
  328. .allThemes {
  329. display: flex;
  330. width: 100%;
  331. justify-content: space-around;
  332. flex-wrap: wrap;
  333. }
  334. .allThemes a {
  335. text-decoration: none;
  336. padding: 3rem 1rem;
  337. margin: 2rem 0rem;
  338. border-radius: 10rem;
  339. background-color: var(--color-lightyellow);
  340. }
  341. .allThemes a:hover {
  342. background-color: var(--color-light-gray);
  343. }
  344. .themeResults {
  345. margin: 2rem 0rem;
  346. width: 100%;
  347. display: grid;
  348. grid-column-gap: 0px;
  349. grid-template-columns: 33.3% 33.3% 33.3%;
  350. }
  351. .eachthemeResult {
  352. text-align: center;
  353. margin: 0.5rem 0rem;
  354. padding: 1rem;
  355. border-radius: 50rem;
  356. background-color: var(--color-lightyellow);
  357. }
  358. .eachthemeResult a {
  359. text-decoration: none;
  360. }
  361. .eachthemeResult p {
  362. margin: 0rem !important;
  363. }
  364. .eachthemeResult:nth-child(even) {
  365. margin: 0.5rem 0.5rem;
  366. }
  367. .eachthemeResult:hover {
  368. background-color: var(--color-light-gray);
  369. }
  370. /* TEXT PAGES LIKE ARCHIVAL CONVERSATIONS AND MAKING OF */
  371. .text {
  372. margin: 0% 20%;
  373. }
  374. .text h1 {
  375. text-align: center;
  376. }
  377. .text p {
  378. margin: 2rem 0rem;
  379. }
  380. .text img {
  381. width: 100%;
  382. }
  383. .text h2, .text h3 {
  384. margin: 2rem 0rem;
  385. padding: 0rem 1rem;
  386. }
  387. .text h2 {
  388. font-size: 2.25 rem;
  389. background-color: var(--color-lightyellow);
  390. border-radius: 0.5rem;
  391. }
  392. .text h3 {
  393. border-bottom: 0.25rem dashed var(--color-lightyellow);
  394. }
  395. .text li {
  396. }
  397. code {
  398. display: flex;
  399. flex-direction: column;
  400. flex-wrap: wrap;
  401. }
  402. p code {
  403. margin: 1rem 0rem !important;
  404. }
  405. img + em {
  406. text-align: center;
  407. font-size: .8rem;
  408. }
  409. /***************** MOBILE ****************/
  410. @media screen and (min-width:0px) and (max-width: 768px) {
  411. /* overwrite */
  412. .p-5 {
  413. padding: 0.5rem !important;
  414. }
  415. /* INDEX SEARCH */
  416. input#inputsearch {
  417. width: 250px;;
  418. }
  419. /* RANDOM TITLES */
  420. .action button {
  421. font-size: 1rem;
  422. }
  423. /* RANDOM IMAGES */
  424. #random-img-page .img-fluid:hover {
  425. transform: none;
  426. border-radius: 0.15rem;
  427. opacity: 1;
  428. }
  429. /* COMPARE —> 2 RANDOM PATENTS */
  430. .compare > div {
  431. width: 100%;
  432. }
  433. .col {
  434. flex: auto !important;
  435. }
  436. }