Skip to content

Commit b8a955c

Browse files
authored
Merge pull request mendix#7450 from mendix/db-link-styling
Link styling
2 parents fef932e + 9c3647d commit b8a955c

File tree

247 files changed

+449
-401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+449
-401
lines changed

assets/scss/_front-page.scss

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ div.card-icon{
1919
color: $blue;
2020
}
2121
}
22-
div.link-title{
23-
font-weight: $font-weight-bold;
24-
font-size: 1.2rem;
25-
padding: 0 0 5% 0;
26-
a {
27-
color: $secondary;
28-
&:hover {
29-
color: $blue;
30-
}
31-
}
32-
}
3322
ul.landing-list{
3423
padding-left: 0.5rem;
3524
}
@@ -43,13 +32,16 @@ li.link-list{
4332
font-size: 1rem;
4433
list-style-position: outside;
4534
list-style: none;
46-
color: $blue;
35+
color: $link-color;
4736
a {
37+
text-decoration: none;
4838
&:hover {
49-
color: darken($blue, 20%);
39+
color: $link-hover-color;
40+
text-decoration: underline;
5041
}
5142
}
5243
}
44+
5345
p.rn-date{
5446
color: $gray-600;
5547
font-size: 0.85rem;
@@ -137,6 +129,17 @@ img.my-icon{
137129
float:left;
138130
margin: 0rem 0.5rem 0.5rem 0.5rem;
139131
}
132+
img.ToC-icon{
133+
width: 2.5rem;
134+
height: 2.5rem;
135+
float:left;
136+
margin: 0rem 0.5rem 0rem 0.5rem;
137+
padding: 0.3rem;
138+
border-radius: 4px;
139+
&:hover {
140+
background-color: $gray-light;
141+
};
142+
}
140143
img.nav-icon{
141144
width: 24px;
142145
height: 24px;
@@ -153,10 +156,9 @@ h4.card-title-w-50{
153156
font-weight: $font-weight-medium; // NK - adjusted weight
154157
font-size: $h3-font-size; // NK - adjusted size
155158
margin: 0.5rem 0rem 0.5rem 1rem; // NK - bring title closer to icon
156-
157159
&:hover {
158-
color: $blue;
159-
text-decoration: none;
160+
color: $link-hover-color;
161+
text-decoration: underline;
160162
}
161163
}
162164
div.card-body{

assets/scss/_styles_project.scss

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,26 @@
226226
}
227227
}
228228

229+
// Style visited links but exclude buttons and left sidebar
230+
a:not(.btn):not(.td-sidebar-link):visited {
231+
color: $purple;
232+
}
233+
234+
// Add icon after external links in main content (but exclude buttons)
235+
main a[href*="https://"]:not(.btn)::after {
236+
display: inline-block;
237+
width: 1rem;
238+
height: 1rem;
239+
margin-left: .2rem;
240+
vertical-align: sub;
241+
content: url("/icons/external-unvisited.svg"); // Fill color is $link-color (blue-8 from PDS). Keep it updated with _variables_project.scss.
242+
}
243+
244+
// Change external link icon (color) upon hover
245+
main a[href*="https://"]:hover:not(.btn)::after {
246+
content: url("/icons/external-hover.svg"); // Fill color is $link-color (blue-8 from PDS). Keep it updated with _variables_project.scss.
247+
}
248+
229249
.btn {
230250
border-radius: 0.25rem;
231251
}
@@ -420,7 +440,7 @@ nav.foldable-nav {
420440
}
421441

422442
.ul-1 .with-child > input:checked ~ label:before {
423-
color: $primary;
443+
color: $link-color;
424444
transform: rotate(90deg);
425445
transition: transform 0s; // NK - disables animation transition time, now switch is instant
426446
}
@@ -431,13 +451,13 @@ nav.foldable-nav {
431451
nav.foldable-nav {
432452

433453
.ul-1 .with-child > label:hover:before {
434-
color: $primary;
454+
color: $link-color;
435455
transform: rotate(30deg);
436456
transition: transform 0s; // NK - disables animation transition time, now switch is instant
437457
}
438458

439459
.ul-1 .with-child > input:checked ~ label:hover:before {
440-
color: $primary;
460+
color: $link-color;
441461
transform: rotate(60deg) !important;
442462
transition: transform 0s; // NK - disables animation transition time, now switch is instant
443463
}
@@ -473,6 +493,11 @@ nav.foldable-nav {
473493
vertical-align: top;
474494

475495
}
496+
497+
.toc-title { // DB – added class for ToC title styling
498+
color: $gray-800 !important;
499+
}
500+
476501
.td-toc {
477502

478503
height: calc(100vh - 180px); // NK - added to allow scrolling
@@ -500,15 +525,15 @@ nav.foldable-nav {
500525
padding-top: .25rem;
501526

502527
&:hover {
503-
color: $blue;
504-
text-decoration: none;
528+
color: $link-hover-color;
529+
text-decoration: underline;
505530
}
506531
}
507532
// NK - styling for ToC highlighting
508533
.activeToc {
509534
font-weight: $font-weight-bold;
510-
color: $blue;
511-
border-left-color: $blue;
535+
color: $link-color;
536+
border-left-color: $link-color;
512537
}
513538
}
514539
}
@@ -549,7 +574,10 @@ nav.foldable-nav {
549574
// NK - overrides special styling for pages with no children
550575
&__page {
551576
color: inherit;//$gray-700;
552-
font-weight: inherit;//$font-weight-light;
577+
font-weight: inherit;//$font-weight-light;`
578+
}
579+
:hover {
580+
text-decoration: underline;
553581
}
554582
}
555583

@@ -676,11 +704,11 @@ nav.foldable-nav {
676704
justify-content: center;
677705
gap: 0.5rem;
678706
flex-wrap: wrap;
679-
background-color: #f7f7f7;
707+
background-color: $gray-100;
680708
color: rgba(10, 19, 36, 0.7);
681709
font-size: 0.75rem;
682710
text-align: center;
683-
border-top: 1px solid #e7e7e9;
711+
border-top: 1px solid $gray-300;
684712
padding: 1rem;
685713
font-family: 'noto-sans', 'Noto Sans', sans-serif;
686714
}
@@ -708,13 +736,13 @@ nav.foldable-nav {
708736

709737
> li::before {
710738
content: '';
711-
border-left: 1px solid #e7e7e9;
739+
border-left: 1px solid $gray-300;
712740
margin-right: 0.5rem;
713741
}
714742
}
715743

716744
.mx-footer__link:hover {
717-
color: #0123c6;
745+
color: $link-hover-color;
718746
text-decoration: underline;
719747
}
720748

@@ -723,7 +751,7 @@ nav.foldable-nav {
723751
}
724752

725753
.mx-footer__link:focus-visible {
726-
outline: 2px solid #298efb;
754+
outline: 2px solid $info-6;
727755
outline-offset: 2px;
728756
}
729757

@@ -735,8 +763,8 @@ nav.foldable-nav {
735763
//_badge.scss
736764

737765
.badge-warning {
738-
color: #fff;
739-
background-color: #C97800;
766+
color: $white;
767+
background-color: $warning-8;
740768
}
741769

742770
.badge-pill {
@@ -750,7 +778,7 @@ nav.foldable-nav {
750778
.swagger-ui .info .title,
751779
.swagger-ui .model-title {
752780
font-family: $font-family !important;
753-
color: var(--bs-body-color);
781+
color: $secondary;
754782
}
755783

756784
.swagger-ui .info a {

assets/scss/_variables_project.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ $danger-8: #bc1622;
7676
$danger-9: #9e051b;
7777
$danger-10: #780328;
7878

79+
$purple: #4701d4;
80+
7981
$custom-theme-colors: (
8082
"info-1": $info-1,
8183
"info-2": $info-2,
@@ -116,7 +118,8 @@ $custom-theme-colors: (
116118
"danger-7": $danger-7,
117119
"danger-8": $danger-8,
118120
"danger-9": $danger-9,
119-
"danger-10": $danger-10
121+
"danger-10": $danger-10,
122+
"$purple": $purple,
120123
);
121124

122125

@@ -131,9 +134,8 @@ $td-sidebar-bg-color: $gray-light !default;//rgba($primary, 0.03) !default;
131134
// These colors are all part of the theme palette, but the mix is fairly random to create variation. This can be overridden by the project if needed.
132135
$td-box-colors: $dark, $primary, $secondary, $info, $primary-light, $gray-600, $success, $warning, $dark, $danger, $primary, $secondary, !default;
133136

134-
$link-color: $blue !default; // NK - removed darken color
135-
$link-decoration: none !default;
136-
$link-hover-decoration: none !default;
137+
$link-color: $info-8;
138+
$link-hover-color: $info-9;
137139

138140
// Fonts
139141

content/en/docs/apidocs-mxsdk/mxsdk/sdk-howtos/sdk-old-versions-howtos/old-setting-up-your-development-environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To set up your development tools, follow these steps:
4343
{{% alert color="info" %}}In the rest of the how-to's in these series, in blocks such as the above, lines starting with `$` represent commands to type into a terminal. Sometimes a line follows without a `$`, which represents the output of the command.
4444
{{% /alert %}}
4545
46-
3. Install [Visual Studio Code](https://code.visualstudio.com/) (not to be confused with Visual Studio), a text editor/IDE with good support for [TypeScript](http://www.typescriptlang.org/). Make sure you have a recent version (v1.11.0+) (you can check the version you are using via **Help** > **About**).
46+
3. Install [Visual Studio Code](https://code.visualstudio.com/) (not to be confused with Visual Studio), a text editor/IDE with good support for [TypeScript](https://www.typescriptlang.org/). Make sure you have a recent version (v1.11.0+) (you can check the version you are using via **Help** > **About**).
4747
4. Install TypeScript 3.6.2 (or higher) with [`npm`](https://www.npmjs.com/), Node.js's package manager:
4848

4949
```bash {linenos=false}

content/en/docs/apidocs-mxsdk/mxsdk/sdk-howtos/setting-up-your-development-environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To set up your development tools, follow these steps:
4141

4242
In the rest of the how-to's, in blocks such as the above, lines starting with a `$` represent commands to type into a terminal. Sometimes a line follows without a $, represents output of the command.
4343
44-
3. Install [Visual Studio Code](https://code.visualstudio.com/) (not to be confused with Visual Studio), a text editor/IDE with good support for [TypeScript](http://www.typescriptlang.org/). Make sure you have a recent version (v1.11.0+); check the version you are using through Help > About when you have Code opened.
44+
3. Install [Visual Studio Code](https://code.visualstudio.com/) (not to be confused with Visual Studio), a text editor/IDE with good support for [TypeScript](https://www.typescriptlang.org/). Make sure you have a recent version (v1.11.0+); check the version you are using through Help > About when you have Code opened.
4545
4. Install TypeScript 4.4.3 or higher with [`npm`](https://www.npmjs.com/) (or [`yarn`](https://yarnpkg.com/)), Node.js's package manager:
4646

4747
```bash {linenos=false}

content/en/docs/apidocs-mxsdk/mxsdk/sdk-refguide/javascript-typescript-resources.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ weight: 2
99

1010
As a developer who works with the Mendix Platform, you may be familiar with implementing custom user actions using Java.
1111

12-
The Mendix Platform and Model SDKs, however, are implemented in an entirely different language, namely [TypeScript](http://www.typescriptlang.org/). TypeScript is similar to JavaScript - in fact, TypeScript sources are "transpiled" into JavaScript before they're run. The main difference that sets TypeScript apart from JavaScript is that it adds explicit typing. This is [good news for developers with a Java background](http://blog.pikodat.com/2015/07/24/why-java-developers-might-love-typescript/), who expect that the compiler will warn them if they by accident try to treat an Integer as a String. At the same time, you can still take advantage of the rich ecosystem of JavaScript libraries that already exists.
12+
The Mendix Platform and Model SDKs, however, are implemented in an entirely different language, namely [TypeScript](https://www.typescriptlang.org/). TypeScript is similar to JavaScript - in fact, TypeScript sources are "transpiled" into JavaScript before they're run. The main difference that sets TypeScript apart from JavaScript is that it adds explicit typing. This is good news for developers with a Java background, who expect that the compiler will warn them if they by accident try to treat an Integer as a String. At the same time, you can still take advantage of the rich ecosystem of JavaScript libraries that already exists.
1313

1414
To help you find your way in this new and exciting TypeScript universe, we've collected a few resources that we ourselves have found useful in getting the hang of developing with TypeScript and JavaScript libraries.
1515

@@ -19,11 +19,11 @@ If you have any additional useful resources, feel free to mention them in the co
1919

2020
* [TypeScript Deep Dive](https://basarat.gitbooks.io/typescript/content/index.html) – available in a web version as well as e-book formats.
2121
* [Pro TypeScript](https://www.stevefenton.co.uk/publications/pro-typescript/) by Steve Fenton
22-
* [JavaScript: The Good Parts](http://shop.oreilly.com/product/9780596517748.do) by Douglas Crockford, O'Reilly
22+
* [JavaScript: The Good Parts](https://shop.oreilly.com/product/9780596517748.do) by Douglas Crockford, O'Reilly
2323

2424
## 3 Websites
2525

26-
* [Official TypeScript website](http://www.typescriptlang.org/Handbook) – tutorial, handbook, and samples
26+
* [Official TypeScript website](https://www.typescriptlang.org/Handbook) – tutorial, handbook, and samples
2727
* [Definitive Guide to TypeScript](https://www.sitepen.com/blog/2013/12/31/definitive-guide-to-typescript/) – covers TypeScript 1.5 (slightly older than the current release, but still useful)
2828
* [Editing TypeScript](https://code.visualstudio.com/docs/languages/typescript) with Visual Studio Code
2929
* Debugging your app with [Node Inspector](https://www.npmjs.com/package/node-inspector)

content/en/docs/appstore/creating-content/connector-guide-build/connector-guide-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ The following tools are part of the testing process of custom Java code in your
401401
* [JaCoCo](https://www.jacoco.org/jacoco/trunk/index.html) (Java Code Coverage) — This helps you check how well your code is covered by tests.
402402
* Gradle — This pulls everything together to manage Java dependencies, and provides a way to work with JUnit and Mockito.
403403

404-
Gradle can handle managing Java dependencies and running [JUnit](http://junit.org) tests. Read about setting up Gradle in [Extending App Setup for Building Connectors with Java](#extend-app-java). If you have a pipeline, Mendix recommends running your tests as part of it.
404+
Gradle can handle managing Java dependencies and running [JUnit](https://junit.org) tests. Read about setting up Gradle in [Extending App Setup for Building Connectors with Java](#extend-app-java). If you have a pipeline, Mendix recommends running your tests as part of it.
405405

406406
#### 6.2.2 Using the Java Unit Test Reference
407407

content/en/docs/appstore/modules/audit-trail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ Changing the audit behavior is easily done by altering the values of the constan
5959
* **CreateLogObjectWithoutMemberChanges** (default: false) – If none of the members have been changed, this property determines whether a commit will still generate a log record populated only with the `changed date` and `changed by` fields.
6060
* **LogLineDateFormat** (default: MM/dd/yyyy) – This constant determines the format to be used to convert date attributes to strings. It uses the same pattern as used by the [parse and format date function calls](/refguide/parse-and-format-date-function-calls/).
6161
* **LogServerTimeZoneDateNotation** (default: true) – This determines if the date should be audited in the **ServerTimeZone**. If both the session time zone and **ServerTimeZone** are enabled, you will see two dates in the audit overview.
62-
* **ServerTimeZone** (default: UTC) – This the time zone in which the server time zone is printed. This will be a static time zone and should match the notation as used in Java (for an example, see [TimeZones in Java](http://stackoverflow.com/questions/1694885/timezones-in-java)).
62+
* **ServerTimeZone** (default: UTC) – This is the time zone in which the server time zone is printed. This will be a static time zone and should match the notation as used in Java (for an example, see [TimeZones in Java](https://stackoverflow.com/questions/1694885/timezones-in-java)).
6363
* **LogSessionTimeZoneDateNotation** (default: false) – This determines if the date should be audited in the session time zone of the user that makes the change. If both the session time zone and the server time zone are enabled, you will see two dates in the audit overview.

content/en/docs/appstore/modules/database-connector.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ When using the Database connector, keep these best practices in mind:
154154
## 5 Common JDBC Drivers{#links}
155155

156156
* [Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html#download-jdbc-driver)
157-
* [Apache Derby](http://db.apache.org/derby/derby_downloads.html)
158-
* [Firebird](http://www.firebirdsql.org/en/jdbc-driver/)
159-
* [H2 Database Engine](http://www.h2database.com/html/main.html)
157+
* [Apache Derby](https://db.apache.org/derby/derby_downloads.html)
158+
* [Firebird](https://www.firebirdsql.org/en/jdbc-driver/)
159+
* [H2 Database Engine](https://www.h2database.com/html/main.html)
160160
* [HSQLDB](https://sourceforge.net/projects/hsqldb/files/)
161161
* [IBM DB2](https://www.ibm.com/support/pages/download-initial-version-115-clients-and-drivers)
162162
* [IBM Informix](https://www.ibm.com/products/informix?mhsrc=ibmsearch_a&mhq=informix)

content/en/docs/appstore/overview/use-content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,4 @@ To remove a module and user data from your app, follow these steps:
261261

262262
* [Importing and Exporting Apps, Modules, Widgets, and Documents](/refguide/import-and-export/)
263263
* [Properties Common in the Page Editor](/refguide/common-widget-properties/)
264-
* [My Top 5 Mendix Widgets for Speeding Up Application Development](http://www.mendix.com/blog/top-5-mendix-widgets-speeding-application-development/)
264+
* [My Top 5 Mendix Widgets for Speeding Up Application Development](https://www.mendix.com/blog/top-5-mendix-widgets-speeding-application-development/)

content/en/docs/appstore/partner-solutions/apd/rg-apd/rg-one-apm/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The sections below provide an introduction to APM. There is an explanation of wh
3434

3535
## 2 Definition of APM
3636

37-
Wikipedia provides a good definition of [Application Performance Management](http://en.wikipedia.org/wiki/Application_performance_management).
37+
Wikipedia provides a good definition of [Application Performance Management](https://en.wikipedia.org/wiki/Application_performance_management).
3838

3939
APM is the monitoring and management of performance and availability of software applications.
4040
APM strives to detect and diagnose application performance problems to maintain an expected level of service.

content/en/docs/appstore/partner-solutions/apd/rg-apd/rg-three-apd/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The sections below provide a short explanation of APD along with its features an
3232

3333
## 2 Definition of the APD Tool
3434

35-
APD is based on Wikipedia's definition of [application performance management](http://en.wikipedia.org/wiki/Application_performance_management). The goal of APD is to emphasize this point: "to detect and diagnose complex application performance problems to maintain an expected level of service."
35+
APD is based on Wikipedia's definition of [application performance management](https://en.wikipedia.org/wiki/Application_performance_management). The goal of APD is to emphasize this point: "to detect and diagnose complex application performance problems to maintain an expected level of service."
3636

3737
You need the basic infrastructure probes to measure hardware parts like the CPU, memory, and disk as well as components like the database and web server. However, for higher quality support, you should also look at the application and how it is performing, and especially look to link this to the user’s business perspective.
3838

content/en/docs/appstore/partner-solutions/apd/rg-apd/rg-two-apm/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The sections below provide a short explanation of APM along with its features an
2727

2828
## 2 Definition of APM
2929

30-
CLEVR APM is based on Wikipedia's definition of [Application Performance Management](http://en.wikipedia.org/wiki/Application_performance_management), with emphasis on these points:
30+
CLEVR APM is based on Wikipedia's definition of [Application Performance Management](https://en.wikipedia.org/wiki/Application_performance_management), with emphasis on these points:
3131

3232
* APM is the "monitoring and management of performance and availability of software applications"
3333
* APM strives "to detect and diagnose complex application performance problems to maintain an expected level of service"

content/en/docs/appstore/partner-solutions/ats/ht/v1/create-custom-actions/custom-action-general/custom-action-helpful-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Keep in mind that Google Chrome is the browser used in these documents.
2424
| [Stack Overflow](https://stackoverflow.com/) | A massive forum for developers. If you have a question regarding code, look for the answer here. |
2525
| [Guidelines for Creating a Custom Action](/appstore/partner-solutions/ats/ht-one-guidelines-custom-action/) | These are the guidelines to follow when creating custom actions. This is a prerequisite for each how-to. |
2626
| [ATS Selectors](/appstore/partner-solutions/ats/rg-one-selectors/) | This is documentation on the different selectors you can use within ATS. Most important are the ATS selectors, as these are pseudo-selectors and are not standard jQuery/CSS. This is a prerequisite for each how-to. |
27-
| [JavaScript Checker](http://www.jslint.com/) | This page checks your JavaScript for mistakes. |
27+
| [JavaScript Checker](https://www.jslint.com/) | This page checks your JavaScript for mistakes. |
2828
| [Custom Action Basics](/appstore/partner-solutions/ats/ht-one-custom-action-basics/) | This is a how-to for the basics of creating a custom action. |
2929

3030
## 3 Tools

0 commit comments

Comments
 (0)