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.

376 lines
7.1KB

  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: "MetaAccanthis"; /* 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.01rem;
  82. -webkit-text-stroke-color: black;
  83. font-style: italic;
  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. /* INDEX */
  103. .border, .border-dark {
  104. border-color: var(--color-dark) !important;
  105. border-radius: 0.25rem;
  106. }
  107. .border-glow, hr {
  108. box-shadow: 1px 1px 4px var(--color-lightyellow);
  109. }
  110. input#inputsearch, select#searchopt, select#sort, input#submit {
  111. background: var(--color-dark) !important;
  112. color: var(--color-lightyellow) !important;
  113. border: none !important;
  114. border-radius: 0.25rem !important;
  115. margin: 0.25rem;
  116. }
  117. select#searchopt{
  118. padding: 0.25rem 0.5rem;
  119. }
  120. input#inputsearch {
  121. width: 350px;
  122. }
  123. input#submit:hover {
  124. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-lightyellow) !important;
  125. }
  126. .button-search a, .button-search input, .button-search select {
  127. font-size: var(--button-fontsize) !important;
  128. text-decoration: none;
  129. border-radius: 0.25rem;
  130. padding: 0.25rem 0.5rem;
  131. }
  132. .random-interferences a {
  133. color: var(--color-dark) !important;
  134. background: var(--color-lightyellow);
  135. }
  136. .random-interferences a:hover {
  137. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-dark) !important;
  138. }
  139. .button-hidden-off a {
  140. color: var(--color-dark) !important;
  141. background: var(--color-gray);
  142. text-decoration: none;
  143. }
  144. .button-hidden-off a:hover {
  145. box-shadow: 0.25rem 0.25rem 0.5rem var(--color-dark) !important;
  146. }
  147. button#notes, .action {
  148. margin: 1rem 2rem;
  149. z-index: 999;
  150. position: fixed;
  151. top: 0;
  152. right: 0;
  153. }
  154. .action button {
  155. color: var(--color-pink) !important;
  156. font-size: 2rem;
  157. background-color: transparent;
  158. border: none;
  159. }
  160. button#notes:hover {
  161. color: var(--color-dark) !important;
  162. }
  163. .info {
  164. font-family: var(--body-font) !important;
  165. color: var(--color-pink) !important;
  166. }
  167. .code {
  168. line-height: 1.2rem;
  169. font-size: var(--body-fontsize-s);
  170. margin: 0.5rem 1rem;
  171. }
  172. .w-6 {
  173. max-width: 75%;
  174. }
  175. .mb-10{
  176. margin-bottom: 10rem;
  177. }
  178. .note-veritcal {
  179. font-size: var(--body-fontsize-s);
  180. position: absolute;
  181. right: 0;
  182. z-index: 200;
  183. margin: 0.5rem;
  184. border-radius: 0.25rem;
  185. padding: 0.15rem 0.25rem;
  186. writing-mode: vertical-rl;
  187. text-orientation: mixed;
  188. }
  189. .note-interference span {
  190. display: inline-flex;
  191. background-color: var(--color-lightyellow);
  192. width: 2rem;
  193. height: 1rem;
  194. }
  195. p.about-text {
  196. margin: 10% ;
  197. }
  198. .index-row {
  199. display: flex;
  200. width: 100%;
  201. flex-wrap: wrap;
  202. justify-content: space-evenly;
  203. flex-direction: row;
  204. }
  205. /* SEARCH */
  206. .search-links {
  207. font-size: var(--body-fontsize-s);
  208. }
  209. .emphasis {
  210. border-bottom: 0.10rem var(--color-lightyellow) solid;
  211. }
  212. .search_term {
  213. background: var(--color-lightyellow);
  214. }
  215. .ID-link-search {
  216. background: var(--color-lightyellow);
  217. }
  218. /* PAGE —> RANDOM IMAGES */
  219. body#random-img-page{
  220. background-color: var(--color-dark) !important;
  221. }
  222. #random-img-page .img-fluid {
  223. flex-shrink: 1;
  224. flex-basis: 10px;
  225. height: 50vh;
  226. box-shadow: 1px 1px 10px #fff6af;
  227. border-radius: 100%;
  228. transition: all 1s ease-in-out;
  229. }
  230. #random-img-page .img-fluid:hover {
  231. transform: scale(2.0);
  232. border-radius: 0.15rem;
  233. transform-origin: top left;
  234. opacity: 0.85;
  235. }
  236. /* PAGE —> RANDOM TITLES */
  237. #page-titles a, #page-titles span {
  238. font-size: 3.5vw; /* should be converted to calc */
  239. }
  240. .joint {
  241. padding:0rem 2.5rem ;
  242. }
  243. /* COMPARE —> 2 RANDOM PATENTS */
  244. .skewY {
  245. transform: skewY(-20deg);
  246. }
  247. .compare {
  248. display: flex;
  249. flex-wrap: wrap;
  250. flex-direction: row;
  251. justify-content: space-between;
  252. }
  253. .compare > div {
  254. width: 48%;
  255. }
  256. /* COMPARE —> 10 ABSTRACTS */
  257. #rdn-abstracts #alltext p::first-letter {
  258. font-size: 5rem;
  259. }
  260. #rdn-abstracts #alltext p {
  261. margin: 0% 20%;
  262. line-height: 1.8rem;
  263. font-size: var(--body-fontsize);
  264. }
  265. /* DATA */
  266. canvas > * {
  267. font-family: var(--body-font) !important;
  268. }
  269. .anchordata {
  270. margin: 1rem 2rem;
  271. z-index: 999;
  272. position: fixed;
  273. right: 0;
  274. transform: skewY(10deg);
  275. }
  276. .anchordata a {
  277. text-decoration: none;
  278. border-bottom: 0.20rem var(--color-lightyellow) solid;
  279. }
  280. /***************** MOBILE ****************/
  281. @media screen and (min-width:0px) and (max-width: 768px) {
  282. /* INDEX SEARCH */
  283. input#inputsearch {
  284. width: 250px;;
  285. }
  286. /* RANDOM IMAGES */
  287. #random-img-page .img-fluid:hover {
  288. transform: none;
  289. border-radius: 0.15rem;
  290. opacity: 1;
  291. }
  292. /* COMPARE —> 2 RANDOM PATENTS */
  293. .compare > div {
  294. width: 100%;
  295. }
  296. .col {
  297. flex: auto !important;
  298. }
  299. }